Browse Source

rtl: less hints

mattias 7 years ago
parent
commit
8fc505f54d

+ 1 - 1
packages/rtl/browserconsole.pas

@@ -1,6 +1,6 @@
 unit browserconsole;
 unit browserconsole;
 
 
-{$mode objfpc}{$H+}
+{$mode objfpc}
 
 
 interface
 interface
 
 

+ 2 - 2
packages/rtl/dateutils.pas

@@ -1,8 +1,8 @@
 {$mode objfpc}
 {$mode objfpc}
-{$h+}
+
 {
 {
     This file is part of the Free Pascal run time library.
     This file is part of the Free Pascal run time library.
-    Copyright (c) 1999-2000 by the Free Pascal development team
+    Copyright (c) 2018 by the Free Pascal development team
 
 
     Delphi/Kylix compatibility unit, provides Date/Time handling routines.
     Delphi/Kylix compatibility unit, provides Date/Time handling routines.
 
 

+ 1 - 1
packages/rtl/hotreloadclient.pas

@@ -1,6 +1,6 @@
 unit hotreloadclient;
 unit hotreloadclient;
 
 
-{$mode objfpc}{$H+}
+{$mode objfpc}
 
 
 interface
 interface
 
 

+ 8 - 6
packages/rtl/strutils.pas

@@ -2,7 +2,7 @@
     Delphi/Kylix compatibility unit: String handling routines.
     Delphi/Kylix compatibility unit: String handling routines.
 
 
     This file is part of the Free Pascal run time library.
     This file is part of the Free Pascal run time library.
-    Copyright (c) 1999-2005 by the Free Pascal development team
+    Copyright (c) 2018 by the Free Pascal development team
 
 
     See the file COPYING.FPC, included in this distribution,
     See the file COPYING.FPC, included in this distribution,
     for details about the copyright.
     for details about the copyright.
@@ -13,7 +13,7 @@
 
 
  **********************************************************************}
  **********************************************************************}
 {$mode objfpc}
 {$mode objfpc}
-{$h+}
+
 {$inline on}
 {$inline on}
 unit strutils;
 unit strutils;
 
 
@@ -180,7 +180,7 @@ function Dec2Numb(N: Longint; Len, Base: Byte): string;
 function Numb2Dec(S: string; Base: Byte): Longint;
 function Numb2Dec(S: string; Base: Byte): Longint;
 function IntToBin(Value: Longint; Digits, Spaces: Integer): string;
 function IntToBin(Value: Longint; Digits, Spaces: Integer): string;
 function IntToBin(Value: Longint; Digits: Integer): string;
 function IntToBin(Value: Longint; Digits: Integer): string;
-function intToBin(Value: int64; Digits:integer): string;
+function IntToBin(Value: NativeInt; Digits:integer): string;
 function IntToRoman(Value: Longint): string;
 function IntToRoman(Value: Longint): string;
 function TryRomanToInt(S: String; out N: LongInt; Strictness: TRomanConversionStrictness = rcsRelaxed): Boolean;
 function TryRomanToInt(S: String; out N: LongInt; Strictness: TRomanConversionStrictness = rcsRelaxed): Boolean;
 function RomanToInt(const S: string; Strictness: TRomanConversionStrictness = rcsRelaxed): Longint;
 function RomanToInt(const S: string; Strictness: TRomanConversionStrictness = rcsRelaxed): Longint;
@@ -590,6 +590,8 @@ begin
     else
     else
       Result := 1;
       Result := 1;
     end;
     end;
+  if ADecSeparator='' then ;
+  if aThousandSeparator='' then ;
 end;
 end;
 
 
 function NaturalCompareText (const S1 , S2 : string ): Integer ;
 function NaturalCompareText (const S1 , S2 : string ): Integer ;
@@ -1736,7 +1738,7 @@ begin
     end;
     end;
 end;
 end;
 
 
-function intToBin(Value: int64; Digits:integer): string;
+function IntToBin(Value: NativeInt; Digits:integer): string;
 var
 var
       p,p2 : integer;
       p,p2 : integer;
 begin
 begin
@@ -1747,10 +1749,10 @@ begin
   p2:=1;
   p2:=1;
   // typecasts because we want to keep intto* delphi compat and take a signed val
   // typecasts because we want to keep intto* delphi compat and take a signed val
   // and avoid warnings
   // and avoid warnings
-  while (p>=p2) and (qword(value)>0) do     
+  while (p>=p2) and (value>0) do
     begin
     begin
        Result[p]:=chr(48+(cardinal(value) and 1));
        Result[p]:=chr(48+(cardinal(value) and 1));
-       value:=qword(value) shr 1;
+       value:=value div 2;
        dec(p); 
        dec(p); 
     end;
     end;
   digits:=p-p2+1;
   digits:=p-p2+1;

+ 0 - 1
packages/rtl/webrouter.pp

@@ -18,7 +18,6 @@
 }
 }
 
 
 {$mode objfpc}
 {$mode objfpc}
-{$H+}
 
 
 unit webrouter;
 unit webrouter;