Lines Matching refs:bp
37 bucket *bp; in make_bucket() local
41 bp = TMALLOC(bucket, 1); in make_bucket()
42 NO_SPACE(bp); in make_bucket()
44 bp->link = 0; in make_bucket()
45 bp->next = 0; in make_bucket()
47 bp->name = TMALLOC(char, strlen(name) + 1); in make_bucket()
48 NO_SPACE(bp->name); in make_bucket()
50 bp->tag = 0; in make_bucket()
51 bp->value = UNDEFINED; in make_bucket()
52 bp->index = 0; in make_bucket()
53 bp->prec = 0; in make_bucket()
54 bp->class = UNKNOWN; in make_bucket()
55 bp->assoc = TOKEN; in make_bucket()
57 bp->args = -1; in make_bucket()
58 bp->argnames = 0; in make_bucket()
59 bp->argtags = 0; in make_bucket()
60 bp->destructor = 0; in make_bucket()
62 strcpy(bp->name, name); in make_bucket()
64 return (bp); in make_bucket()
70 bucket *bp, **bpp; in lookup() local
73 bp = *bpp; in lookup()
75 while (bp) in lookup()
77 if (strcmp(name, bp->name) == 0) in lookup()
78 return (bp); in lookup()
79 bpp = &bp->link; in lookup()
80 bp = *bpp; in lookup()
83 *bpp = bp = make_bucket(name); in lookup()
84 last_symbol->next = bp; in lookup()
85 last_symbol = bp; in lookup()
87 return (bp); in lookup()
94 bucket *bp; in create_symbol_table() local
102 bp = make_bucket("error"); in create_symbol_table()
103 bp->index = 1; in create_symbol_table()
104 bp->class = TERM; in create_symbol_table()
106 first_symbol = bp; in create_symbol_table()
107 last_symbol = bp; in create_symbol_table()
108 symbol_table[hash("error")] = bp; in create_symbol_table()