macro_table.c: replacement for in_macro()
commite90aba4572b4505156704f5ed3dff585f9cdd3cb
authorDan Carpenter <error27@gmail.com>
Thu, 20 May 2010 10:39:01 +0000 (20 12:39 +0200)
committerDan Carpenter <error27@gmail.com>
Thu, 20 May 2010 10:39:01 +0000 (20 12:39 +0200)
treedf97ac4b7fdbc24e80040e8618ed432900aa7911
parent7b35c8a82f0c7177c09aa99e1db4857fdec91513
macro_table.c: replacement for in_macro()

in_macro() was an ugly hack, it worked OK for the kernel but not for user
space glibc.  The new code hooks into the pre-processor and is more
accurate, you can also find out the name of the macro which could be
useful.

Instead of in_macro() use get_macro_name().  It returns null if we're not
inside a macro.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Makefile
check_check_deref.c
check_deref_check.c
macro_table.c [new file with mode: 0644]
pre-process.c
smatch.h
smatch_flow.c
smatch_helper.c
token.h