aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-11 00:13:28 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-11 13:49:16 +0100
commit4c3567c2a7bf578995f598455b3219016aca3b82 (patch)
tree6c4f22f714c6491090d6a99bafef2c8b7e978ca5
parent30ca8e0bc21702da00a3570d2a2c1c969f9d9e01 (diff)
downloadsparse-4c3567c2a7bf578995f598455b3219016aca3b82.tar.gz
spec: add '.class = CInt'
Add it for the specifier that implies an integer type. Since Cint is (and must be) zero, it changes nothing but it helps a little for as documentation. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index d544ba51..797b3971 100644
--- a/parse.c
+++ b/parse.c
@@ -255,6 +255,7 @@ static struct symbol_op int_op = {
.type = KW_SPECIFIER,
.test = Set_T,
.set = Set_T|Set_Int,
+ .class = CInt,
};
static struct symbol_op double_op = {
@@ -275,6 +276,7 @@ static struct symbol_op short_op = {
.type = KW_SPECIFIER | KW_SHORT,
.test = Set_S|Set_Char|Set_Float|Set_Double|Set_Long|Set_Short,
.set = Set_Short,
+ .class = CInt,
};
static struct symbol_op signed_op = {
@@ -301,6 +303,7 @@ static struct symbol_op int128_op = {
.type = KW_SPECIFIER | KW_LONG,
.test = Set_S|Set_T|Set_Char|Set_Short|Set_Int|Set_Float|Set_Double|Set_Long|Set_Vlong|Set_Int128,
.set = Set_T|Set_Int128,
+ .class = CInt,
};
static struct symbol_op if_op = {