improved #line handling
This commit is contained in:
parent
9ad5d4b5e0
commit
c4ca7db14f
|
@ -695,9 +695,10 @@ do_line(l)
|
||||||
unsigned int l;
|
unsigned int l;
|
||||||
{
|
{
|
||||||
struct token tk;
|
struct token tk;
|
||||||
|
int t = GetToken(&tk);
|
||||||
|
|
||||||
LineNumber = l - 1; /* the number of the next input line */
|
|
||||||
if (GetToken(&tk) == STRING) /* is there a filespecifier? */
|
|
||||||
FileName = tk.tk_bts;
|
|
||||||
SkipRestOfLine();
|
SkipRestOfLine();
|
||||||
|
LineNumber = l - 1; /* the number of the next input line */
|
||||||
|
if (t == STRING) /* is there a filespecifier? */
|
||||||
|
FileName = tk.tk_bts;
|
||||||
}
|
}
|
||||||
|
|
|
@ -444,12 +444,13 @@ do_line(l)
|
||||||
unsigned int l;
|
unsigned int l;
|
||||||
{
|
{
|
||||||
struct token tk;
|
struct token tk;
|
||||||
|
int t = GetToken(&tk);
|
||||||
|
|
||||||
LineNumber = l - 1; /* the number of the next input line */
|
|
||||||
if (GetToken(&tk) == STRING) /* is there a filespecifier? */
|
|
||||||
FileName = tk.tk_str;
|
|
||||||
PushBack();
|
PushBack();
|
||||||
skipline();
|
skipline();
|
||||||
|
LineNumber = l - 1; /* the number of the next input line */
|
||||||
|
if (t == STRING) /* is there a filespecifier? */
|
||||||
|
FileName = tk.tk_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
PRIVATE int
|
PRIVATE int
|
||||||
|
|
Loading…
Reference in a new issue