mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-10 00:27:21 +01:00
* make some checks EXTDEBUG only for now so linux cycles again
This commit is contained in:
parent
a001387a3c
commit
1687306d22
@ -68,18 +68,14 @@ implementation
|
||||
globtype,globals,verbose,
|
||||
systems,
|
||||
cpuinfo,
|
||||
{ aasm }
|
||||
aasmbase,
|
||||
{ symtable }
|
||||
symbase,symtable,defutil,defcmp,paramgr,cpupara,
|
||||
{ pass 1 }
|
||||
node,htypechk,
|
||||
nmat,nadd,ncal,nset,ncnv,ninl,ncon,nld,nflw,
|
||||
{ parser }
|
||||
fmodule,scanner,
|
||||
pbase,pexpr,ptype,pdecl,
|
||||
{ linking }
|
||||
import,gendef
|
||||
scanner,
|
||||
pbase,pexpr,ptype,pdecl
|
||||
;
|
||||
|
||||
const
|
||||
@ -1814,8 +1810,10 @@ const
|
||||
{ Win32 imports need to use the normal name since to functions
|
||||
can refer to the same DLL function. This is also needed for compatability
|
||||
with Delphi and TP7 }
|
||||
if assigned(pd.import_dll) and
|
||||
not(target_info.system in [system_i386_win32,system_i386_wdosx]) then
|
||||
if not(
|
||||
assigned(pd.import_dll) and
|
||||
(target_info.system in [system_i386_win32,system_i386_wdosx])
|
||||
) then
|
||||
pd.setmangledname(pd.import_name^);
|
||||
end
|
||||
else
|
||||
@ -2178,6 +2176,7 @@ const
|
||||
{ Body declaration is external? }
|
||||
if (po_external in pd.procoptions) then
|
||||
begin
|
||||
{$ifdef EXTDEBUG}
|
||||
{ Win32 supports declaration in interface and external in
|
||||
implementation for dll imports. Support this for backwards
|
||||
compatibility with Tp7 and Delphi }
|
||||
@ -2186,6 +2185,7 @@ const
|
||||
assigned(pd.import_dll)
|
||||
) then
|
||||
MessagePos(pd.fileinfo,parser_e_proc_no_external_allowed);
|
||||
{$endif EXTDEBUG}
|
||||
end;
|
||||
|
||||
{ Check parameters }
|
||||
@ -2328,7 +2328,10 @@ const
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.208 2004-11-17 22:21:35 peter
|
||||
Revision 1.209 2004-11-17 22:41:41 peter
|
||||
* make some checks EXTDEBUG only for now so linux cycles again
|
||||
|
||||
Revision 1.208 2004/11/17 22:21:35 peter
|
||||
mangledname setting moved to place after the complete proc declaration is read
|
||||
import generation moved to place where body is also parsed (still gives problems with win32)
|
||||
|
||||
|
||||
@ -4368,11 +4368,19 @@ implementation
|
||||
|
||||
procedure tprocdef.setmangledname(const s : string);
|
||||
begin
|
||||
{$ifdef EXTDEBUG}
|
||||
{ This is not allowed anymore, the forward declaration
|
||||
already needs to create the correct mangledname, no changes
|
||||
afterwards are allowed (PFV) }
|
||||
if assigned(_mangledname) then
|
||||
internalerror(200411171);
|
||||
{$else}
|
||||
if assigned(_mangledname) then
|
||||
begin
|
||||
objectlibrary.renameasmsymbol(_mangledname^,s);
|
||||
stringdispose(_mangledname);
|
||||
end;
|
||||
{$endif EXTDEBUG}
|
||||
{$ifdef compress}
|
||||
_mangledname:=stringdup(minilzw_encode(s));
|
||||
{$else}
|
||||
@ -6134,7 +6142,10 @@ implementation
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.273 2004-11-17 22:21:35 peter
|
||||
Revision 1.274 2004-11-17 22:41:41 peter
|
||||
* make some checks EXTDEBUG only for now so linux cycles again
|
||||
|
||||
Revision 1.273 2004/11/17 22:21:35 peter
|
||||
mangledname setting moved to place after the complete proc declaration is read
|
||||
import generation moved to place where body is also parsed (still gives problems with win32)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user