History

Fix indentation and run_test type

tcc_state.run_test is used as counter, not flag, so int is appropriate. Also fix indentation garbled by last patch.

Michael Matz committed 6 years ago

Commit 1dc92f81 parent 4873f6f1 file · +4 −4Browse files

Unified · Split

tcc.h+4−4
@@ -493,19 +493,19 @@ typedef struct Sym { · 492 unmodified lines
493 int c; /* associated number or Elf symbol index */493 int c; /* associated number or Elf symbol index */
494 union {494 union {
495 int sym_scope; /* scope level for locals */495 int sym_scope; /* scope level for locals */
496 int jnext; /* next jump label */496 int jnext; /* next jump label */
497 struct FuncAttr f; /* function attributes */497 struct FuncAttr f; /* function attributes */
498 int auxtype; /* bitfield access type */498 int auxtype; /* bitfield access type */
499 };499 };
500 };500 };
501 long long enum_val; /* enum constant if IS_ENUM_VAL */501 long long enum_val; /* enum constant if IS_ENUM_VAL */
502 int *d; /* define token stream */502 int *d; /* define token stream */
503 struct Sym *ncl; /* next cleanup */503 struct Sym *ncl; /* next cleanup */
504 };504 };
505 CType type; /* associated type */505 CType type; /* associated type */
506 union {506 union {
507 struct Sym *next; /* next related symbol (for fields and anoms) */507 struct Sym *next; /* next related symbol (for fields and anoms) */
508 struct Sym *cleanupstate; /* in defined labels */508 struct Sym *cleanupstate; /* in defined labels */
509 int asm_label; /* associated asm label */509 int asm_label; /* associated asm label */
510 };510 };
511 struct Sym *prev; /* prev symbol in stack */511 struct Sym *prev; /* prev symbol in stack */
@@ -717,7 +717,7 @@ struct TCCState { · 205 unmodified lines
717#ifdef TCC_TARGET_ARM717#ifdef TCC_TARGET_ARM
718 enum float_abi float_abi; /* float ABI of the generated code*/718 enum float_abi float_abi; /* float ABI of the generated code*/
719#endif719#endif
720 unsigned char run_test; /* nth test to run with -dt -run */720 int run_test; /* nth test to run with -dt -run */
721 721
722 addr_t text_addr; /* address of text section */722 addr_t text_addr; /* address of text section */
723 unsigned char has_text_addr;723 unsigned char has_text_addr;