浏览代码

+ 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 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]);