mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 07:19:14 +02:00
+ mode macpas: support for implicit external
This commit is contained in:
parent
d5b3df22d6
commit
4a092ae765
@ -50,6 +50,8 @@ interface
|
|||||||
|
|
||||||
function proc_add_definition(var pd:tprocdef):boolean;
|
function proc_add_definition(var pd:tprocdef):boolean;
|
||||||
|
|
||||||
|
procedure import_implict_external(pd:tabstractprocdef);
|
||||||
|
|
||||||
procedure handle_calling_convention(pd:tabstractprocdef);
|
procedure handle_calling_convention(pd:tabstractprocdef);
|
||||||
|
|
||||||
procedure parse_parameter_dec(pd:tabstractprocdef);
|
procedure parse_parameter_dec(pd:tabstractprocdef);
|
||||||
@ -1258,6 +1260,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure import_implict_external(pd:tabstractprocdef);
|
||||||
|
|
||||||
|
begin
|
||||||
|
tprocdef(pd).forwarddef:=false;
|
||||||
|
tprocdef(pd).setmangledname(tprocdef(pd).procsym.realname);
|
||||||
|
end;
|
||||||
|
|
||||||
type
|
type
|
||||||
pd_handler=procedure(pd:tabstractprocdef);
|
pd_handler=procedure(pd:tabstractprocdef);
|
||||||
proc_dir_rec=record
|
proc_dir_rec=record
|
||||||
@ -2238,7 +2247,10 @@ const
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.175 2004-05-11 06:59:35 michael
|
Revision 1.176 2004-05-11 18:29:41 olle
|
||||||
|
+ mode macpas: support for implicit external
|
||||||
|
|
||||||
|
Revision 1.175 2004/05/11 06:59:35 michael
|
||||||
+ Patch from peter to hide system unit as symbol
|
+ Patch from peter to hide system unit as symbol
|
||||||
|
|
||||||
Revision 1.174 2004/05/09 12:49:14 peter
|
Revision 1.174 2004/05/09 12:49:14 peter
|
||||||
|
@ -325,7 +325,8 @@ implementation
|
|||||||
fmodule,
|
fmodule,
|
||||||
{ codegen }
|
{ codegen }
|
||||||
paramgr,cresstr,
|
paramgr,cresstr,
|
||||||
procinfo
|
procinfo,
|
||||||
|
pdecsub
|
||||||
;
|
;
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
@ -629,12 +630,16 @@ implementation
|
|||||||
p:=pdlistfirst;
|
p:=pdlistfirst;
|
||||||
while assigned(p) do
|
while assigned(p) do
|
||||||
begin
|
begin
|
||||||
if p^.own and
|
if p^.own and (p^.def.forwarddef) then
|
||||||
(p^.def.forwarddef) then
|
|
||||||
begin
|
begin
|
||||||
MessagePos1(p^.def.fileinfo,sym_e_forward_not_resolved,p^.def.fullprocname(false));
|
if (m_mac in aktmodeswitches) and (p^.def.interfacedef) then
|
||||||
{ Turn futher error messages off }
|
import_implict_external(p^.def)
|
||||||
p^.def.forwarddef:=false;
|
else
|
||||||
|
begin
|
||||||
|
MessagePos1(p^.def.fileinfo,sym_e_forward_not_resolved,p^.def.fullprocname(false));
|
||||||
|
{ Turn further error messages off }
|
||||||
|
p^.def.forwarddef:=false;
|
||||||
|
end
|
||||||
end;
|
end;
|
||||||
p:=p^.next;
|
p:=p^.next;
|
||||||
end;
|
end;
|
||||||
@ -2203,7 +2208,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.169 2004-03-29 19:19:35 florian
|
Revision 1.170 2004-05-11 18:29:41 olle
|
||||||
|
+ mode macpas: support for implicit external
|
||||||
|
|
||||||
|
Revision 1.169 2004/03/29 19:19:35 florian
|
||||||
+ arm floating point register saving implemented
|
+ arm floating point register saving implemented
|
||||||
* hopefully stabs generation for MacOSX fixed
|
* hopefully stabs generation for MacOSX fixed
|
||||||
+ some defines for arm added
|
+ some defines for arm added
|
||||||
|
Loading…
Reference in New Issue
Block a user