aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-03-24 01:04:25 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-03-24 01:04:25 +0000
commitd67ffd56e13eaa14f522a1edc592d69da3bc66a1 (patch)
treef461f7ceeff19792b8080998f58ca7239ab95ccc /gas/read.c
parent36959681867a70c8f48055ffb22b6f037596b762 (diff)
downloadgdb-d67ffd56e13eaa14f522a1edc592d69da3bc66a1.zip
gdb-d67ffd56e13eaa14f522a1edc592d69da3bc66a1.tar.gz
gdb-d67ffd56e13eaa14f522a1edc592d69da3bc66a1.tar.bz2
2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
PR gas/9966 * listing.c (listing_newline): Properly handle `\\"' and ';'. * read.c (is_end_of_line): Update comments for line separator. (read_begin): Set line separator in is_end_of_line to 2.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index 863a6ac..184dba7 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -125,7 +125,8 @@ char lex_type[256] = {
};
/* In: a character.
- Out: 1 if this character ends a line. */
+ Out: 1 if this character ends a line.
+ 2 if this character is a line separator. */
char is_end_of_line[256] = {
#ifdef CR_EOL
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, /* @abcdefghijklmno */
@@ -239,7 +240,7 @@ read_begin (void)
/* Use machine dependent syntax. */
for (p = line_separator_chars; *p; p++)
- is_end_of_line[(unsigned char) *p] = 1;
+ is_end_of_line[(unsigned char) *p] = 2;
/* Use more. FIXME-SOMEDAY. */
if (flag_mri)