mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 06:10:38 +02:00
* Use fpc_Write_Text_Currency and fpc_Read_Text_Currency for currency.
git-svn-id: trunk@5875 -
This commit is contained in:
parent
71961bb8ce
commit
b3c82a05c5
@ -602,10 +602,12 @@ implementation
|
||||
para.left:=p1;
|
||||
end;
|
||||
|
||||
{ Currency will be written using the bestreal }
|
||||
if is_currency(para.left.resultdef) then
|
||||
inserttypeconv(para.left,pbestrealtype^);
|
||||
|
||||
begin
|
||||
is_real:=true;
|
||||
name := procprefix+'currency';
|
||||
end
|
||||
else
|
||||
case para.left.resultdef.typ of
|
||||
stringdef :
|
||||
begin
|
||||
@ -779,6 +781,8 @@ implementation
|
||||
cordconstnode.create(-1,s32inttype,false),nil);
|
||||
{ add it to the lenpara }
|
||||
lenpara.right := fracpara;
|
||||
if not is_currency(para.left.resultdef) then
|
||||
begin
|
||||
{ and add the realtype para (this also removes the link }
|
||||
{ to any parameters coming after it) }
|
||||
fracpara.right := ccallparanode.create(
|
||||
@ -786,6 +790,7 @@ implementation
|
||||
s32inttype,true),nil);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
{ special handling of reading small numbers, because the helpers }
|
||||
{ expect a longint/card/bestreal var parameter. Use a temp. can't }
|
||||
|
Loading…
Reference in New Issue
Block a user