mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:39:19 +02:00
* more procedures excluded to avoid internalerrors on avr after the trgobj.conservative fix
git-svn-id: trunk@31440 -
This commit is contained in:
parent
199b1861d6
commit
590ec0f3e6
@ -195,52 +195,84 @@ Procedure BlockWrite(Var f:File;Const Buf;Count:Longint;var Result:Longint);[IOC
|
|||||||
{
|
{
|
||||||
Write Count records from Buf to file f, return written records in result
|
Write Count records from Buf to file f, return written records in result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : Int64;
|
l : Int64;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,l);
|
BlockWrite(f,Buf,Count,l);
|
||||||
Result:=longint(l);
|
Result:=longint(l);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockWrite(Var f:File;Const Buf;Count:Word;var Result:Word);[IOCheck];
|
Procedure BlockWrite(Var f:File;Const Buf;Count:Word;var Result:Word);[IOCheck];
|
||||||
{
|
{
|
||||||
Write Count records from Buf to file f, return written records in Result
|
Write Count records from Buf to file f, return written records in Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : Int64;
|
l : Int64;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,l);
|
BlockWrite(f,Buf,Count,l);
|
||||||
Result:=word(l);
|
Result:=word(l);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockWrite(Var f:File;Const Buf;Count:Cardinal;var Result:Cardinal);[IOCheck];
|
Procedure BlockWrite(Var f:File;Const Buf;Count:Cardinal;var Result:Cardinal);[IOCheck];
|
||||||
{
|
{
|
||||||
Write Count records from Buf to file f, return written records in Result
|
Write Count records from Buf to file f, return written records in Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : Int64;
|
l : Int64;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,l);
|
BlockWrite(f,Buf,Count,l);
|
||||||
Result:=l;
|
Result:=l;
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockWrite(Var f:File;Const Buf;Count:Word;var Result:Integer);[IOCheck];
|
Procedure BlockWrite(Var f:File;Const Buf;Count:Word;var Result:Integer);[IOCheck];
|
||||||
{
|
{
|
||||||
Write Count records from Buf to file f, return written records in Result
|
Write Count records from Buf to file f, return written records in Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : Int64;
|
l : Int64;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,l);
|
BlockWrite(f,Buf,Count,l);
|
||||||
Result:=integer(l);
|
Result:=integer(l);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockWrite(Var f:File;Const Buf;Count:Longint);[IOCheck];
|
Procedure BlockWrite(Var f:File;Const Buf;Count:Longint);[IOCheck];
|
||||||
{
|
{
|
||||||
Write Count records from Buf to file f, if none a Read and Count>0 then
|
Write Count records from Buf to file f, if none a Read and Count>0 then
|
||||||
InOutRes is set
|
InOutRes is set
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
Result : Int64;
|
Result : Int64;
|
||||||
Begin
|
Begin
|
||||||
@ -248,6 +280,8 @@ Begin
|
|||||||
If (InOutRes=0) and (Result<Count) and (Count>0) Then
|
If (InOutRes=0) and (Result<Count) and (Count>0) Then
|
||||||
InOutRes:=101;
|
InOutRes:=101;
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockRead(var f:File;var Buf;Count:Int64;var Result:Int64);[IOCheck];
|
Procedure BlockRead(var f:File;var Buf;Count:Int64;var Result:Int64);[IOCheck];
|
||||||
{
|
{
|
||||||
@ -272,54 +306,87 @@ Procedure BlockRead(var f:File;var Buf;Count:Longint;var Result:Longint);[IOChec
|
|||||||
Read Count records from file f ro Buf, return number of read records in
|
Read Count records from file f ro Buf, return number of read records in
|
||||||
Result
|
Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : int64;
|
l : int64;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,l);
|
BlockRead(f,Buf,Count,l);
|
||||||
Result:=longint(l);
|
Result:=longint(l);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockRead(var f:File;var Buf;count:Word;var Result:Word);[IOCheck];
|
Procedure BlockRead(var f:File;var Buf;count:Word;var Result:Word);[IOCheck];
|
||||||
{
|
{
|
||||||
Read Count records from file f to Buf, return number of read records in
|
Read Count records from file f to Buf, return number of read records in
|
||||||
Result
|
Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : int64;
|
l : int64;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,l);
|
BlockRead(f,Buf,Count,l);
|
||||||
Result:=word(l);
|
Result:=word(l);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockRead(var f:File;var Buf;count:Cardinal;var Result:Cardinal);[IOCheck];
|
Procedure BlockRead(var f:File;var Buf;count:Cardinal;var Result:Cardinal);[IOCheck];
|
||||||
{
|
{
|
||||||
Read Count records from file f to Buf, return number of read records in
|
Read Count records from file f to Buf, return number of read records in
|
||||||
Result
|
Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : int64;
|
l : int64;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,l);
|
BlockRead(f,Buf,Count,l);
|
||||||
Result:=l;
|
Result:=l;
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockRead(var f:File;var Buf;count:Word;var Result:Integer);[IOCheck];
|
Procedure BlockRead(var f:File;var Buf;count:Word;var Result:Integer);[IOCheck];
|
||||||
{
|
{
|
||||||
Read Count records from file f to Buf, return number of read records in
|
Read Count records from file f to Buf, return number of read records in
|
||||||
Result
|
Result
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
l : int64;
|
l : int64;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,l);
|
BlockRead(f,Buf,Count,l);
|
||||||
Result:=integer(l);
|
Result:=integer(l);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Procedure BlockRead(Var f:File;Var Buf;Count:Int64);[IOCheck];
|
Procedure BlockRead(Var f:File;Var Buf;Count:Int64);[IOCheck];
|
||||||
{
|
{
|
||||||
Read Count records from file f to Buf, if none are read and Count>0 then
|
Read Count records from file f to Buf, if none are read and Count>0 then
|
||||||
InOutRes is set
|
InOutRes is set
|
||||||
}
|
}
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
Result : int64;
|
Result : int64;
|
||||||
Begin
|
Begin
|
||||||
@ -327,6 +394,7 @@ Begin
|
|||||||
If (InOutRes=0) and (Result<Count) and (Count>0) Then
|
If (InOutRes=0) and (Result<Count) and (Count>0) Then
|
||||||
InOutRes:=100;
|
InOutRes:=100;
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
Function FilePos(var f:File):Int64;[IOCheck];
|
Function FilePos(var f:File):Int64;[IOCheck];
|
||||||
|
@ -2133,6 +2133,11 @@ end;
|
|||||||
{$ifndef FPC_SYSTEM_HAS_INT_STR_INT64}
|
{$ifndef FPC_SYSTEM_HAS_INT_STR_INT64}
|
||||||
|
|
||||||
procedure int_str(l:int64;out s:shortstring);
|
procedure int_str(l:int64;out s:shortstring);
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
m,m1 : qword;
|
m,m1 : qword;
|
||||||
pcstart,
|
pcstart,
|
||||||
@ -2170,12 +2175,18 @@ begin
|
|||||||
end;
|
end;
|
||||||
s[0]:=char(pc2-pc2start);
|
s[0]:=char(pc2-pc2start);
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
{$endif ndef FPC_SYSTEM_HAS_INT_STR_INT64}
|
{$endif ndef FPC_SYSTEM_HAS_INT_STR_INT64}
|
||||||
|
|
||||||
{$ifndef FPC_SYSTEM_HAS_INT_STR_QWORD}
|
{$ifndef FPC_SYSTEM_HAS_INT_STR_QWORD}
|
||||||
|
|
||||||
procedure int_str_unsigned(l:qword;out s:shortstring);
|
procedure int_str_unsigned(l:qword;out s:shortstring);
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
m1 : qword;
|
m1 : qword;
|
||||||
pcstart,
|
pcstart,
|
||||||
@ -2205,6 +2216,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
s[0]:=char(pc2-pc2start);
|
s[0]:=char(pc2-pc2start);
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
{$endif ndef FPC_SYSTEM_HAS_INT_STR_QWORD}
|
{$endif ndef FPC_SYSTEM_HAS_INT_STR_QWORD}
|
||||||
|
|
||||||
|
@ -375,8 +375,15 @@
|
|||||||
function fpc_mul_int64_compilerproc(f1,f2 : int64;checkoverflow : longbool) : int64; external name 'FPC_MUL_INT64';
|
function fpc_mul_int64_compilerproc(f1,f2 : int64;checkoverflow : longbool) : int64; external name 'FPC_MUL_INT64';
|
||||||
|
|
||||||
function fpc_mul_longint_to_int64(f1,f2 : longint) : int64;[public,alias: 'FPC_MUL_LONGINT_TO_INT64']; compilerproc;
|
function fpc_mul_longint_to_int64(f1,f2 : longint) : int64;[public,alias: 'FPC_MUL_LONGINT_TO_INT64']; compilerproc;
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
begin
|
begin
|
||||||
fpc_mul_longint_to_int64:=fpc_mul_int64_compilerproc(f1,f2,false);
|
fpc_mul_longint_to_int64:=fpc_mul_int64_compilerproc(f1,f2,false);
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
{$endif FPC_SYSTEM_HAS_MUL_LONGINT_TO_INT64}
|
{$endif FPC_SYSTEM_HAS_MUL_LONGINT_TO_INT64}
|
||||||
|
|
||||||
|
@ -873,6 +873,11 @@ end;
|
|||||||
{$ifndef CPU64}
|
{$ifndef CPU64}
|
||||||
|
|
||||||
procedure fpc_chararray_qword(v : qword;len : SizeInt;out a : array of char);compilerproc;
|
procedure fpc_chararray_qword(v : qword;len : SizeInt;out a : array of char);compilerproc;
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(219);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
ss : shortstring;
|
ss : shortstring;
|
||||||
maxlen : SizeInt;
|
maxlen : SizeInt;
|
||||||
@ -886,9 +891,15 @@ begin
|
|||||||
maxlen:=high(a)+1;
|
maxlen:=high(a)+1;
|
||||||
fpc_shortstr_chararray_intern_charmove(ss,a,maxlen);
|
fpc_shortstr_chararray_intern_charmove(ss,a,maxlen);
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
procedure fpc_chararray_int64(v : int64;len : SizeInt;out a : array of char);compilerproc;
|
procedure fpc_chararray_int64(v : int64;len : SizeInt;out a : array of char);compilerproc;
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(219);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
ss : shortstring;
|
ss : shortstring;
|
||||||
maxlen : SizeInt;
|
maxlen : SizeInt;
|
||||||
@ -902,6 +913,7 @@ begin
|
|||||||
maxlen:=high(a)+1;
|
maxlen:=high(a)+1;
|
||||||
fpc_shortstr_chararray_intern_charmove(ss,a,maxlen);
|
fpc_shortstr_chararray_intern_charmove(ss,a,maxlen);
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
{$endif CPU64}
|
{$endif CPU64}
|
||||||
|
|
||||||
@ -1029,6 +1041,11 @@ end;
|
|||||||
{$ifndef FPC_HAS_CHARARRAY_CURRENCY}
|
{$ifndef FPC_HAS_CHARARRAY_CURRENCY}
|
||||||
{$define FPC_HAS_CHARARRAY_CURRENCY}
|
{$define FPC_HAS_CHARARRAY_CURRENCY}
|
||||||
procedure fpc_chararray_Currency(c : Currency;len,fr : SizeInt;out a : array of char);compilerproc;
|
procedure fpc_chararray_Currency(c : Currency;len,fr : SizeInt;out a : array of char);compilerproc;
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
ss : shortstring;
|
ss : shortstring;
|
||||||
maxlen : SizeInt;
|
maxlen : SizeInt;
|
||||||
@ -1040,6 +1057,7 @@ begin
|
|||||||
maxlen:=high(a)+1;
|
maxlen:=high(a)+1;
|
||||||
fpc_shortstr_chararray_intern_charmove(ss,a,maxlen);
|
fpc_shortstr_chararray_intern_charmove(ss,a,maxlen);
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
{$endif FPC_HAS_STR_CURRENCY}
|
{$endif FPC_HAS_STR_CURRENCY}
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
@ -1956,6 +1974,11 @@ function fpc_val_enum_shortstr(str2ordindex:pointer;const s:shortstring;out code
|
|||||||
{$endif FPC_STR_ENUM_INTERN}
|
{$endif FPC_STR_ENUM_INTERN}
|
||||||
|
|
||||||
function fpc_Val_Currency_ShortStr(const s : shortstring; out Code : ValSInt): currency; [public, alias:'FPC_VAL_CURRENCY_SHORTSTR']; compilerproc;
|
function fpc_Val_Currency_ShortStr(const s : shortstring; out Code : ValSInt): currency; [public, alias:'FPC_VAL_CURRENCY_SHORTSTR']; compilerproc;
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
const
|
const
|
||||||
MaxInt64 : Int64 = $7FFFFFFFFFFFFFFF;
|
MaxInt64 : Int64 = $7FFFFFFFFFFFFFFF;
|
||||||
Int64Edge : Int64 = ($7FFFFFFFFFFFFFFF - 10) div 10;
|
Int64Edge : Int64 = ($7FFFFFFFFFFFFFFF - 10) div 10;
|
||||||
@ -2088,6 +2111,7 @@ begin
|
|||||||
fpc_Val_Currency_ShortStr:=PCurrency(@res[0])^;
|
fpc_Val_Currency_ShortStr:=PCurrency(@res[0])^;
|
||||||
Code:=0;
|
Code:=0;
|
||||||
end;
|
end;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
|
|
||||||
{$ifndef FPC_HAS_SETSTRING_SHORTSTR}
|
{$ifndef FPC_HAS_SETSTRING_SHORTSTR}
|
||||||
|
@ -1235,6 +1235,11 @@ end;
|
|||||||
|
|
||||||
{$ifdef FPC_HAS_STR_CURRENCY}
|
{$ifdef FPC_HAS_STR_CURRENCY}
|
||||||
Procedure fpc_Write_Text_Currency(fixkomma,Len : Longint;var t : Text;c : Currency); iocheck; compilerproc;
|
Procedure fpc_Write_Text_Currency(fixkomma,Len : Longint;var t : Text;c : Currency); iocheck; compilerproc;
|
||||||
|
{$ifdef EXCLUDE_COMPLEX_PROCS}
|
||||||
|
begin
|
||||||
|
runerror(217);
|
||||||
|
end;
|
||||||
|
{$else EXCLUDE_COMPLEX_PROCS}
|
||||||
var
|
var
|
||||||
s : String;
|
s : String;
|
||||||
Begin
|
Begin
|
||||||
@ -1243,6 +1248,8 @@ Begin
|
|||||||
str(c:Len:fixkomma,s);
|
str(c:Len:fixkomma,s);
|
||||||
Write_Str(Len,t,s);
|
Write_Str(Len,t,s);
|
||||||
End;
|
End;
|
||||||
|
{$endif EXCLUDE_COMPLEX_PROCS}
|
||||||
|
|
||||||
{$endif FPC_HAS_STR_CURRENCY}
|
{$endif FPC_HAS_STR_CURRENCY}
|
||||||
|
|
||||||
Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); iocheck; compilerproc;
|
Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); iocheck; compilerproc;
|
||||||
|
Loading…
Reference in New Issue
Block a user