| 308 | } |
| 309 | |
| 310 | void copy_ident() |
| 311 | { |
| 312 | register int c; |
| 313 | register FILE *f = output_file; |
| 314 | |
| 315 | if ((c = nextc()) == EOF) unexpected_EOF(); |
| 316 | if (c != '"') syntax_error(lineno, line, cptr); |
| 317 | ++outline; |
| 318 | fprintf(f, "#ident \""); |
| 319 | for (;;) { |
| 320 | c = *++cptr; |
| 321 | if (c == '\n') { |
| 322 | fprintf(f, "\"\n"); |
| 323 | return; } |
| 324 | putc(c, f); |
| 325 | if (c == '"') { |
| 326 | putc('\n', f); |
| 327 | ++cptr; |
| 328 | return; } } |
| 329 | } |
| 330 | |
| 331 | #define OUTC(c) do { /* output a character on f1 and f2, if non-null */ \ |
| 332 | int _c = (c); \ |
no test coverage detected