fix: line number administration wrong in scan.c

This commit is contained in:
ceriel
1988-08-09 14:07:39 +00:00
parent 8581d89f9a
commit 2b7e8b3dfd
4 changed files with 8 additions and 0 deletions

View File

@@ -223,6 +223,7 @@ replace.o: pathlength.h
replace.o: textsize.h
scan.o: charoffset.h
scan.o: class.h
scan.o: file_info.h
scan.o: idf.h
scan.o: input.h
scan.o: inputtype.h

View File

@@ -18,6 +18,7 @@
#include "idf.h"
#include "macro.h"
#include "interface.h"
#include "file_info.h"
#define EOS '\0'
#define overflow() (fatal("actual parameter buffer overflow"))
@@ -138,6 +139,7 @@ copyact(ch1, ch2, level)
#endif __MATCHING_PAR__
case '\n':
LineNumber++;
LoadChar(ch);
while (ch == '#') {
/* This piece of code needs some
@@ -207,6 +209,7 @@ copyact(ch1, ch2, level)
}
else
if (ch == '\n') {
LineNumber++;
error("newline in string");
copy(match);
break;