mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-29 16:02:04 +01:00
* write false/true lower case in iso mode
git-svn-id: trunk@15678 -
This commit is contained in:
parent
ced4f95c56
commit
d0ea23f39e
@ -507,6 +507,11 @@ implementation
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
name := procprefixes[do_read]+'boolean';
|
name := procprefixes[do_read]+'boolean';
|
||||||
|
|
||||||
|
{ iso pascal needs a different handler }
|
||||||
|
if (m_iso in current_settings.modeswitches) and not(do_read) then
|
||||||
|
name:=name+'_iso';
|
||||||
|
|
||||||
readfunctype:=booltype;
|
readfunctype:=booltype;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -778,7 +783,6 @@ implementation
|
|||||||
para,nextpara:Tcallparanode;
|
para,nextpara:Tcallparanode;
|
||||||
p1:Tnode;
|
p1:Tnode;
|
||||||
temp:Ttempcreatenode;
|
temp:Ttempcreatenode;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
found_error:=false;
|
found_error:=false;
|
||||||
para:=Tcallparanode(params);
|
para:=Tcallparanode(params);
|
||||||
|
|||||||
@ -485,6 +485,7 @@ procedure fpc_write_text_enum(typinfo,ord2strindex:pointer;len:sizeint;var t:tex
|
|||||||
Procedure fpc_Write_Text_Currency(fixkomma,Len : Longint;var t : Text;c : Currency); compilerproc;
|
Procedure fpc_Write_Text_Currency(fixkomma,Len : Longint;var t : Text;c : Currency); compilerproc;
|
||||||
{$endif FPC_HAS_STR_CURRENCY}
|
{$endif FPC_HAS_STR_CURRENCY}
|
||||||
Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); compilerproc;
|
Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); compilerproc;
|
||||||
|
Procedure fpc_Write_Text_Boolean_Iso(Len : Longint;var t : Text;b : Boolean); compilerproc;
|
||||||
Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); compilerproc;
|
Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); compilerproc;
|
||||||
{$ifdef FPC_HAS_FEATURE_WIDESTRINGS}
|
{$ifdef FPC_HAS_FEATURE_WIDESTRINGS}
|
||||||
Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); compilerproc;
|
Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); compilerproc;
|
||||||
|
|||||||
@ -848,6 +848,18 @@ Begin
|
|||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
|
Procedure fpc_Write_Text_Boolean_Iso(Len : Longint;var t : Text;b : Boolean); iocheck; compilerproc;
|
||||||
|
Begin
|
||||||
|
If (InOutRes<>0) then
|
||||||
|
exit;
|
||||||
|
{ Can't use array[boolean] because b can be >0 ! }
|
||||||
|
if b then
|
||||||
|
Write_Str(Len,t,'true')
|
||||||
|
else
|
||||||
|
Write_Str(Len,t,'false');
|
||||||
|
End;
|
||||||
|
|
||||||
|
|
||||||
Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); iocheck; compilerproc;
|
Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); iocheck; compilerproc;
|
||||||
Begin
|
Begin
|
||||||
If (InOutRes<>0) then
|
If (InOutRes<>0) then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user