Skip to content

Commit cbfcc5c

Browse files
author
Daniel Kroening
committed
added support for _int64 keyword
1 parent 7823d9c commit cbfcc5c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

regression/ansi-c/VS_extensions1/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ __int16 i16;
5454

5555
__int32 i32;
5656

57+
_int64 i64_with_just_one_underscore;
58+
5759
__int64 i64;
5860

5961
__int8 i8;

src/ansi-c/scanner.l

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ void ansi_c_scanner_init()
552552
else
553553
return make_identifier();
554554
}
555+
"_int64" { if(PARSER.mode==configt::ansi_ct::flavourt::VISUAL_STUDIO)
556+
{ loc(); return TOK_INT64; }
557+
else
558+
return make_identifier();
559+
}
555560
"__ptr32" { return MSC_Keyword(TOK_PTR32); }
556561
"__ptr64" { return MSC_Keyword(TOK_PTR64); }
557562

0 commit comments

Comments
 (0)