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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 parse.c | 3 +++
 1 file changed, 3 insertions(+)

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 = {
-- 
2.24.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux