mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 04:50:09 +02:00
- removed FPC 2.4 bootstrapping support
git-svn-id: trunk@23321 -
This commit is contained in:
parent
5f3d762788
commit
fe5a4baa15
@ -724,21 +724,6 @@ begin
|
||||
end;
|
||||
{$endif FPC_HAS_ANSISTR_COMPARE_EQUAL}
|
||||
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for boostrapping with 2.4
|
||||
Procedure fpc_AnsiStr_CheckZero(p : pointer);[Public,Alias : 'FPC_ANSISTR_CHECKZERO']; compilerproc;
|
||||
begin
|
||||
if p=nil then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
|
||||
Procedure fpc_AnsiStr_CheckRange(len,index : SizeInt);[Public,Alias : 'FPC_ANSISTR_RANGECHECK']; compilerproc;
|
||||
begin
|
||||
if (index>len) or (Index<1) then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
|
||||
{$else VER2_4}
|
||||
{$ifndef FPC_HAS_ANSISTR_CHECKRANGE}
|
||||
{$define FPC_HAS_ANSISTR_CHECKRANGE}
|
||||
Procedure fpc_AnsiStr_CheckRange(p: Pointer; index: SizeInt);[Public,Alias : 'FPC_ANSISTR_RANGECHECK']; compilerproc;
|
||||
@ -747,7 +732,6 @@ begin
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
{$endif FPC_HAS_ANSISTR_CHECKRANGE}
|
||||
{$endif VER2_4}
|
||||
|
||||
{$ifndef FPC_HAS_ANSISTR_SETLENGTH}
|
||||
{$define FPC_HAS_ANSISTR_SETLENGTH}
|
||||
|
@ -232,13 +232,7 @@ Function fpc_CharArray_To_AnsiStr(const arr: array of AnsiChar; {$ifdef FPC_HAS_
|
||||
procedure fpc_ansistr_to_chararray(out res: array of AnsiChar; const src: RawByteString)compilerproc;
|
||||
Function fpc_AnsiStr_Compare(const S1,S2 : RawByteString): SizeInt; compilerproc;
|
||||
Function fpc_AnsiStr_Compare_equal(const S1,S2 : RawByteString): SizeInt; compilerproc;
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_AnsiStr_CheckZero(p : pointer); compilerproc;
|
||||
Procedure fpc_AnsiStr_CheckRange(len,index : SizeInt); compilerproc;
|
||||
{$else VER2_4}
|
||||
Procedure fpc_AnsiStr_CheckRange(p : Pointer; index : SizeInt); compilerproc;
|
||||
{$endif VER2_4}
|
||||
|
||||
Procedure fpc_AnsiStr_SetLength (Var S : RawByteString; l : SizeInt{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}); compilerproc;
|
||||
Function fpc_ansistr_Copy (Const S : RawByteString; Index,Size : SizeInt): RawByteString;compilerproc;
|
||||
@ -273,13 +267,7 @@ procedure fpc_widestr_to_chararray(out res: array of char; const src: WideString
|
||||
procedure fpc_widestr_to_widechararray(out res: array of widechar; const src: WideString); compilerproc;
|
||||
Function fpc_WideStr_Compare(const S1,S2 : WideString): SizeInt; compilerproc;
|
||||
Function fpc_WideStr_Compare_equal(const S1,S2 : WideString): SizeInt; compilerproc;
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_WideStr_CheckZero(p : pointer); compilerproc;
|
||||
Procedure fpc_WideStr_CheckRange(len,index : SizeInt); compilerproc;
|
||||
{$else VER2_4}
|
||||
Procedure fpc_WideStr_CheckRange(p: Pointer; index : SizeInt); compilerproc;
|
||||
{$endif VER2_4}
|
||||
|
||||
Procedure fpc_WideStr_SetLength (Var S : WideString; l : SizeInt); compilerproc;
|
||||
Function fpc_widestr_Copy (Const S : WideString; Index,Size : SizeInt) : WideString;compilerproc;
|
||||
@ -323,13 +311,7 @@ procedure fpc_ansistr_to_widechararray(out res: array of widechar; const src: Ra
|
||||
procedure fpc_unicodestr_to_widechararray(out res: array of widechar; const src: UnicodeString); compilerproc;
|
||||
Function fpc_UnicodeStr_Compare(const S1,S2 : UnicodeString): SizeInt; compilerproc;
|
||||
Function fpc_UnicodeStr_Compare_equal(const S1,S2 : UnicodeString): SizeInt; compilerproc;
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_UnicodeStr_CheckZero(p : pointer); compilerproc;
|
||||
Procedure fpc_UnicodeStr_CheckRange(len,index : SizeInt); compilerproc;
|
||||
{$else VER2_4}
|
||||
Procedure fpc_UnicodeStr_CheckRange(p: Pointer; index : SizeInt); compilerproc;
|
||||
{$endif VER2_4}
|
||||
|
||||
Procedure fpc_UnicodeStr_SetLength (Var S : UnicodeString; l : SizeInt); compilerproc;
|
||||
Function fpc_unicodestr_Copy (Const S : UnicodeString; Index,Size : SizeInt) : UnicodeString;compilerproc;
|
||||
|
@ -922,21 +922,6 @@ end;
|
||||
{$endif FPC_HAS_UNICODESTR_COMPARE_EQUAL}
|
||||
|
||||
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_UnicodeStr_CheckZero(p : pointer);[Public,Alias : 'FPC_UNICODESTR_CHECKZERO']; compilerproc;
|
||||
begin
|
||||
if p=nil then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
|
||||
Procedure fpc_UnicodeStr_CheckRange(len,index : SizeInt);[Public,Alias : 'FPC_UNICODESTR_RANGECHECK']; compilerproc;
|
||||
begin
|
||||
if (index>len) or (Index<1) then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
|
||||
{$else VER2_4}
|
||||
{$ifndef FPC_HAS_UNICODESTR_RANGECHECK}
|
||||
{$define FPC_HAS_UNICODESTR_RANGECHECK}
|
||||
Procedure fpc_UnicodeStr_CheckRange(p: Pointer; index: SizeInt);[Public,Alias : 'FPC_UNICODESTR_RANGECHECK']; compilerproc;
|
||||
@ -945,7 +930,6 @@ begin
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
{$endif FPC_HAS_UNICODESTR_RANGECHECK}
|
||||
{$endif VER2_4}
|
||||
|
||||
|
||||
{$ifndef FPC_HAS_UNICODESTR_SETLENGTH}
|
||||
|
@ -481,27 +481,11 @@ begin
|
||||
exit(CompareWord(S1[1],S2[1],MaxI));
|
||||
end;
|
||||
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_WideStr_CheckZero(p : pointer);[Public,Alias : 'FPC_WIDESTR_CHECKZERO']; compilerproc;
|
||||
begin
|
||||
if p=nil then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
|
||||
Procedure fpc_WideStr_CheckRange(len,index : SizeInt);[Public,Alias : 'FPC_WIDESTR_RANGECHECK']; compilerproc;
|
||||
begin
|
||||
if (index>len div 2) or (Index<1) then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
|
||||
{$else VER2_4}
|
||||
Procedure fpc_WideStr_CheckRange(p: Pointer; index: SizeInt);[Public,Alias : 'FPC_WIDESTR_RANGECHECK']; compilerproc;
|
||||
begin
|
||||
if (p=nil) or (index>PWideRec(p-WideFirstOff)^.len div 2) or (Index<1) then
|
||||
HandleErrorAddrFrameInd(201,get_pc_addr,get_frame);
|
||||
end;
|
||||
{$endif VER2_4}
|
||||
|
||||
Procedure fpc_WideStr_SetLength(Var S : WideString; l : SizeInt);[Public,Alias : 'FPC_WIDESTR_SETLENGTH']; compilerproc;
|
||||
{
|
||||
|
@ -231,11 +231,6 @@ procedure fpc_ansistr_to_chararray(out res: array of AnsiChar; const src: RawByt
|
||||
function fpc_ansistr_setchar(const s: RawByteString; const index: longint; const ch: ansichar): RawByteString; compilerproc;
|
||||
Function fpc_AnsiStr_Compare(const S1,S2 : RawByteString): SizeInt; compilerproc;
|
||||
Function fpc_AnsiStr_Compare_equal(const S1,S2 : RawByteString): SizeInt; compilerproc;
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_AnsiStr_CheckZero(p : jlobject); compilerproc;
|
||||
Procedure fpc_AnsiStr_CheckRange(len,index : SizeInt); compilerproc;
|
||||
{$endif VER2_4}
|
||||
|
||||
{ special declaration for the JVM }
|
||||
Procedure fpc_AnsiStr_SetLength (Var S : RawByteString; l : SizeInt{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}); compilerproc;
|
||||
@ -280,13 +275,7 @@ procedure fpc_ansistr_to_widechararray(out res: array of widechar; const src: Ra
|
||||
procedure fpc_unicodestr_to_widechararray(out res: array of widechar; const src: UnicodeString); compilerproc;
|
||||
Function fpc_UnicodeStr_Compare(const S1,S2 : UnicodeString): SizeInt; compilerproc;
|
||||
Function fpc_UnicodeStr_Compare_equal(const S1,S2 : UnicodeString): SizeInt; compilerproc;
|
||||
{$ifdef VER2_4}
|
||||
// obsolete but needed for bootstrapping with 2.4
|
||||
Procedure fpc_UnicodeStr_CheckZero(p : pointer); compilerproc;
|
||||
Procedure fpc_UnicodeStr_CheckRange(len,index : SizeInt); compilerproc;
|
||||
{$else VER2_4}
|
||||
//Procedure fpc_UnicodeStr_CheckRange(p: Pointer; index : SizeInt); compilerproc;
|
||||
{$endif VER2_4}
|
||||
|
||||
Procedure fpc_UnicodeStr_SetLength (Var S : UnicodeString; l : SizeInt); compilerproc;
|
||||
Function fpc_unicodestr_Copy (Const S : UnicodeString; Index,Size : SizeInt) : UnicodeString;compilerproc;
|
||||
|
Loading…
Reference in New Issue
Block a user