aboutsummaryrefslogtreecommitdiff
path: root/src/symbol.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-09-21 15:12:30 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-09-21 15:12:30 +0000
commitc1dfa70ed64a56b5c0738fb6c8f2288713c485a3 (patch)
tree431852a75d086e7dc6ded62d1696abeffc51b2c9 /src/symbol.c
parent8dcd4f4af1fd1068f35839bd8fe5f1f2849d33c3 (diff)
downloadcflow-c1dfa70ed64a56b5c0738fb6c8f2288713c485a3.tar.gz
cflow-c1dfa70ed64a56b5c0738fb6c8f2288713c485a3.tar.bz2
(auto_processor): Delete only auto variables.
Diffstat (limited to 'src/symbol.c')
-rw-r--r--src/symbol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/symbol.c b/src/symbol.c
index 7da473d..97045fb 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -132,7 +132,8 @@ auto_processor(void *data, void *proc_data)
{
Symbol *s = data;
int *level = proc_data;
- if (s->type == SymIdentifier && s->level == *level)
+ if (s->type == SymIdentifier && s->storage == AutoStorage
+ && s->level == *level)
delete_symbol(s);
return true;
}

Return to:

Send suggestions and report system problems to the System administrator.