mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-10-03 00:44:52 +00:00
Merge remote-tracking branch
'origin/GP-3541_emteere_FixPragmaCommaParse' into patch (Closes #5427)
This commit is contained in:
commit
7115d1187a
|
@ -1922,7 +1922,7 @@ void PragmaSpecifier() : {
|
|||
{
|
||||
LOOKAHEAD(3)
|
||||
<POPEN> PragmaSpecifier() <PCLOSE> |
|
||||
id=<PIDENTIFIER> (<PIDENTIFIER> | <PINTEGER_LITERAL> | <PSTRING_LITERAL>)*
|
||||
id=<PIDENTIFIER> (<PIDENTIFIER> | <PINTEGER_LITERAL> | <PSTRING_LITERAL> | <PCOMMA> )*
|
||||
([ <POPEN> [ (ds1=PragmaConstant())+ [ ( <PCOMMA> ds2=PragmaConstant() ) [ ( <PCOMMA> ds3=PragmaConstant() ) [ ( <PCOMMA> PragmaConstant() )+ ] ] ] ] <PCLOSE> ] )
|
||||
{
|
||||
if (id.image.equals("pack") && ds1 != null) {
|
||||
|
|
|
@ -176,6 +176,9 @@ int (__stdcall * GetSectionBlock) (
|
|||
|
||||
#pragma region Input compatibility macros
|
||||
|
||||
// nothing will parse after this line if the this fails
|
||||
#pragma test for, pragma, with, commas outside parens
|
||||
|
||||
#pragma warning(disable)
|
||||
|
||||
#pragma warning(disable:4035 4793) // re-enable below
|
||||
|
|
Loading…
Reference in a new issue