فهرست منبع

+ printnode shortcut for lazy people

git-svn-id: trunk@8501 -
florian 18 سال پیش
والد
کامیت
b4da246668
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      compiler/node.pas

+ 7 - 0
compiler/node.pas

@@ -457,6 +457,7 @@ interface
     procedure printnodeindent;
     procedure printnodeindent;
     procedure printnodeunindent;
     procedure printnodeunindent;
     procedure printnode(var t:text;n:tnode);
     procedure printnode(var t:text;n:tnode);
+    procedure printnode(n:tnode);
 
 
     function is_constnode(p : tnode) : boolean;
     function is_constnode(p : tnode) : boolean;
     function is_constintnode(p : tnode) : boolean;
     function is_constintnode(p : tnode) : boolean;
@@ -628,6 +629,12 @@ implementation
       end;
       end;
 
 
 
 
+    procedure printnode(n:tnode);
+      begin
+        printnode(output,n);
+      end;
+
+
     function is_constnode(p : tnode) : boolean;
     function is_constnode(p : tnode) : boolean;
       begin
       begin
         is_constnode:=(p.nodetype in [niln,ordconstn,realconstn,stringconstn,setconstn,guidconstn]);
         is_constnode:=(p.nodetype in [niln,ordconstn,realconstn,stringconstn,setconstn,guidconstn]);