mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
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:
parent
1af7505a00
commit
cfa3e4e02d
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user