db: move buf_size to the new add_definition_db_callback()
commitc9283d43cc6cdbf15da6afc39cf0d5689514f5e1
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Oct 2011 12:02:24 +0000 (4 15:02 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Oct 2011 12:02:24 +0000 (4 15:02 +0300)
treed1223f38aaac60f4fb891e49817b3b2fb6f68a03
parent8d6fefcddfa98ef2ccdadd7f7a5927728f25e0b3
db: move buf_size to the new add_definition_db_callback()

This makes the code in smatch_buf_size.c smaller and simpler.
It means we theoretically should start picking up implications between
parameters like:
some_func(buffer, buf_size);
It also means that instead of getting just the largest buffer size we get
all of them (up to a limit of 20 still).

I had to redo the database.  Everything that modifies the caller_info table
needs to be in the same script so that function_id is calculated
consistently.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_buf_size.c
smatch_scripts/db/buf_size.schema [deleted file]
smatch_scripts/db/fill_db_buf_size.pl [deleted file]
smatch_scripts/db/fill_db_caller_info.pl [moved from smatch_scripts/db/fill_db_param_value.pl with 59% similarity]