mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-05 07:38:27 +02:00
+ printnode shortcut for lazy people
git-svn-id: trunk@8501 -
This commit is contained in:
parent
abfdda6129
commit
b4da246668
@ -457,6 +457,7 @@ interface
|
||||
procedure printnodeindent;
|
||||
procedure printnodeunindent;
|
||||
procedure printnode(var t:text;n:tnode);
|
||||
procedure printnode(n:tnode);
|
||||
|
||||
function is_constnode(p : tnode) : boolean;
|
||||
function is_constintnode(p : tnode) : boolean;
|
||||
@ -628,6 +629,12 @@ implementation
|
||||
end;
|
||||
|
||||
|
||||
procedure printnode(n:tnode);
|
||||
begin
|
||||
printnode(output,n);
|
||||
end;
|
||||
|
||||
|
||||
function is_constnode(p : tnode) : boolean;
|
||||
begin
|
||||
is_constnode:=(p.nodetype in [niln,ordconstn,realconstn,stringconstn,setconstn,guidconstn]);
|
||||
|
Loading…
Reference in New Issue
Block a user