Browse Source

- removed all "islibrary:=false;" assignments from system unit
initialisation code, because that's a typed constant already initialised
to that value and it interferes with a generic solution to set islibrary
to true for libraries

git-svn-id: trunk@12376 -

Jonas Maebe 16 years ago
parent
commit
d4d7b695c7

+ 0 - 1
rtl/amiga/system.pp

@@ -365,7 +365,6 @@ end;
 
 
 begin
 begin
   IsConsole := TRUE;
   IsConsole := TRUE;
-  IsLibrary := FALSE;
   SysResetFPU;
   SysResetFPU;
   if not(IsLibrary) then
   if not(IsLibrary) then
     SysInitFPU;
     SysInitFPU;

+ 0 - 1
rtl/beos/system.pp

@@ -350,7 +350,6 @@ var
   s : string;
   s : string;
 begin
 begin
   IsConsole := TRUE;
   IsConsole := TRUE;
-  IsLibrary := FALSE;
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackBottom := Sptr - StackLength;
   StackBottom := Sptr - StackLength;
 
 

+ 0 - 1
rtl/bsd/system.pp

@@ -305,7 +305,6 @@ end;
 
 
 Begin
 Begin
   IsConsole := TRUE;
   IsConsole := TRUE;
-  IsLibrary := FALSE;
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackBottom := Sptr - StackLength;
   StackBottom := Sptr - StackLength;
   { Set up signals handlers }
   { Set up signals handlers }

+ 0 - 1
rtl/emx/system.pas

@@ -460,7 +460,6 @@ const
  FatalHeap: array [0..33] of char = 'FATAL: Cannot initialize heap!!'#13#10'$';
  FatalHeap: array [0..33] of char = 'FATAL: Cannot initialize heap!!'#13#10'$';
 
 
 begin
 begin
-    IsLibrary := FALSE;
     {Determine the operating system we are running on.}
     {Determine the operating system we are running on.}
 {$ASMMODE INTEL}
 {$ASMMODE INTEL}
     asm
     asm

+ 0 - 1
rtl/haiku/system.pp

@@ -350,7 +350,6 @@ var
   s : string;
   s : string;
 begin
 begin
   IsConsole := TRUE;
   IsConsole := TRUE;
-  IsLibrary := FALSE;
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackBottom := Sptr - StackLength;
   StackBottom := Sptr - StackLength;
 
 

+ 0 - 1
rtl/morphos/system.pp

@@ -397,7 +397,6 @@ end;
 
 
 begin
 begin
   IsConsole := TRUE;
   IsConsole := TRUE;
-  IsLibrary := FALSE;
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackBottom := Sptr - StackLength;
   StackBottom := Sptr - StackLength;
   SysResetFPU;
   SysResetFPU;

+ 0 - 1
rtl/netware/system.pp

@@ -476,7 +476,6 @@ Begin
   SysInitStdIO;
   SysInitStdIO;
 
 
 {Delphi Compatible}
 {Delphi Compatible}
-  IsLibrary := FALSE;
   IsConsole := TRUE;
   IsConsole := TRUE;
   ExitCode  := 0;
   ExitCode  := 0;
   InitSystemThreads;
   InitSystemThreads;

+ 0 - 2
rtl/os2/system.pas

@@ -1086,8 +1086,6 @@ const
 {* ST: pointer;}
 {* ST: pointer;}
 {*}
 {*}
 begin
 begin
-    IsLibrary := FALSE;
-
 {$IFDEF OS2EXCEPTIONS}
 {$IFDEF OS2EXCEPTIONS}
 (*    asm
 (*    asm
       { allocate space for exception registration record }
       { allocate space for exception registration record }

+ 0 - 1
rtl/solaris/system.pp

@@ -218,7 +218,6 @@ end;
 
 
 Begin
 Begin
   IsConsole := TRUE;
   IsConsole := TRUE;
-  IsLibrary := FALSE;
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackBottom := Sptr - StackLength;
   StackBottom := Sptr - StackLength;
 { Set up signals handlers }
 { Set up signals handlers }

+ 0 - 2
rtl/symbian/system.pp

@@ -182,8 +182,6 @@ function Pascal_E32Main: Integer; cdecl; [public, alias: '_Pascal_E32Main'];
 var
 var
   ST : pointer;
   ST : pointer;
 begin
 begin
-  IsLibrary := false;
-
   PascalMain;
   PascalMain;
 
 
   { if we pass here there was no error }
   { if we pass here there was no error }