|
@@ -73,7 +73,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-Procedure DisposeAnsiString(Var S : Pointer); inline;
|
|
|
+Procedure DisposeAnsiString(Var S : Pointer); {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
{
|
|
|
Deallocates a AnsiString From the heap.
|
|
|
}
|
|
@@ -85,7 +85,7 @@ begin
|
|
|
S:=Nil;
|
|
|
end;
|
|
|
|
|
|
-Procedure fpc_AnsiStr_Decr_Ref (Var S : Pointer); [Public,Alias:'FPC_ANSISTR_DECR_REF']; compilerproc; inline;
|
|
|
+Procedure fpc_AnsiStr_Decr_Ref (Var S : Pointer); [Public,Alias:'FPC_ANSISTR_DECR_REF']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
{
|
|
|
Decreases the ReferenceCount of a non constant ansistring;
|
|
|
If the reference count is zero, deallocate the string;
|
|
@@ -109,7 +109,7 @@ end;
|
|
|
{ also define alias for internal use in the system unit }
|
|
|
Procedure fpc_AnsiStr_Decr_Ref (Var S : Pointer); [external name 'FPC_ANSISTR_DECR_REF'];
|
|
|
|
|
|
-Procedure fpc_AnsiStr_Incr_Ref (S : Pointer); [Public,Alias:'FPC_ANSISTR_INCR_REF']; compilerproc; inline;
|
|
|
+Procedure fpc_AnsiStr_Incr_Ref (S : Pointer); [Public,Alias:'FPC_ANSISTR_INCR_REF']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Begin
|
|
|
If S=Nil then
|
|
|
exit;
|
|
@@ -428,7 +428,7 @@ end;
|
|
|
|
|
|
// MV: inline the basic checks for case that S is already unique.
|
|
|
// Rest is too complex to inline, so factor that out as a call.
|
|
|
-Function fpc_ansistr_Unique(Var S : Pointer): Pointer; [Public,Alias : 'FPC_ANSISTR_UNIQUE']; compilerproc; inline;
|
|
|
+Function fpc_ansistr_Unique(Var S : Pointer): Pointer; [Public,Alias : 'FPC_ANSISTR_UNIQUE']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
{
|
|
|
Make sure reference count of S is 1,
|
|
|
using copy-on-write semantics.
|
|
@@ -441,7 +441,7 @@ begin
|
|
|
fpc_truely_ansistr_unique(s);
|
|
|
end;
|
|
|
|
|
|
-Procedure fpc_ansistr_append_char(Var S : AnsiString;c : char); [Public,Alias : 'FPC_ANSISTR_APPEND_CHAR']; compilerproc; inline;
|
|
|
+Procedure fpc_ansistr_append_char(Var S : AnsiString;c : char); [Public,Alias : 'FPC_ANSISTR_APPEND_CHAR']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
begin
|
|
|
SetLength(S,length(S)+1);
|
|
|
S[length(S)]:=c;
|
|
@@ -575,7 +575,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-Function fpc_Val_Real_AnsiStr(Const S : AnsiString; Var Code : ValSInt): ValReal; [public, alias:'FPC_VAL_REAL_ANSISTR']; compilerproc; inline;
|
|
|
+Function fpc_Val_Real_AnsiStr(Const S : AnsiString; Var Code : ValSInt): ValReal; [public, alias:'FPC_VAL_REAL_ANSISTR']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : String;
|
|
|
begin
|
|
@@ -590,7 +590,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-Function fpc_Val_UInt_AnsiStr (Const S : AnsiString; Var Code : ValSInt): ValUInt; [public, alias:'FPC_VAL_UINT_ANSISTR']; compilerproc; inline;
|
|
|
+Function fpc_Val_UInt_AnsiStr (Const S : AnsiString; Var Code : ValSInt): ValUInt; [public, alias:'FPC_VAL_UINT_ANSISTR']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -605,7 +605,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-Function fpc_Val_SInt_AnsiStr (DestSize: SizeInt; Const S : AnsiString; Var Code : ValSInt): ValSInt; [public, alias:'FPC_VAL_SINT_ANSISTR']; compilerproc; inline;
|
|
|
+Function fpc_Val_SInt_AnsiStr (DestSize: SizeInt; Const S : AnsiString; Var Code : ValSInt): ValSInt; [public, alias:'FPC_VAL_SINT_ANSISTR']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -622,7 +622,7 @@ end;
|
|
|
|
|
|
{$ifndef CPU64}
|
|
|
|
|
|
-Function fpc_Val_qword_AnsiStr (Const S : AnsiString; Var Code : ValSInt): qword; [public, alias:'FPC_VAL_QWORD_ANSISTR']; compilerproc; inline;
|
|
|
+Function fpc_Val_qword_AnsiStr (Const S : AnsiString; Var Code : ValSInt): qword; [public, alias:'FPC_VAL_QWORD_ANSISTR']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -637,7 +637,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-Function fpc_Val_int64_AnsiStr (Const S : AnsiString; Var Code : ValSInt): Int64; [public, alias:'FPC_VAL_INT64_ANSISTR']; compilerproc; inline;
|
|
|
+Function fpc_Val_int64_AnsiStr (Const S : AnsiString; Var Code : ValSInt): Int64; [public, alias:'FPC_VAL_INT64_ANSISTR']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -654,7 +654,7 @@ end;
|
|
|
{$endif CPU64}
|
|
|
|
|
|
|
|
|
-procedure fpc_AnsiStr_Float(d : ValReal;len,fr,rt : SizeInt;var s : ansistring);[public,alias:'FPC_ANSISTR_FLOAT']; compilerproc; inline;
|
|
|
+procedure fpc_AnsiStr_Float(d : ValReal;len,fr,rt : SizeInt;var s : ansistring);[public,alias:'FPC_ANSISTR_FLOAT']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
var
|
|
|
ss: ShortString;
|
|
|
begin
|
|
@@ -663,7 +663,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-Procedure fpc_AnsiStr_UInt(v : ValUInt;Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_VALUINT']; compilerproc; inline;
|
|
|
+Procedure fpc_AnsiStr_UInt(v : ValUInt;Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_VALUINT']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -673,7 +673,7 @@ end;
|
|
|
|
|
|
|
|
|
|
|
|
-Procedure fpc_AnsiStr_SInt(v : ValSInt;Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_VALSINT']; compilerproc; inline;
|
|
|
+Procedure fpc_AnsiStr_SInt(v : ValSInt;Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_VALSINT']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -684,7 +684,7 @@ end;
|
|
|
|
|
|
{$ifndef CPU64}
|
|
|
|
|
|
-Procedure fpc_AnsiStr_QWord(v : QWord;Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_QWORD']; compilerproc; inline;
|
|
|
+Procedure fpc_AnsiStr_QWord(v : QWord;Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_QWORD']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -692,7 +692,7 @@ begin
|
|
|
S:=SS;
|
|
|
end;
|
|
|
|
|
|
-Procedure fpc_AnsiStr_Int64(v : Int64; Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_INT64']; compilerproc; inline;
|
|
|
+Procedure fpc_AnsiStr_Int64(v : Int64; Len : SizeInt; Var S : AnsiString);[Public,Alias : 'FPC_ANSISTR_INT64']; compilerproc; {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
Var
|
|
|
SS : ShortString;
|
|
|
begin
|
|
@@ -751,7 +751,7 @@ begin
|
|
|
FillChar(Pointer(StringOfChar)^,Length(StringOfChar),c);
|
|
|
end;
|
|
|
|
|
|
-Procedure SetString (Var S : AnsiString; Buf : PChar; Len : SizeInt); inline;
|
|
|
+Procedure SetString (Var S : AnsiString; Buf : PChar; Len : SizeInt); {$IFNDEF VER2_0} Inline; {$ENDIF}
|
|
|
begin
|
|
|
SetLength(S,Len);
|
|
|
If (Buf<>Nil) then
|