Allow prototyped function parameter types to begin with "volatile".

Prototypes with such parameter types were incorrectly being rejected, e.g. in the following example:

void foo(volatile int *p);
This commit is contained in:
Stephen Heumann 2018-12-03 18:19:28 -06:00
parent 1af7505a00
commit cfa3e4e02d

View File

@ -1376,7 +1376,8 @@ var
if token.kind in {see if we are doing a prototyped list}
[autosy,externsy,registersy,staticsy,typedefsy,unsignedsy,intsy,
longsy,charsy,shortsy,floatsy,doublesy,compsy,extendedsy,voidsy,
enumsy,structsy,unionsy,typedef,signedsy,constsy] then begin
enumsy,structsy,unionsy,typedef,signedsy,constsy,volatilesy]
then begin
{handle a prototype variable list}
numberOfParameters := 0; {don't allow K&R parm declarations}