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

Function skip_comment

extern/btyacc/reader.c:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208char *skip_comment()
209{
210 register char *s;
211
212 int st_lineno = lineno;
213 char *st_line = dup_line();
214 char *st_cptr = st_line + (cptr - line);
215
216 s = cptr + 2;
217 while (s[0] != '*' || s[1] != '/') {
218 if (*s == '\n') {
219 if ((s = get_line()) == 0)
220 unterminated_comment(st_lineno, st_line, st_cptr); }
221 else
222 ++s; }
223 FREE(st_line);
224 return cptr = s + 2;
225}
226
227int nextc()
228{

Callers 1

nextcFunction · 0.85

Calls 3

dup_lineFunction · 0.85
unterminated_commentFunction · 0.85
get_lineFunction · 0.70

Tested by

no test coverage detected