Parcourir la source

* fixed line counting with macro's

peter il y a 26 ans
Parent
commit
d4f4226806
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      compiler/scanner.pas

+ 7 - 2
compiler/scanner.pas

@@ -414,7 +414,9 @@ implementation
       var
         hp : pinputfile;
       begin
-      { save old postion }
+      { save old postion and decrease linebreak }
+        if c=newline then
+         dec(line_no);
         dec(longint(inputpointer));
         tempcloseinputfile;
       { create macro 'file' }
@@ -1654,7 +1656,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.82  1999-05-04 21:45:04  florian
+  Revision 1.83  1999-05-20 14:57:29  peter
+    * fixed line counting with macro's
+
+  Revision 1.82  1999/05/04 21:45:04  florian
     * changes to compile it with Delphi 4.0
 
   Revision 1.81  1999/04/07 14:36:44  pierre