OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57d4c04
)
(dump_defn_1): Skip newlines and strings correctly.
author
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Aug 1994 18:23:38 +0000
(18:23 +0000)
committer
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Aug 1994 18:23:38 +0000
(18:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7893
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index
c0678d0
..
1a9f660
100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-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++;
}
}