path: root/src/main.c
authorSergey Poznyakoff <>2011-10-10 08:57:39 (GMT)
committer Sergey Poznyakoff <>2011-10-10 09:04:35 (GMT)
commit250d9aab8f79ebd7a2f2535de9db60172df51598 (patch) (side-by-side diff)
tree8cb00af0546ba73a53f6495cf021d545438f47c3 /src/main.c
parentca94bd309cb7dc9d33e4c06d95b6fc44714ffe9d (diff)
Improve local symbol detection.
* src/cflow.h (install): Change prototype. * src/parser.c (skip_balanced): Don't put extra token back. * src/symbol.c (install): Take two arguments, the 2nd one specifying whether the symbol can be local to the compilation unit. All uses updated. (delete_symbol): Don't delete symbol in reverse tree mode, if its callee list is not empty.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index dff6788..dbb8453 100644
--- a/src/main.c
+++ b/src/main.c
@@ -274,7 +274,7 @@ symbol_override(const char *str)
name = strndup(str, ptr - str);
- sp = install(name);
+ sp = install(name, 0);
sp->type = SymToken;
sp->token_type = type;
sp->source = NULL;

Return to:

Send suggestions and report system problems to the System administrator.