Changeset: e69a9cb8ca3d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e69a9cb8ca3d
Modified Files:
buildtools/Mx/Io.c
Branch: Jun2010
Log Message:
Fix keeping track of line numbers in Mx.
Line numers were off by one after an @include directive.
diffs (20 lines):
diff -r a0555ac4acde -r e69a9cb8ca3d buildtools/Mx/Io.c
--- a/buildtools/Mx/Io.c Wed Jul 07 10:21:48 2010 +0200
+++ b/buildtools/Mx/Io.c Wed Jul 07 10:26:11 2010 +0200
@@ -410,14 +410,15 @@
char *
NextLine(void)
{
- mx_line++;
if (fullbuf) {
+ mx_line++;
fullbuf = 0;
return linebuf;
} else {
char *s, *t;
do {
+ mx_line++;
s = fgets(linebuf, MAXLINE, ifile);
} while (s == NULL && !EofFile());
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list