Commit ef7712e
Make simplecpp accept the following code:
const char*ptr="\\
\n";
Output from simplecpp:
const char * ptr = "\\n"
;
Output from gcc -E:
const char* ptr = "\\n";
Do this by extending the special casing for backslashes to read all
consecutive backslashes before continuing.
1 parent 4fb271d commit ef7712e
2 files changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1142 | 1150 | | |
1143 | 1151 | | |
1144 | 1152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1229 | 1229 | | |
1230 | 1230 | | |
1231 | 1231 | | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1232 | 1239 | | |
1233 | 1240 | | |
1234 | 1241 | | |
| |||
1947 | 1954 | | |
1948 | 1955 | | |
1949 | 1956 | | |
| 1957 | + | |
1950 | 1958 | | |
1951 | 1959 | | |
1952 | 1960 | | |
| |||
0 commit comments