aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-05-05 10:39:09 +0200
committergrischka <grischka>2016-05-05 10:39:09 +0200
commitcaebbc3ee1071ace94003cdf645f749d2b0a9eed (patch)
treef65c8160f99865717871dfec4a958f985e78aee7 /libtcc.c
parent0fbc77cac6d1dff456f7b6b973944038dc1a59c2 (diff)
downloadtinycc-caebbc3ee1071ace94003cdf645f749d2b0a9eed.tar.gz
tinycc-caebbc3ee1071ace94003cdf645f749d2b0a9eed.tar.bz2
tccgen: scope levels for local symbols
... for fast redeclaration checks Also, check function parameters too: void foo(int a) { int a; ... } Also, try to fix struct/union/enum's on different scopes: { struct xxx { int x; }; { struct xxx { int y; }; ... }} and some (probably not all) combination with incomplete declarations "struct xxx;" Replaces 2bfedb18675228c3837c23fa523231f55e102c12 and 07d896c8e5d1b46bf4aebd403c78e5f7ffebe02a Fixes cf95ac399cbce1ea8a519f91dd36a5cfd4ea7943
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 6db2236..75a37c3 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1764,7 +1764,6 @@ static const FlagDef flag_defs[] = {
{ offsetof(TCCState, old_struct_init_code), 0, "old-struct-init-code" },
{ offsetof(TCCState, dollars_in_identifiers), 0, "dollars-in-identifiers" },
{ offsetof(TCCState, normalize_inc_dirs), 0, "normalize-inc-dirs" },
- { offsetof(TCCState, no_type_redef_check), FD_INVERT, "type-redefinition-check" },
};
/* set/reset a flag */