version 1.21, 1999/10/05 22:08:07 |
version 1.22, 1999/11/10 14:00:54 |
|
|
|
|
buf = Buf_Init(MAKE_BSIZE); |
buf = Buf_Init(MAKE_BSIZE); |
|
|
do { |
for (;;) { |
Buf_Discard(buf, lineLength); |
Buf_Discard(buf, lineLength); |
lastc = '\0'; |
lastc = '\0'; |
|
|
|
|
lastc = c; |
lastc = c; |
} |
} |
|
|
|
Buf_AddByte(buf, (Byte)'\0'); |
|
line = (char *)Buf_GetAll(buf, &lineLength); |
|
lineno++; |
|
/* allow for non-newline terminated lines while skipping */ |
|
if (line[0] == '.') |
|
break; |
|
|
if (c == EOF) { |
if (c == EOF) { |
Parse_Error(PARSE_FATAL, "Unclosed conditional/for loop"); |
Parse_Error(PARSE_FATAL, "Unclosed conditional/for loop"); |
Buf_Destroy(buf, TRUE); |
Buf_Destroy(buf, TRUE); |
return((char *)NULL); |
return((char *)NULL); |
} |
} |
|
if (skip == 0) |
|
break; |
|
|
lineno++; |
} |
Buf_AddByte(buf, (Byte)'\0'); |
|
line = (char *)Buf_GetAll(buf, &lineLength); |
|
} while (skip == 1 && line[0] != '.'); |
|
|
|
Buf_Destroy(buf, FALSE); |
Buf_Destroy(buf, FALSE); |
return line; |
return line; |