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

Function create_symbol_table

extern/btyacc/symtab.c:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80void create_symbol_table()
81{
82 register int i;
83 register bucket *bp;
84
85 symbol_table = (bucket **) MALLOC(TABLE_SIZE*sizeof(bucket *));
86 if (symbol_table == 0) no_space();
87 for (i = 0; i < TABLE_SIZE; i++)
88 symbol_table[i] = 0;
89
90 bp = make_bucket("error");
91 bp->index = 1;
92 bp->class = TERM;
93
94 first_symbol = bp;
95 last_symbol = bp;
96 symbol_table[hash("error")] = bp;
97}
98
99
100void free_symbol_table()

Callers 1

readerFunction · 0.85

Calls 3

no_spaceFunction · 0.85
make_bucketFunction · 0.85
hashFunction · 0.70

Tested by

no test coverage detected