Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions regression/ansi-c/VS_extensions1/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ __int16 i16;

__int32 i32;

_int64 i64_with_just_one_underscore;

__int64 i64;

__int8 i8;
Expand Down
5 changes: 5 additions & 0 deletions src/ansi-c/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,11 @@ void ansi_c_scanner_init()
else
return make_identifier();
}
"_int64" { if(PARSER.mode==configt::ansi_ct::flavourt::VISUAL_STUDIO)
{ loc(); return TOK_INT64; }
else
return make_identifier();
}
"__ptr32" { return MSC_Keyword(TOK_PTR32); }
"__ptr64" { return MSC_Keyword(TOK_PTR64); }

Expand Down