mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 02:51:37 +01:00 
			
		
		
		
	* StackError is now a typed constant
+ $S can be used under unix
This commit is contained in:
		
							parent
							
								
									5cdad9e30f
								
							
						
					
					
						commit
						1b88940d62
					
				| @ -415,9 +415,6 @@ end; | |||||||
| 
 | 
 | ||||||
| {$IFNDEF NO_GENERIC_STACK_CHECK} | {$IFNDEF NO_GENERIC_STACK_CHECK} | ||||||
| 
 | 
 | ||||||
| var |  | ||||||
|   StackError : boolean; |  | ||||||
| 
 |  | ||||||
| {$IFOPT S+} | {$IFOPT S+} | ||||||
| {$DEFINE STACKCHECK} | {$DEFINE STACKCHECK} | ||||||
| {$ENDIF} | {$ENDIF} | ||||||
| @ -724,7 +721,11 @@ end; | |||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   $Log$ |   $Log$ | ||||||
|   Revision 1.27  2002-04-15 19:38:40  peter |   Revision 1.28  2002-04-21 15:51:50  carl | ||||||
|  |   * StackError is now a typed constant | ||||||
|  |   + $S can be used under unix | ||||||
|  | 
 | ||||||
|  |   Revision 1.27  2002/04/15 19:38:40  peter | ||||||
|     * stackcheck protected against infinite recursive after stack error |     * stackcheck protected against infinite recursive after stack error | ||||||
|     * stackcheck requires saveregisters, because it can be called from |     * stackcheck requires saveregisters, because it can be called from | ||||||
|       iocheck and then will destroy the result of the original function
 |       iocheck and then will destroy the result of the original function
 | ||||||
|  | |||||||
| @ -30,11 +30,6 @@ | |||||||
| { needed for insert,delete,readln } | { needed for insert,delete,readln } | ||||||
| {$P+} | {$P+} | ||||||
| 
 | 
 | ||||||
| { Stack check gives a note under linux } |  | ||||||
| {$ifndef unix} |  | ||||||
|   {$S-} |  | ||||||
| {$endif} |  | ||||||
| 
 |  | ||||||
| {**************************************************************************** | {**************************************************************************** | ||||||
|                          Global Types and Constants |                          Global Types and Constants | ||||||
| ****************************************************************************} | ****************************************************************************} | ||||||
| @ -214,6 +209,8 @@ const | |||||||
|  { Delphi Compatibility } |  { Delphi Compatibility } | ||||||
|  { assume that this program will not spawn other threads. } |  { assume that this program will not spawn other threads. } | ||||||
|   IsMultiThread : boolean = FALSE; |   IsMultiThread : boolean = FALSE; | ||||||
|  |  { Indicates if there was an error } | ||||||
|  |   StackError : boolean = FALSE; | ||||||
| 
 | 
 | ||||||
| var | var | ||||||
| { Standard In- and Output } | { Standard In- and Output } | ||||||
| @ -224,8 +221,9 @@ var | |||||||
|   ExitCode    : Word; |   ExitCode    : Word; | ||||||
|   StackBottom, |   StackBottom, | ||||||
|   RandSeed    : Cardinal; |   RandSeed    : Cardinal; | ||||||
| { Delphi compatible } |   { Delphi compatibility } | ||||||
|   IsLibrary,IsConsole : boolean; |   IsLibrary : boolean; | ||||||
|  |   IsConsole : boolean; | ||||||
| {$ifdef MT} | {$ifdef MT} | ||||||
| ThreadVar | ThreadVar | ||||||
| {$else MT} | {$else MT} | ||||||
| @ -557,7 +555,11 @@ const | |||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   $Log$ |   $Log$ | ||||||
|   Revision 1.44  2002-04-12 17:35:24  carl |   Revision 1.45  2002-04-21 15:51:51  carl | ||||||
|  |   * StackError is now a typed constant | ||||||
|  |   + $S can be used under unix | ||||||
|  | 
 | ||||||
|  |   Revision 1.44  2002/04/12 17:35:24  carl | ||||||
|   - removed unused variable |   - removed unused variable | ||||||
| 
 | 
 | ||||||
|   Revision 1.43  2002/01/25 17:41:05  peter |   Revision 1.43  2002/01/25 17:41:05  peter | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 carl
						carl