public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8afae8
)
fix to previous one. The previous one did not help, this one does
author
ceriel
<none@none>
Thu, 20 Aug 1987 16:00:18 +0000
(16:00 +0000)
committer
ceriel
<none@none>
Thu, 20 Aug 1987 16:00:18 +0000
(16:00 +0000)
util/cpp/preprocess.c
patch
|
blob
|
history
diff --git
a/util/cpp/preprocess.c
b/util/cpp/preprocess.c
index
7b00160
..
38a3cd7
100644
(file)
--- a/
util/cpp/preprocess.c
+++ b/
util/cpp/preprocess.c
@@
-138,8
+138,11
@@
preprocess(fn)
case STSTR:
case STCHAR: {
register int stopc = c;
+ int escaped;
do {
+
+ escaped = 0;
echo(c);
LoadChar(c);
if (c == '\n') {
@@
-156,10
+159,10
@@
preprocess(fn)
++LineNumber;
lineno++;
}
- else if (c == '\'')
continue
;
+ else if (c == '\'')
escaped = 1
;
}
}
- while (c != stopc);
+ while (
escaped ||
c != stopc);
echo(c);
if (c == '\n')
break; /* Don't eat # */