states: introduce get_all_state_slist()
commitaa28d31a83a3b4f910d427b0c9b5295c688bdbc4
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Dec 2012 19:16:03 +0000 (5 22:16 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Dec 2012 19:16:03 +0000 (5 22:16 +0300)
tree1e0ec496477c0e5d380df9d4afdab319e4b8057c
parentf4eb1b042789de91aadc0c9a23832b8fbbd9e118
states: introduce get_all_state_slist()

This is like get_all_states() but it takes the states from a given slist
instead of the cur_slist.

I had this already in smatch_db.c and I've just renamed it and exported it
to everyone.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_db.c
smatch_states.c