smatch.h, db: add numbers to the info_type enum
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Jan 2013 19:48:38 +0000 (24 22:48 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Jan 2013 19:48:38 +0000 (24 22:48 +0300)
It's stored as a number in the database so it's good to know the number.

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

index 109521d..f2190ca 100644 (file)
--- a/smatch.h
+++ b/smatch.h
@@ -457,20 +457,20 @@ void __match_initializer_call(struct symbol *sym);
 
 /* smatch_db.c */
 enum info_type {
-       INTERNAL = 0,
-       PARAM_VALUE,
-       BUF_SIZE,
-       USER_DATA,
-       CAPPED_DATA,
-       RETURN_VALUE,
-       DEREFERENCE,
-       RANGE_CAP,
-       LOCK_HELD,
-       LOCK_RELEASED,
-       ABSOLUTE_LIMITS,
-       LIMITED_VALUE,
-       ADDED_VALUE,
-       FILTER_VALUE,
+       INTERNAL        = 0,
+       PARAM_VALUE     = 1,
+       BUF_SIZE        = 2,
+       USER_DATA       = 3,
+       CAPPED_DATA     = 4,
+       RETURN_VALUE    = 5,
+       DEREFERENCE     = 6,
+       RANGE_CAP       = 7,
+       LOCK_HELD       = 8,
+       LOCK_RELEASED   = 9,
+       ABSOLUTE_LIMITS = 10,
+       LIMITED_VALUE   = 11,
+       ADDED_VALUE     = 12,
+       FILTER_VALUE    = 13,
 };
 
 void add_definition_db_callback(void (*callback)(const char *name, struct symbol *sym, char *key, char *value), int type);