delay removing file scope
commit9c1b0a2fd4347f90c5813d5ed130fd814857ee3e
authorChristopher Li <sparse@chrisli.org>
Thu, 30 Nov 2006 10:16:08 +0000 (30 02:16 -0800)
committerJosh Triplett <josh@freedesktop.org>
Tue, 5 Dec 2006 02:02:12 +0000 (4 18:02 -0800)
tree95a081212f421d8900f77e7b508c2094eb1ad33a
parentfe288c4a04841e9aefedf75ab036265c8950f7d9
delay removing file scope

Sparse only returns the used symbol. By the time it return
the symbol, it already destroyed the file scope.

This patch preserve the file scope. The caller can
examine the unused symbols. e.g. If I want to generate
ctags base on sparse, it need those unused symbols.

Signed-off-by: Christopher Li <sparse@chrisli.org>
lib.c
scope.c
scope.h