diff mbox series

[3/9] spec: add '.class = CInt'

Message ID 20191111134747.79516-4-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series simplify parsing of specifiers | expand

Commit Message

Luc Van Oostenryck Nov. 11, 2019, 1:47 p.m. UTC
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>
---
 parse.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/parse.c b/parse.c
index d544ba51e..797b3971e 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 = {