|
@@ -42,23 +42,6 @@ const
|
|
DoError : Boolean = FALSE;
|
|
DoError : Boolean = FALSE;
|
|
ErrorBase : Longint = 0;
|
|
ErrorBase : Longint = 0;
|
|
|
|
|
|
-{****************************************************************************
|
|
|
|
- Include processor specific routines
|
|
|
|
-****************************************************************************}
|
|
|
|
-
|
|
|
|
-{$IFDEF I386}
|
|
|
|
- {$IFDEF M68K}
|
|
|
|
- {$Error Can't determine processor type !}
|
|
|
|
- {$ENDIF}
|
|
|
|
- {$I i386.inc} { Case dependent, don't change }
|
|
|
|
-{$ELSE}
|
|
|
|
- {$IFDEF M68K}
|
|
|
|
- {$I m68k.inc} { Case dependent, don't change }
|
|
|
|
- {$ELSE}
|
|
|
|
- {$Error Can't determine processor type !}
|
|
|
|
- {$ENDIF}
|
|
|
|
-{$ENDIF}
|
|
|
|
-
|
|
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
Routines which have compiler magic
|
|
Routines which have compiler magic
|
|
****************************************************************************}
|
|
****************************************************************************}
|
|
@@ -96,6 +79,22 @@ Function Length(s : string) : byte; [INTERNPROC: In_Length_string];
|
|
Procedure Reset(var f : TypedFile); [INTERNPROC: In_Reset_TypedFile];
|
|
Procedure Reset(var f : TypedFile); [INTERNPROC: In_Reset_TypedFile];
|
|
Procedure Rewrite(var f : TypedFile); [INTERNPROC: In_Rewrite_TypedFile];
|
|
Procedure Rewrite(var f : TypedFile); [INTERNPROC: In_Rewrite_TypedFile];
|
|
|
|
|
|
|
|
+{****************************************************************************
|
|
|
|
+ Include processor specific routines
|
|
|
|
+****************************************************************************}
|
|
|
|
+
|
|
|
|
+{$IFDEF I386}
|
|
|
|
+ {$IFDEF M68K}
|
|
|
|
+ {$Error Can't determine processor type !}
|
|
|
|
+ {$ENDIF}
|
|
|
|
+ {$I i386.inc} { Case dependent, don't change }
|
|
|
|
+{$ELSE}
|
|
|
|
+ {$IFDEF M68K}
|
|
|
|
+ {$I m68k.inc} { Case dependent, don't change }
|
|
|
|
+ {$ELSE}
|
|
|
|
+ {$Error Can't determine processor type !}
|
|
|
|
+ {$ENDIF}
|
|
|
|
+{$ENDIF}
|
|
|
|
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
Set Handling
|
|
Set Handling
|
|
@@ -242,22 +241,22 @@ End;
|
|
|
|
|
|
{$endif VER0_99_5}
|
|
{$endif VER0_99_5}
|
|
|
|
|
|
-Function swap (X : Word) : Word;
|
|
|
|
|
|
+Function swap (X : Word) : Word;{$ifdef INTERNCONST}[internconst:in_const_swap_word];{$endif}
|
|
Begin
|
|
Begin
|
|
swap:=(X and $ff) shl 8 + (X shr 8)
|
|
swap:=(X and $ff) shl 8 + (X shr 8)
|
|
End;
|
|
End;
|
|
|
|
|
|
-Function Swap (X : Integer) : Integer;
|
|
|
|
|
|
+Function Swap (X : Integer) : Integer;{$ifdef INTERNCONST}[internconst:in_const_swap_word];{$endif}
|
|
Begin
|
|
Begin
|
|
Swap:=Integer(Swap(Word(X)));
|
|
Swap:=Integer(Swap(Word(X)));
|
|
End;
|
|
End;
|
|
|
|
|
|
-Function swap (X : Longint) : Longint;
|
|
|
|
|
|
+Function swap (X : Longint) : Longint;{$ifdef INTERNCONST}[internconst:in_const_swap_long];{$endif}
|
|
Begin
|
|
Begin
|
|
Swap:=(X and $ffff) shl 16 + (X shr 16)
|
|
Swap:=(X and $ffff) shl 16 + (X shr 16)
|
|
End;
|
|
End;
|
|
|
|
|
|
-Function Swap (X : Cardinal) : Cardinal;
|
|
|
|
|
|
+Function Swap (X : Cardinal) : Cardinal;{$ifdef INTERNCONST}[internconst:in_const_swap_long];{$endif}
|
|
Begin
|
|
Begin
|
|
Swap:=Swap(Longint(X));
|
|
Swap:=Swap(Longint(X));
|
|
End;
|
|
End;
|
|
@@ -266,8 +265,8 @@ End;
|
|
|
|
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
Random function routines
|
|
Random function routines
|
|
-
|
|
|
|
- This implements a very long cycle random number generator by combining
|
|
|
|
|
|
+
|
|
|
|
+ This implements a very long cycle random number generator by combining
|
|
three independant generators. The technique was described in the March
|
|
three independant generators. The technique was described in the March
|
|
1987 issue of Byte.
|
|
1987 issue of Byte.
|
|
Taken and modified with permission from the PCQ Pascal rtl code.
|
|
Taken and modified with permission from the PCQ Pascal rtl code.
|
|
@@ -343,7 +342,7 @@ end;
|
|
|
|
|
|
{$ifndef RTLLITE}
|
|
{$ifndef RTLLITE}
|
|
|
|
|
|
-Function Ptr(sel,off : Longint) : pointer;
|
|
|
|
|
|
+Function Ptr(sel,off : Longint) : pointer;{$ifdef INTERNCONST}[internconst:in_const_ptr];{$endif}
|
|
Begin
|
|
Begin
|
|
sel:=0;
|
|
sel:=0;
|
|
ptr:=pointer(off);
|
|
ptr:=pointer(off);
|
|
@@ -534,7 +533,10 @@ end;
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.28 1998-08-17 12:24:16 carl
|
|
|
|
|
|
+ Revision 1.29 1998-09-01 17:36:21 peter
|
|
|
|
+ + internconst
|
|
|
|
+
|
|
|
|
+ Revision 1.28 1998/08/17 12:24:16 carl
|
|
+ important comment added
|
|
+ important comment added
|
|
|
|
|
|
Revision 1.27 1998/08/13 16:22:11 jonas
|
|
Revision 1.27 1998/08/13 16:22:11 jonas
|