sval: create a new basic storage for storing the value of things
commit3fa5d6d66889a313fc6d74a8d7ba3280548ac8fa
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Oct 2012 11:55:48 +0000 (27 14:55 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Oct 2012 11:55:48 +0000 (27 14:55 +0300)
treebcb5ef9a317e236e45cdc7094847a436a9dc4a10
parent8bd353200209b6bfafeba31f27a74dc9447289bd
sval: create a new basic storage for storing the value of things

Before everything was a long long, but that can't store the value of
ULLONG_MAX.

This patch the sval_t type which holds a ctype as well as the ->value.  It
also adds some helper functions in smatch_sval.c.  Eventually all the
places which currently use "long long" will be updated to use an sval.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Makefile
smatch.h
smatch_ranges.c
smatch_sval.c [new file with mode: 0644]