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

Function declare_argtypes

extern/btyacc/reader.c:793–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793static void declare_argtypes(bucket *bp)
794{
795char *tags[MAXARGS];
796int args = 0, c;
797
798 if (bp->args >= 0) retyped_warning(bp->name);
799 cptr++; /* skip open paren */
800 for (;;) {
801 c = nextc();
802 if (c == EOF) unexpected_EOF();
803 if (c != '<') syntax_error(lineno, line, cptr);
804 tags[args++] = get_tag();
805 c = nextc();
806 if (c == ')') break;
807 if (c == EOF) unexpected_EOF(); }
808 cptr++; /* skip close paren */
809 bp->args = args;
810 if (!(bp->argnames = NEW2(args, char *))) no_space();
811 if (!(bp->argtags = NEW2(args, char *))) no_space();
812 while (--args >= 0) {
813 bp->argtags[args] = tags[args];
814 bp->argnames[args] = 0; }
815}
816
817void declare_types()
818{

Callers 1

declare_typesFunction · 0.85

Calls 6

retyped_warningFunction · 0.85
nextcFunction · 0.85
unexpected_EOFFunction · 0.85
syntax_errorFunction · 0.85
get_tagFunction · 0.85
no_spaceFunction · 0.85

Tested by

no test coverage detected