]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/read-md.h
read-md.h (read_char): Increment read_md_lineno after reading '\n'.
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 10 Jun 2010 20:23:00 +0000 (20:23 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 10 Jun 2010 20:23:00 +0000 (20:23 +0000)
commit7f7c467fed603c8ad387e731d99ad889e7f2a501
tree91d59b44f33747a188102e54bc43cca44943e99a
parent9f418533f26281f5d9bf776d9d18605f8b2c3b0f
read-md.h (read_char): Increment read_md_lineno after reading '\n'.

gcc/
* read-md.h (read_char): Increment read_md_lineno after reading '\n'.
(unread_char): Decrement read_md_lineno after putting back '\n'.
* read-md.c (fatal_with_file_and_line): Push back any characters
that we decide not to add to the context.
(read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
fatal_expected_char in cases where '/' ends a line (for example).
(read_name): Don't increment read_md_lineno here.
(read_escape): Likewise.
(read_quoted_string): Likewise.
(read_braced_string): Likewise.

From-SVN: r160576
gcc/ChangeLog
gcc/read-md.c
gcc/read-md.h