PB 5.20 LTS (Linux & Win): apparent bug in the macro parser
Posted: Sat Nov 02, 2013 7:26 pm
It appears as if the macro processor, in some situations, is terminating it's scanning too early. It's not satisfying itself that there are no more macro substitutions to be processed.
This code compiles:
And this code compiles:
But this code causes the compiler to complain about a missing structure named, "typInt32".
This code compiles:
Code: Select all
Macro typInt32
i
EndMacro
x.typInt32 ; x.i
Code: Select all
Macro typInt32
i
EndMacro
Macro Field (DataName, DataType)
DataName.DataType
EndMacro
Field(x, typInt32) ; x.i
Code: Select all
Macro typInt32
i
EndMacro
Macro Field (DataName, DataType)
DataName.typ#DataType
EndMacro
Field(x, Int32) ; structure not found: typint32