Corrects the broken line number incrementation in the Windows resource parser
When the tokens MCLINE, MCENDLINE, and MCCOMMENT were created, the line number was not increased, which led to an incorrect value in the error output. PR 26088 * mclex.c (skip_until_eol): if eol was found, increment line number
This commit is contained in:
parent
b886559f31
commit
6b5473c97e
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
PR 26088
|
||||
* mclex.c (skip_until_eol): If eol was found, increment line
|
||||
number.
|
||||
|
||||
2020-08-27 Nick Alcock <nick.alcock@oracle.com>
|
||||
|
||||
* objdump.c (dump_ctf_errs): Unquote CTF error messages.
|
||||
|
|
|
@ -334,7 +334,10 @@ skip_until_eol (void)
|
|||
if (input_stream_pos[0] == 0)
|
||||
return 0;
|
||||
if (input_stream_pos[0] == '\n')
|
||||
++input_stream_pos;
|
||||
{
|
||||
++input_stream_pos;
|
||||
input_line += 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue