MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / copy_ident

Function copy_ident

extern/btyacc/reader.c:310–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void 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); \

Callers 1

read_declarationsFunction · 0.85

Calls 4

nextcFunction · 0.85
unexpected_EOFFunction · 0.85
syntax_errorFunction · 0.85
putcFunction · 0.85

Tested by

no test coverage detected