Browse Source

* corrected problems with rangecheck
+ added needed code for no rangecheck in CRC32 functions in ppu unit
* enumdef lso need its rangenr reset to zero
when calling reset_global_defs

pierre 27 years ago
parent
commit
65e4bc90c1
1 changed files with 15 additions and 1 deletions
  1. 15 1
      compiler/ppu.pas

+ 15 - 1
compiler/ppu.pas

@@ -218,7 +218,11 @@ begin
 end;
 end;
 
 
 
 
+{$ifopt R+}
+{$define Range_check_on}
+{$endif opt R+}
 
 
+{$R- needed here }
 {CRC 32}
 {CRC 32}
 Function Crc32(Const HStr:String):longint;
 Function Crc32(Const HStr:String):longint;
 var
 var
@@ -259,6 +263,10 @@ begin
   UpdCrc32:=Crc32Tbl[byte(InitCrc) xor b] xor (InitCrc shr 8);
   UpdCrc32:=Crc32Tbl[byte(InitCrc) xor b] xor (InitCrc shr 8);
 end;
 end;
 
 
+{$ifdef Range_check_on}
+{$R+}
+{$undef Range_check_on}
+{$endif Range_check_on}
 
 
 {*****************************************************************************
 {*****************************************************************************
                                   TPPUFile
                                   TPPUFile
@@ -784,7 +792,13 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.19  1998-11-16 15:41:42  peter
+  Revision 1.20  1998-11-30 16:34:45  pierre
+    * corrected problems with rangecheck
+    + added needed code for no rangecheck  in CRC32 functions in ppu unit
+    * enumdef lso need its rangenr reset to zero
+      when calling reset_global_defs
+
+  Revision 1.19  1998/11/16 15:41:42  peter
     * tp7 didn't like my ifopt H+ :(
     * tp7 didn't like my ifopt H+ :(
 
 
   Revision 1.18  1998/11/16 12:18:03  peter
   Revision 1.18  1998/11/16 12:18:03  peter