mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 20:11:02 +02:00
+ initialize some global variables
This commit is contained in:
parent
1b88940d62
commit
280878b8a5
@ -1483,6 +1483,10 @@ var
|
|||||||
temp_int : tseginfo;
|
temp_int : tseginfo;
|
||||||
Begin
|
Begin
|
||||||
StackBottom := __stkbottom;
|
StackBottom := __stkbottom;
|
||||||
|
{ To be set if this is a GUI or console application }
|
||||||
|
IsConsole := TRUE;
|
||||||
|
{ To be set if this is a library and not a program }
|
||||||
|
IsLibrary := FALSE;
|
||||||
{ save old int 0 and 75 }
|
{ save old int 0 and 75 }
|
||||||
get_pm_interrupt($00,old_int00);
|
get_pm_interrupt($00,old_int00);
|
||||||
get_pm_interrupt($75,old_int75);
|
get_pm_interrupt($75,old_int75);
|
||||||
@ -1525,7 +1529,10 @@ Begin
|
|||||||
End.
|
End.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.16 2002-04-12 17:34:05 carl
|
Revision 1.17 2002-04-21 15:52:58 carl
|
||||||
|
+ initialize some global variables
|
||||||
|
|
||||||
|
Revision 1.16 2002/04/12 17:34:05 carl
|
||||||
+ generic stack checking
|
+ generic stack checking
|
||||||
|
|
||||||
Revision 1.15 2002/03/11 19:10:33 peter
|
Revision 1.15 2002/03/11 19:10:33 peter
|
||||||
|
@ -929,6 +929,8 @@ end;
|
|||||||
var tib:Pthreadinfoblock;
|
var tib:Pthreadinfoblock;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
IsConsole := TRUE;
|
||||||
|
IsLibrary := FALSE;
|
||||||
{Determine the operating system we are running on.}
|
{Determine the operating system we are running on.}
|
||||||
{$ASMMODE INTEL}
|
{$ASMMODE INTEL}
|
||||||
asm
|
asm
|
||||||
@ -1019,7 +1021,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.20 2002-04-12 17:42:16 carl
|
Revision 1.21 2002-04-21 15:54:20 carl
|
||||||
|
+ initialize some global variables
|
||||||
|
|
||||||
|
Revision 1.20 2002/04/12 17:42:16 carl
|
||||||
+ generic stack checking
|
+ generic stack checking
|
||||||
|
|
||||||
Revision 1.19 2002/03/11 19:10:33 peter
|
Revision 1.19 2002/03/11 19:10:33 peter
|
||||||
|
@ -73,20 +73,6 @@ Procedure system_exit;
|
|||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{*****************************************************************************
|
|
||||||
Stack check code
|
|
||||||
*****************************************************************************}
|
|
||||||
procedure int_stackcheck(stack_size:longint);[public,alias:'FPC_STACKCHECK'];
|
|
||||||
{
|
|
||||||
called when trying to get local stack if the compiler directive $S
|
|
||||||
is set this function must preserve esi !!!! because esi is set by
|
|
||||||
the calling proc for methods it must preserve all registers !!
|
|
||||||
|
|
||||||
With a 2048 byte safe area used to write to StdIo without crossing
|
|
||||||
the stack boundary
|
|
||||||
}
|
|
||||||
begin
|
|
||||||
end;
|
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
ParamStr/Randomize
|
ParamStr/Randomize
|
||||||
@ -284,6 +270,12 @@ end;
|
|||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
|
{ To be set if this is a GUI or console application }
|
||||||
|
IsConsole := TRUE;
|
||||||
|
{ To be set if this is a library and not a program }
|
||||||
|
IsLibrary := FALSE;
|
||||||
|
StackBottom := SPtr - StackLength;
|
||||||
|
ExitCode := 0;
|
||||||
{ Setup heap }
|
{ Setup heap }
|
||||||
InitHeap;
|
InitHeap;
|
||||||
{ Setup stdin, stdout and stderr }
|
{ Setup stdin, stdout and stderr }
|
||||||
@ -299,7 +291,10 @@ Begin
|
|||||||
End.
|
End.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.6 2001-06-19 20:46:56 hajny
|
Revision 1.7 2002-04-21 15:55:14 carl
|
||||||
|
+ initialize some global variables
|
||||||
|
|
||||||
|
Revision 1.6 2001/06/19 20:46:56 hajny
|
||||||
* platform specific constants moved after systemh.inc, BeOS omission corrected
|
* platform specific constants moved after systemh.inc, BeOS omission corrected
|
||||||
|
|
||||||
Revision 1.5 2001/06/13 22:21:53 hajny
|
Revision 1.5 2001/06/13 22:21:53 hajny
|
||||||
|
@ -746,6 +746,8 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
|
IsConsole := TRUE;
|
||||||
|
IsLibrary := FALSE;
|
||||||
StackBottom := Sptr - StackLength;
|
StackBottom := Sptr - StackLength;
|
||||||
{ Set up signals handlers }
|
{ Set up signals handlers }
|
||||||
InstallSignals;
|
InstallSignals;
|
||||||
@ -765,7 +767,10 @@ End.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.20 2002-04-12 17:43:28 carl
|
Revision 1.21 2002-04-21 15:55:00 carl
|
||||||
|
+ initialize some global variables
|
||||||
|
|
||||||
|
Revision 1.20 2002/04/12 17:43:28 carl
|
||||||
+ generic stack checking
|
+ generic stack checking
|
||||||
|
|
||||||
Revision 1.19 2002/03/11 19:10:33 peter
|
Revision 1.19 2002/03/11 19:10:33 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user