From b8c1ea753f9c70af4c0a0e8bee1942eb6c7c1388 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Thu, 20 Oct 2016 17:47:01 -0500 Subject: [PATCH] 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. --- Parser.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Parser.pas b/Parser.pas index 537df7f..4ac4dee 100644 --- a/Parser.pas +++ b/Parser.pas @@ -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