瀏覽代碼

* do nothing for macro's in tempcloseinput,tempopeninput

peter 22 年之前
父節點
當前提交
2ebd9f20b5
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      compiler/scanner.pas

+ 7 - 2
compiler/scanner.pas

@@ -1127,6 +1127,8 @@ implementation
 
     function tscannerfile.tempopeninputfile:boolean;
       begin
+        if inputfile.is_macro then
+          exit;
         tempopeninputfile:=inputfile.tempopen;
       { reload buffer }
         inputbuffer:=inputfile.buf;
@@ -1137,7 +1139,7 @@ implementation
 
     procedure tscannerfile.tempcloseinputfile;
       begin
-        if inputfile.closed then
+        if inputfile.closed or inputfile.is_macro then
          exit;
         inputfile.setpos(inputstart+(inputpointer-inputbuffer));
         inputfile.tempclose;
@@ -2929,7 +2931,10 @@ exit_label:
 end.
 {
   $Log$
-  Revision 1.65  2003-11-10 19:08:59  peter
+  Revision 1.66  2003-11-12 16:57:59  peter
+    * do nothing for macro's in tempcloseinput,tempopeninput
+
+  Revision 1.65  2003/11/10 19:08:59  peter
     + $IF DECLARED() added
 
   Revision 1.64  2003/11/10 19:08:32  peter