diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-08-11 14:23:38 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-08-11 14:23:38 -0400 |
commit | a3f2d1bab1ad1dff1be1ca6a08329b4abd4581ee (patch) | |
tree | cc4ecc28f48ac322817ef7029c0249b09cef7556 /gcc | |
parent | 08b2cb481a2e38cd0ed96008e23be6c93b0c7075 (diff) | |
download | gcc-a3f2d1bab1ad1dff1be1ca6a08329b4abd4581ee.zip gcc-a3f2d1bab1ad1dff1be1ca6a08329b4abd4581ee.tar.gz gcc-a3f2d1bab1ad1dff1be1ca6a08329b4abd4581ee.tar.bz2 |
(dump_defn_1): Skip newlines and strings correctly.
From-SVN: r7893
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cccp.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -8991,15 +8991,16 @@ dump_defn_1 (base, start, length, of) U_CHAR *limit = base + start + length; while (p < limit) { - if (*p != '\n') - putc (*p, of); - else if (*p == '\"' || *p =='\'') { + if (*p == '\"' || *p =='\'') { U_CHAR *p1 = skip_quoted_string (p, limit, 0, NULL_PTR, NULL_PTR, NULL_PTR); fwrite (p, p1 - p, 1, of); - p = p1 - 1; + p = p1; + } else { + if (*p != '\n') + putc (*p, of); + p++; } - p++; } } |