mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 12:49:09 +02:00
Avoid some range check errors for msdos target
git-svn-id: trunk@24517 -
This commit is contained in:
parent
cc8708c3c9
commit
7f5aa5a441
@ -15,8 +15,13 @@
|
|||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
|
||||||
const
|
const
|
||||||
|
{$ifndef FPC_USE_SMALL_DEFAULTSTACKSIZE}
|
||||||
{ includes 16384 bytes margin for stackchecking }
|
{ includes 16384 bytes margin for stackchecking }
|
||||||
DefaultStackSize = 4*1024*1024;
|
DefaultStackSize = 4*1024*1024;
|
||||||
|
{$else i.e. FPC_USE_SMALL_DEFAULTSTACKSIZE}
|
||||||
|
{ Special value of Default stack size }
|
||||||
|
DefaultStackSize = 16 * 1024;
|
||||||
|
{$endif not FPC_USE_SMALL_DEFAULTSTACKSIZE}
|
||||||
|
|
||||||
{ every platform can have it's own implementation of GetCPUCount; use the define
|
{ every platform can have it's own implementation of GetCPUCount; use the define
|
||||||
HAS_GETCPUCOUNT to disable the default implementation which simply returns 1 }
|
HAS_GETCPUCOUNT to disable the default implementation which simply returns 1 }
|
||||||
|
@ -7,6 +7,12 @@ interface
|
|||||||
{$DEFINE FPC_INCLUDE_SOFTWARE_MUL}
|
{$DEFINE FPC_INCLUDE_SOFTWARE_MUL}
|
||||||
{$DEFINE FPC_INCLUDE_SOFTWARE_MOD_DIV}
|
{$DEFINE FPC_INCLUDE_SOFTWARE_MOD_DIV}
|
||||||
|
|
||||||
|
{$DEFINE FPC_USE_SMALL_DEFAULTSTACKSIZE}
|
||||||
|
{ To avoid warnings in thread.inc code,
|
||||||
|
but value must be really given after
|
||||||
|
systemh.inc is included otherwise the
|
||||||
|
$mode switch is not effective }
|
||||||
|
|
||||||
{$I systemh.inc}
|
{$I systemh.inc}
|
||||||
|
|
||||||
const
|
const
|
||||||
@ -24,7 +30,7 @@ const
|
|||||||
|
|
||||||
const
|
const
|
||||||
{ Default filehandles }
|
{ Default filehandles }
|
||||||
UnusedHandle = -1;
|
UnusedHandle = $ffff;{ instead of -1, as it is a word value}
|
||||||
StdInputHandle = 0;
|
StdInputHandle = 0;
|
||||||
StdOutputHandle = 1;
|
StdOutputHandle = 1;
|
||||||
StdErrorHandle = 2;
|
StdErrorHandle = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user