new api: add_conditional_hook(), set_cond_states();
commitff84c4142894620d19a914a44401080272ff07b7
authorDan Carpenter <error27@gmail.com>
Wed, 25 Mar 2009 04:11:18 +0000 (25 07:11 +0300)
committerDan Carpenter <error27@gmail.com>
Wed, 25 Mar 2009 04:11:18 +0000 (25 07:11 +0300)
treed2967b1ace857f572db2eb28c79f6016b6ad4a51
parente8e7ca0688395a2e838fc04a3a35d0a9126e1723
new api: add_conditional_hook(), set_cond_states();

add_conditional_hook() if for code where the condition is a function call
like this:
if(foo()) { ...
instead of calling set_true_false_states() inside a condition hook you call
set_cond_states().  Currently that is the exact same as
set_true_false_states() but later it will let us handle things like:
x = _spin_trylock();
if (x) { ...

Signed-off-by: Dan Carpenter <error27@gmail.com>
Makefile
check_locking.c
smatch.c
smatch.h
smatch_condition_functions.c [new file with mode: 0644]
smatch_function_hooks.c