Home
last modified time | relevance | path

Searched refs:hashtab (Results 1 – 25 of 33) sorted by relevance

12

/original-bsd/usr.bin/struct/struct/
H A D1.hash.c16 long *hashtab; variable
100 hashtab = challoc(sizeof(*hashtab) * maxhash); in hash_init()
105 hashtab[i] = -1L; in hash_init()
116 if (value[i] == -2 && hashtab[i] != -1L) in hash_check()
119 fprintf(stderr,"%D\n",hashtab[i]); in hash_check()
126 chfree(hashtab,sizeof(*hashtab) * maxhash); in hash_free()
127 hashtab = 0; in hash_free()
144 for (hcount=0; (hashtab[temp] != -1L) && (hashtab[temp] != x) && (hcount<maxhash); hcount++)
147 hashtab[temp] = x;
243 hashtab[index] = -1L;
/original-bsd/usr.bin/m4/
H A Dlook.c48 for (p = hashtab[hash(name)]; p != nil; p = p->nxtptr)
67 p->nxtptr = hashtab[h];
68 hashtab[h] = p;
97 mp = hashtab[h];
103 freent(hashtab[h]);
104 hashtab[h] = mp;
H A Dmain.c39 ndptr hashtab[HASHSIZE]; /* hash table for macros etc. */ variable
371 for (p = hashtab[h%HASHSIZE]; p != nil; p = p->nxtptr)
393 p->nxtptr = hashtab[h]; in initkwds()
394 hashtab[h] = p; in initkwds()
H A Dextr.h13 extern ndptr hashtab[]; /* hash table for macros etc. */
H A Dextern.h47 extern ndptr hashtab[]; /* hash table for macros etc. */
H A Dserv.c185 for (p = hashtab[n]; p != nil; p = p->nxtptr)
/original-bsd/usr.sbin/config.new/
H A Dconfig.h169 struct hashtab;
181 struct hashtab *devbasetab; /* devbase lookup */
182 struct hashtab *selecttab; /* selects things that are "optional foo" */
183 struct hashtab *needcnttab; /* retains names marked "needs-count" */
213 struct hashtab *ht_new __P((void));
214 int ht_insrep __P((struct hashtab *, const char *, void *, int));
217 void *ht_lookup __P((struct hashtab *, const char *));
H A Dhash.c34 struct hashtab { struct
41 static struct hashtab strings; argument
87 register struct hashtab *ht; in ht_init()
108 register struct hashtab *ht; in ht_expand()
181 register struct hashtab *ht;
202 struct hashtab *
205 register struct hashtab *ht; in ht_new()
217 register struct hashtab *ht; in ht_insrep()
241 register struct hashtab *ht; in ht_lookup()
H A Dmain.c41 static struct hashtab *opttab;
42 static struct hashtab *mkopttab;
47 static int do_option __P((struct hashtab *, struct nvlist ***,
274 struct hashtab *ht; in do_option()
H A Dfiles.c34 static struct hashtab *basetab; /* file base names */
35 static struct hashtab *pathtab; /* full path names */
H A Dsem.c36 static struct hashtab *attrtab; /* for attribute lookup */
37 static struct hashtab *cfhashtab; /* for config lookup */
38 static struct hashtab *devitab; /* etc */
/original-bsd/usr.bin/rdist/
H A Dlookup.c25 static struct syment *hashtab[HASHSIZE]; variable
113 for (s = hashtab[n]; s != NULL; s = s->s_next) {
134 s->s_next = hashtab[n];
135 hashtab[n] = s;
/original-bsd/old/dbx/
H A Dkeywords.c75 private Keyword hashtab[HASHTABLESIZE]; variable
122 k = hashtab[i]; in keywords_free()
128 hashtab[i] = nil; in keywords_free()
145 k->chain = hashtab[h];
146 hashtab[h] = k;
161 k = hashtab[h];
181 k = hashtab[h];
190 hashtab[h] = k->chain;
338 for (k = hashtab[i]; k != nil; k = k->chain) {
474 for (k = hashtab[i]; k != nil; k = k->chain) { in print_vars()
H A Dsymbols.c165 private Symbol hashtab[HASHTABLESIZE]; variable
206 for (s = hashtab[i]; s != nil; s = s->next_sym) {
230 hashtab[i] = nil; in symbol_free()
273 s->next_sym = hashtab[h];
274 hashtab[h] = s;
289 s = hashtab[h];
307 t = hashtab[h];
311 hashtab[h] = s->next_sym;
340 for (s = hashtab[i]; s != nil; s = s->next_sym) {
/original-bsd/games/battlestar/
H A Dparse.c41 for (wp = hashtab[hash(s)]; wp != NULL; wp = wp->next)
54 wp->next = hashtab[hashval];
55 hashtab[hashval] = wp;
H A Dextern.h263 struct wlist *hashtab[HASHSIZE]; variable
/original-bsd/old/vpr/
H A Dvpac.c40 struct hent *hashtab[HSHSIZE]; /* Hash table proper */ variable
184 hp = hashtab[0]; in dumpit()
189 hp = hashtab[hno++]; in dumpit()
228 hp = hashtab[i]; in rewrite()
271 hp->h_link = hashtab[h];
272 hashtab[h] = hp;
289 for (hp = hashtab[h]; hp != NIL; hp = hp->h_link)
/original-bsd/usr.sbin/lpr/pac/
H A Dpac.c63 static struct hent *hashtab[HSHSIZE]; /* Hash table proper */ variable
222 hp = hashtab[0]; in dumpit()
227 hp = hashtab[hno++]; in dumpit()
265 hp = hashtab[i]; in rewrite()
308 hp->h_link = hashtab[h];
309 hashtab[h] = hp;
326 for (hp = hashtab[h]; hp != NULL; hp = hp->h_link)
/original-bsd/old/make/
H A Dmisc.c5 FSTATIC struct nameblock *hashtab[HASHSIZE]; variable
27 hashtab[i]!=0 && unequal(s,hashtab[i]->namep);
37 return( hashtab[hashloc(s)] );
66 hashtab[hashloc(s)] = p;
/original-bsd/usr.bin/f77/pass1.tahoe/
H A Dinit.c131 struct Hashentry *hashtab; variable
217 hashtab = ALLOCN(maxhash, Hashentry); in fileinit()
224 lasthash = hashtab + maxhash; in fileinit()
289 for(hp = hashtab ; hp < lasthash ; ++hp) in procinit()
H A Dmisc.c334 hp = hashtab + hash;
339 hp = hashtab;
/original-bsd/usr.bin/f77/pass1.vax/
H A Dinit.c140 struct Hashentry *hashtab; variable
226 hashtab = ALLOCN(maxhash, Hashentry); in fileinit()
233 lasthash = hashtab + maxhash; in fileinit()
295 for(hp = hashtab ; hp < lasthash ; ++hp) in procinit()
H A Dmisc.c340 hp = hashtab + hash;
345 hp = hashtab;
/original-bsd/games/adventure/
H A Dvocab.c94 struct hashtab *h;
180 struct hashtab *h; in prht()
H A Dhdr.h51 struct hashtab /* hash table for vocabulary */ struct

12