aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-10 11:57:39 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-10-10 12:04:35 +0300
commit250d9aab8f79ebd7a2f2535de9db60172df51598 (patch)
tree8cb00af0546ba73a53f6495cf021d545438f47c3 /src/main.c
parentca94bd309cb7dc9d33e4c06d95b6fc44714ffe9d (diff)
downloadcflow-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.c2
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
@@ -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;
}

Return to:

Send suggestions and report system problems to the System administrator.