mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-12 09:00:09 +08:00
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.
This commit is contained in:
parent
4873f6fada
commit
1dc92f8ff8
8
tcc.h
8
tcc.h
@ -493,19 +493,19 @@ typedef struct Sym {
|
|||||||
int c; /* associated number or Elf symbol index */
|
int c; /* associated number or Elf symbol index */
|
||||||
union {
|
union {
|
||||||
int sym_scope; /* scope level for locals */
|
int sym_scope; /* scope level for locals */
|
||||||
int jnext; /* next jump label */
|
int jnext; /* next jump label */
|
||||||
struct FuncAttr f; /* function attributes */
|
struct FuncAttr f; /* function attributes */
|
||||||
int auxtype; /* bitfield access type */
|
int auxtype; /* bitfield access type */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
long long enum_val; /* enum constant if IS_ENUM_VAL */
|
long long enum_val; /* enum constant if IS_ENUM_VAL */
|
||||||
int *d; /* define token stream */
|
int *d; /* define token stream */
|
||||||
struct Sym *ncl; /* next cleanup */
|
struct Sym *ncl; /* next cleanup */
|
||||||
};
|
};
|
||||||
CType type; /* associated type */
|
CType type; /* associated type */
|
||||||
union {
|
union {
|
||||||
struct Sym *next; /* next related symbol (for fields and anoms) */
|
struct Sym *next; /* next related symbol (for fields and anoms) */
|
||||||
struct Sym *cleanupstate; /* in defined labels */
|
struct Sym *cleanupstate; /* in defined labels */
|
||||||
int asm_label; /* associated asm label */
|
int asm_label; /* associated asm label */
|
||||||
};
|
};
|
||||||
struct Sym *prev; /* prev symbol in stack */
|
struct Sym *prev; /* prev symbol in stack */
|
||||||
@ -717,7 +717,7 @@ struct TCCState {
|
|||||||
#ifdef TCC_TARGET_ARM
|
#ifdef TCC_TARGET_ARM
|
||||||
enum float_abi float_abi; /* float ABI of the generated code*/
|
enum float_abi float_abi; /* float ABI of the generated code*/
|
||||||
#endif
|
#endif
|
||||||
unsigned char run_test; /* nth test to run with -dt -run */
|
int run_test; /* nth test to run with -dt -run */
|
||||||
|
|
||||||
addr_t text_addr; /* address of text section */
|
addr_t text_addr; /* address of text section */
|
||||||
unsigned char has_text_addr;
|
unsigned char has_text_addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user