/original-bsd/usr.bin/struct/struct/ |
H A D | 1.hash.c | 16 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 D | look.c | 48 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 D | main.c | 39 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 D | extr.h | 13 extern ndptr hashtab[]; /* hash table for macros etc. */
|
H A D | extern.h | 47 extern ndptr hashtab[]; /* hash table for macros etc. */
|
H A D | serv.c | 185 for (p = hashtab[n]; p != nil; p = p->nxtptr)
|
/original-bsd/usr.sbin/config.new/ |
H A D | config.h | 169 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 D | hash.c | 34 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 D | main.c | 41 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 D | files.c | 34 static struct hashtab *basetab; /* file base names */ 35 static struct hashtab *pathtab; /* full path names */
|
H A D | sem.c | 36 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 D | lookup.c | 25 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 D | keywords.c | 75 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 D | symbols.c | 165 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 D | parse.c | 41 for (wp = hashtab[hash(s)]; wp != NULL; wp = wp->next) 54 wp->next = hashtab[hashval]; 55 hashtab[hashval] = wp;
|
H A D | extern.h | 263 struct wlist *hashtab[HASHSIZE]; variable
|
/original-bsd/old/vpr/ |
H A D | vpac.c | 40 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 D | pac.c | 63 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 D | misc.c | 5 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 D | init.c | 131 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 D | misc.c | 334 hp = hashtab + hash; 339 hp = hashtab;
|
/original-bsd/usr.bin/f77/pass1.vax/ |
H A D | init.c | 140 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 D | misc.c | 340 hp = hashtab + hash; 345 hp = hashtab;
|
/original-bsd/games/adventure/ |
H A D | vocab.c | 94 struct hashtab *h; 180 struct hashtab *h; in prht()
|
H A D | hdr.h | 51 struct hashtab /* hash table for vocabulary */ struct
|