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
493493 int c; /* associated number or Elf symbol index */
494494 union {
495495 int sym_scope; /* scope level for locals */
496− int jnext; /* next jump label */
496+ int jnext; /* next jump label */
497497 struct FuncAttr f; /* function attributes */
498498 int auxtype; /* bitfield access type */
499499 };
500500 };
501501 long long enum_val; /* enum constant if IS_ENUM_VAL */
502502 int *d; /* define token stream */
503− struct Sym *ncl; /* next cleanup */
503+ struct Sym *ncl; /* next cleanup */
504504 };
505505 CType type; /* associated type */
506506 union {
507507 struct Sym *next; /* next related symbol (for fields and anoms) */
508− struct Sym *cleanupstate; /* in defined labels */
508+ struct Sym *cleanupstate; /* in defined labels */
509509 int asm_label; /* associated asm label */
510510 };
511511 struct Sym *prev; /* prev symbol in stack */
@@ -717,7 +717,7 @@ struct TCCState { · 205 unmodified lines
717717 #ifdef TCC_TARGET_ARM
718718 enum float_abi float_abi; /* float ABI of the generated code*/
719719 #endif
720− unsigned char run_test; /* nth test to run with -dt -run */
720+ int run_test; /* nth test to run with -dt -run */
721721
722722 addr_t text_addr; /* address of text section */
723723 unsigned char has_text_addr;