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

Function nextc

extern/btyacc/reader.c:227–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227int nextc()
228{
229 register char *s;
230
231 if (line == 0 && get_line() == 0)
232 return (EOF);
233 s = cptr;
234 for (;;) {
235 switch (*s) {
236 case '\n':
237 if ((s = get_line()) == 0) return EOF;
238 break;
239 case ' ':
240 case '\t':
241 case '\f':
242 case '\r':
243 case '\v':
244 case ',':
245 case ';':
246 ++s;
247 break;
248 case '\\':
249 cptr = s;
250 return ('%');
251 case '/':
252 if (s[1] == '*') {
253 cptr = s;
254 s = skip_comment();
255 break; }
256 else if (s[1] == '/') {
257 if ((s = get_line()) == 0) return EOF;
258 break; }
259 /* fall through */
260 default:
261 cptr = s;
262 return (*s); } }
263}
264
265static struct keyword { char name[12]; int token; } keywords[] = {
266 { "binary", NONASSOC },

Callers 12

copy_identFunction · 0.85
get_tagFunction · 0.85
declare_tokensFunction · 0.85
declare_argtypesFunction · 0.85
declare_typesFunction · 0.85
declare_startFunction · 0.85
read_declarationsFunction · 0.85
advance_to_startFunction · 0.85
add_symbolFunction · 0.85
copy_actionFunction · 0.85
mark_symbolFunction · 0.85
read_grammarFunction · 0.85

Calls 2

skip_commentFunction · 0.85
get_lineFunction · 0.70

Tested by

no test coverage detected