|
@@ -175,7 +175,12 @@ Function abs(l:longint):longint;[internproc:fpc_in_abs_long];
|
|
{$else FPC_HAS_INTERNAL_ABS_LONG}
|
|
{$else FPC_HAS_INTERNAL_ABS_LONG}
|
|
Function abs(l:Longint):Longint;[internconst:fpc_in_const_abs];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
Function abs(l:Longint):Longint;[internconst:fpc_in_const_abs];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
{$endif FPC_HAS_INTERNAL_ABS_LONG}
|
|
{$endif FPC_HAS_INTERNAL_ABS_LONG}
|
|
|
|
+{$ifdef FPC_HAS_INTERNAL_ABS_INT64}
|
|
|
|
+{$define FPC_SYSTEM_HAS_ABS_INT64}
|
|
|
|
+Function abs(l:Int64):Int64;[internproc:fpc_in_abs_long];
|
|
|
|
+{$else FPC_HAS_INTERNAL_ABS_INT64}
|
|
Function abs(l:Int64):Int64;[internconst:fpc_in_const_abs];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
Function abs(l:Int64):Int64;[internconst:fpc_in_const_abs];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
|
|
+{$endif FPC_HAS_INTERNAL_ABS_INT64}
|
|
Function sqr(l:Longint):Longint;[internconst:fpc_in_const_sqr];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
Function sqr(l:Longint):Longint;[internconst:fpc_in_const_sqr];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
Function sqr(l:Int64):Int64;[internconst:fpc_in_const_sqr];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
Function sqr(l:Int64):Int64;[internconst:fpc_in_const_sqr];{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
Function sqr(l:QWord):QWord;[internconst:fpc_in_const_sqr]; external;
|
|
Function sqr(l:QWord):QWord;[internconst:fpc_in_const_sqr]; external;
|
|
@@ -451,10 +456,16 @@ Function Pos(const substr:shortstring;const s:shortstring):SizeInt;
|
|
Function Pos(C:Char;const s:shortstring):SizeInt;
|
|
Function Pos(C:Char;const s:shortstring):SizeInt;
|
|
{$ifdef FPC_HAS_FEATURE_ANSISTRINGS}
|
|
{$ifdef FPC_HAS_FEATURE_ANSISTRINGS}
|
|
Function Pos(const Substr : ShortString; const Source : RawByteString) : SizeInt;
|
|
Function Pos(const Substr : ShortString; const Source : RawByteString) : SizeInt;
|
|
|
|
+
|
|
|
|
+{$ifdef FPC_HAS_CPSTRING}
|
|
|
|
+Procedure fpc_setstring_ansistr_pansichar(out S : RawByteString; Buf : PAnsiChar; Len : SizeInt; cp: TSystemCodePage); rtlproc; compilerproc;
|
|
|
|
+Procedure fpc_setstring_ansistr_pwidechar(out S : RawByteString; Buf : PWideChar; Len : SizeInt; cp: TSystemCodePage); rtlproc; compilerproc;
|
|
|
|
+{$else}
|
|
Procedure SetString(out S : AnsiString; Buf : PAnsiChar; Len : SizeInt);
|
|
Procedure SetString(out S : AnsiString; Buf : PAnsiChar; Len : SizeInt);
|
|
Procedure SetString(out S : AnsiString; Buf : PWideChar; Len : SizeInt);
|
|
Procedure SetString(out S : AnsiString; Buf : PWideChar; Len : SizeInt);
|
|
|
|
+{$endif}
|
|
{$endif FPC_HAS_FEATURE_ANSISTRINGS}
|
|
{$endif FPC_HAS_FEATURE_ANSISTRINGS}
|
|
-Procedure SetString (out S : Shortstring; Buf : PChar; Len : SizeInt);
|
|
|
|
|
|
+Procedure {$ifdef FPC_HAS_CPSTRING}fpc_setstring_shortstr{$else}SetString{$endif}(out S : Shortstring; Buf : PChar; Len : SizeInt); {$ifdef FPC_HAS_CPSTRING} compilerproc; {$endif FPC_HAS_CPSTRING}
|
|
function ShortCompareText(const S1, S2: shortstring): SizeInt;
|
|
function ShortCompareText(const S1, S2: shortstring): SizeInt;
|
|
Function upCase(const s:shortstring):shortstring;
|
|
Function upCase(const s:shortstring):shortstring;
|
|
Function lowerCase(const s:shortstring):shortstring; overload;
|
|
Function lowerCase(const s:shortstring):shortstring; overload;
|
|
@@ -471,6 +482,7 @@ Function binStr(Val:qword;cnt:byte):shortstring; {$ifdef cpujvm}external;{$endi
|
|
{$ifdef CPUI8086}
|
|
{$ifdef CPUI8086}
|
|
Function hexStr(Val:NearPointer):shortstring;
|
|
Function hexStr(Val:NearPointer):shortstring;
|
|
Function hexStr(Val:FarPointer):shortstring;
|
|
Function hexStr(Val:FarPointer):shortstring;
|
|
|
|
+Function hexStr(Val:HugePointer):shortstring;{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
{$else CPUI8086}
|
|
{$else CPUI8086}
|
|
Function hexStr(Val:Pointer):shortstring;
|
|
Function hexStr(Val:Pointer):shortstring;
|
|
{$endif CPUI8086}
|
|
{$endif CPUI8086}
|
|
@@ -758,7 +770,7 @@ Function ParamStr(l:Longint):string;
|
|
{$endif FPC_HAS_FEATURE_COMMANDARGS}
|
|
{$endif FPC_HAS_FEATURE_COMMANDARGS}
|
|
|
|
|
|
{$ifndef JVM}
|
|
{$ifndef JVM}
|
|
-Procedure Dump_Stack(var f : text;bp:pointer;addr : pointer = nil);
|
|
|
|
|
|
+Procedure Dump_Stack(var f : text;fp:pointer;addr : codepointer = nil);
|
|
{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
|
|
{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
|
|
procedure DumpExceptionBackTrace(var f:text);
|
|
procedure DumpExceptionBackTrace(var f:text);
|
|
{$endif FPC_HAS_FEATURE_EXCEPTIONS}
|
|
{$endif FPC_HAS_FEATURE_EXCEPTIONS}
|