Skip to content

added support for _int64 keyword #2608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2018
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