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

Function copy_string

extern/btyacc/reader.c:337–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 } while(0)
336
337void copy_string(int quote, FILE *f1, FILE *f2)
338{
339register int c;
340int s_lineno = lineno;
341char *s_line = dup_line();
342char *s_cptr = s_line + (cptr - line - 1);
343
344 for (;;) {
345 OUTC(c = *cptr++);
346 if (c == quote) {
347 FREE(s_line);
348 return; }
349 if (c == '\n')
350 unterminated_string(s_lineno, s_line, s_cptr);
351 if (c == '\\') {
352 OUTC(c = *cptr++);
353 if (c == '\n') {
354 if (get_line() == 0)
355 unterminated_string(s_lineno, s_line, s_cptr); } } }
356}
357
358void copy_comment(FILE *f1, FILE *f2)
359{

Callers 3

copy_textFunction · 0.85
copy_unionFunction · 0.85
copy_actionFunction · 0.85

Calls 3

dup_lineFunction · 0.85
unterminated_stringFunction · 0.85
get_lineFunction · 0.70

Tested by

no test coverage detected