diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-10-10 11:57:39 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-10-10 12:04:35 +0300 |
commit | 250d9aab8f79ebd7a2f2535de9db60172df51598 (patch) | |
tree | 8cb00af0546ba73a53f6495cf021d545438f47c3 /src/main.c | |
parent | ca94bd309cb7dc9d33e4c06d95b6fc44714ffe9d (diff) | |
download | cflow-250d9aab8f79ebd7a2f2535de9db60172df51598.tar.gz cflow-250d9aab8f79ebd7a2f2535de9db60172df51598.tar.bz2 |
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')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -271,13 +271,13 @@ symbol_override(const char *str) if (type == 0) { error(0, 0, _("unknown symbol type: %s"), ptr+1); return; } } name = strndup(str, ptr - str); - sp = install(name); + sp = install(name, 0); sp->type = SymToken; sp->token_type = type; sp->source = NULL; sp->def_line = -1; sp->ref_line = NULL; } |