|
@@ -324,7 +324,7 @@ implementation
|
|
if try_to_consume(_SEMICOLON) then
|
|
if try_to_consume(_SEMICOLON) then
|
|
begin
|
|
begin
|
|
if check_proc_directive(true) then
|
|
if check_proc_directive(true) then
|
|
- parse_var_proc_directives(sym)
|
|
|
|
|
|
+ parse_proctype_directives(tprocvardef(hdef))
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
Message(parser_e_proc_directive_expected);
|
|
Message(parser_e_proc_directive_expected);
|
|
@@ -335,7 +335,7 @@ implementation
|
|
{ support p : procedure stdcall=nil; }
|
|
{ support p : procedure stdcall=nil; }
|
|
begin
|
|
begin
|
|
if check_proc_directive(true) then
|
|
if check_proc_directive(true) then
|
|
- parse_var_proc_directives(sym);
|
|
|
|
|
|
+ parse_proctype_directives(tprocvardef(hdef));
|
|
end;
|
|
end;
|
|
{ add default calling convention }
|
|
{ add default calling convention }
|
|
handle_calling_convention(tabstractprocdef(hdef),hcc_default_actions_intf);
|
|
handle_calling_convention(tabstractprocdef(hdef),hcc_default_actions_intf);
|
|
@@ -1051,7 +1051,7 @@ implementation
|
|
try_consume_hintdirective(newtype.symoptions,newtype.deprecatedmsg);
|
|
try_consume_hintdirective(newtype.symoptions,newtype.deprecatedmsg);
|
|
consume(_SEMICOLON);
|
|
consume(_SEMICOLON);
|
|
end;
|
|
end;
|
|
- parse_var_proc_directives(tsym(newtype));
|
|
|
|
|
|
+ parse_proctype_directives(tprocvardef(hdef));
|
|
if po_is_function_ref in tprocvardef(hdef).procoptions then
|
|
if po_is_function_ref in tprocvardef(hdef).procoptions then
|
|
begin
|
|
begin
|
|
{ these always support everything, no "of object" or
|
|
{ these always support everything, no "of object" or
|