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

Function initialize_grammar

extern/btyacc/reader.c:904–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904void initialize_grammar()
905{
906 nitems = 4;
907 maxitems = 300;
908 pitem = NEW2(maxitems, bucket *);
909 if (pitem == 0) no_space();
910 pitem[0] = 0;
911 pitem[1] = 0;
912 pitem[2] = 0;
913 pitem[3] = 0;
914
915 nrules = 3;
916 maxrules = 100;
917 plhs = NEW2(maxrules, bucket *);
918 if (plhs == 0) no_space();
919 plhs[0] = 0;
920 plhs[1] = 0;
921 plhs[2] = 0;
922 rprec = NEW2(maxrules, Yshort);
923 if (rprec == 0) no_space();
924 rprec[0] = 0;
925 rprec[1] = 0;
926 rprec[2] = 0;
927 rassoc = NEW2(maxrules, char);
928 if (rassoc == 0) no_space();
929 rassoc[0] = TOKEN;
930 rassoc[1] = TOKEN;
931 rassoc[2] = TOKEN;
932}
933
934void expand_items()
935{

Callers 1

read_grammarFunction · 0.85

Calls 1

no_spaceFunction · 0.85

Tested by

no test coverage detected