Skip to content

Commit

Permalink
redo build-aux/clang-format-all.sh src test examples programs
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Apr 26, 2019
1 parent b38be83 commit 7cce4c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion programs/dwgread.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ main (int argc, char *argv[])
#ifdef HAVE_VALGRIND_VALGRIND_H
|| (RUNNING_ON_VALGRIND)
#endif
)
)
dwg_free (&dwg);

return error >= DWG_ERR_CRITICAL ? 1 : 0;
Expand Down
8 changes: 4 additions & 4 deletions src/dec_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,15 @@
/* preR13 we have no obj->address and obj->size yet, skip VECTOR_CHKCOUNT */
#define FIELD_TF(nam, len, dxf) \
{ \
SINCE (R_13) { VECTOR_CHKCOUNT (nam, TF, len) } \
_obj->nam = bit_read_TF (dat, (int)len); \
SINCE (R_13){ VECTOR_CHKCOUNT (nam, TF, len) } _obj->nam \
= bit_read_TF (dat, (int)len); \
LOG_INSANE (#nam ": [%d TF " #dxf "]\n", len); \
LOG_INSANE_TF (FIELD_VALUE (nam), (int)len); \
}
#define FIELD_TFF(nam, len, dxf) \
{ \
SINCE (R_13) { VECTOR_CHKCOUNT (nam, TF, len) } \
bit_read_fixed (dat, _obj->nam, (int)len); \
SINCE (R_13){ VECTOR_CHKCOUNT (nam, TF, len) } bit_read_fixed ( \
dat, _obj->nam, (int)len); \
LOG_INSANE (#nam ": [%d TFF " #dxf "]\n", len); \
LOG_INSANE_TF (FIELD_VALUE (nam), (int)len); \
}
Expand Down
2 changes: 1 addition & 1 deletion src/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ decode_preR13_section (Dwg_Section_Type_r11 id, Bit_Chain *restrict dat,
if (dwg->num_objects % REFS_PER_REALLOC == 0)
dwg->object = realloc (dwg->object, old_size + size + REFS_PER_REALLOC);

// TODO: move to a spec dwg_r11.spec, and dwg_decode_r11_NAME
// TODO: move to a spec dwg_r11.spec, and dwg_decode_r11_NAME
#define PREP_TABLE(token) \
Dwg_Object *obj = &dwg->object[num + i]; \
Dwg_Object_##token *_obj = calloc (1, sizeof (Dwg_Object_##token)); \
Expand Down

0 comments on commit 7cce4c8

Please sign in to comment.