Allow 'extern' storage-class specifier in function definitions.

Per the C standards, this is allowed and is equivalent to not specifying a storage-class specifier.
This commit is contained in:
Stephen Heumann 2016-10-20 17:47:01 -05:00
parent 88279484af
commit b8c1ea753f
1 changed files with 1 additions and 2 deletions

View File

@ -3291,8 +3291,7 @@ if isFunction then begin
PopTable
{external or forward declaration}
else if (storageClass = externsy)
or (token.kind in [commach,semicolonch,inlinesy]) then begin
else if token.kind in [commach,semicolonch,inlinesy] then begin
fnType^.isPascal := isPascal; {note if we have pascal parms}
if token.kind = inlinesy then {handle tool declarations}
with fnType^ do begin