mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 06:50:15 +02:00
* don't include uf_init for library. The code is already called and
does not need to be in the initfinal table
This commit is contained in:
parent
88e68acd03
commit
bbd18afe11
@ -139,6 +139,9 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if token=_INITIALIZATION then
|
if token=_INITIALIZATION then
|
||||||
begin
|
begin
|
||||||
|
{ The library init code is already called and does not
|
||||||
|
need to be in the initfinal table (PFV) }
|
||||||
|
if not islibrary then
|
||||||
current_module.flags:=current_module.flags or uf_init;
|
current_module.flags:=current_module.flags or uf_init;
|
||||||
block:=statement_block(_INITIALIZATION);
|
block:=statement_block(_INITIALIZATION);
|
||||||
end
|
end
|
||||||
@ -156,6 +159,9 @@ implementation
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
{ The library init code is already called and does not
|
||||||
|
need to be in the initfinal table (PFV) }
|
||||||
|
if not islibrary then
|
||||||
current_module.flags:=current_module.flags or uf_init;
|
current_module.flags:=current_module.flags or uf_init;
|
||||||
block:=statement_block(_BEGIN);
|
block:=statement_block(_BEGIN);
|
||||||
end;
|
end;
|
||||||
@ -804,7 +810,11 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.80 2002-12-07 14:27:09 carl
|
Revision 1.81 2002-12-15 13:37:15 peter
|
||||||
|
* don't include uf_init for library. The code is already called and
|
||||||
|
does not need to be in the initfinal table
|
||||||
|
|
||||||
|
Revision 1.80 2002/12/07 14:27:09 carl
|
||||||
* 3% memory optimization
|
* 3% memory optimization
|
||||||
* changed some types
|
* changed some types
|
||||||
+ added type checking with different size for call node and for
|
+ added type checking with different size for call node and for
|
||||||
|
Loading…
Reference in New Issue
Block a user