Home
last modified time | relevance | path

Searched refs:ohash (Results 1 – 25 of 34) sorted by relevance

12

/openbsd/src/lib/libutil/
Dohash.h38 struct ohash { struct
53 void ohash_init(struct ohash *, unsigned, struct ohash_info *); argument
54 void ohash_delete(struct ohash *);
56 unsigned int ohash_lookup_interval(struct ohash *, const char *,
58 unsigned int ohash_lookup_memory(struct ohash *, const char *,
61 void *ohash_find(struct ohash *, unsigned int);
62 void *ohash_remove(struct ohash *, unsigned int);
63 void *ohash_insert(struct ohash *, unsigned int, void *);
64 void *ohash_first(struct ohash *, unsigned int *);
65 void *ohash_next(struct ohash *, unsigned int *);
[all …]
Dohash.c37 static void ohash_resize(struct ohash *);
61 ohash_delete(struct ohash *h) in ohash_delete()
70 ohash_resize(struct ohash *h) in ohash_resize()
118 ohash_remove(struct ohash *h, unsigned int i) in ohash_remove()
136 ohash_find(struct ohash *h, unsigned int i) in ohash_find()
145 ohash_insert(struct ohash *h, unsigned int i, void *p) in ohash_insert()
163 ohash_entries(struct ohash *h) in ohash_entries()
169 ohash_first(struct ohash *h, unsigned int *pos) in ohash_first()
176 ohash_next(struct ohash *h, unsigned int *pos) in ohash_next()
185 ohash_init(struct ohash *h, unsigned int size, struct ohash_info *info) in ohash_init()
[all …]
DMakefile25 SRCS+= ohash.c
26 HDRS += ohash.h
/openbsd/src/usr.bin/mandoc/
Droff_int.h21 struct ohash;
35 struct ohash *mdocmac; /* Mdoc macro lookup table. */
36 struct ohash *manmac; /* Man macro lookup table. */
81 struct ohash *roffhash_alloc(enum roff_tok, enum roff_tok);
82 enum roff_tok roffhash_find(struct ohash *, const char *, size_t);
83 void roffhash_free(struct ohash *);
Dmansearch.c61 static struct ohash *manmerge(struct expr *, struct ohash *);
62 static struct ohash *manmerge_term(struct expr *, struct ohash *);
63 static struct ohash *manmerge_or(struct expr *, struct ohash *);
64 static struct ohash *manmerge_and(struct expr *, struct ohash *);
91 struct ohash *htab; in mansearch()
233 static struct ohash *
234 manmerge(struct expr *e, struct ohash *htab) in manmerge()
248 static struct ohash *
249 manmerge_term(struct expr *e, struct ohash *htab) in manmerge_term()
307 static struct ohash *
[all …]
Ddba.c47 *get_macro_entry(struct ohash *, const char *, int32_t);
49 static void dba_macro_write(struct ohash *);
59 struct ohash *macro; in dba_new()
78 struct ohash *macro; in dba_free()
333 get_macro_entry(struct ohash *macro, const char *value, int32_t np) in get_macro_entry()
398 struct ohash *macro; in dba_macros_write()
424 dba_macro_write(struct ohash *macro) in dba_macro_write()
Dmandoc_ohash.h19 void mandoc_ohash_init(struct ohash *, unsigned int, ptrdiff_t);
Dmandoc_ohash.c31 mandoc_ohash_init(struct ohash *h, unsigned int sz, ptrdiff_t ko) in mandoc_ohash_init()
Dchars.c426 static struct ohash mchars;
Dmandoc_xr.c29 static struct ohash *xr_hash = NULL;
Dtag.c51 static struct ohash tag_data;
/openbsd/src/usr.bin/make/
Ddump.h35 struct ohash;
43 extern void *sort_ohash_by_name(struct ohash *);
49 extern void *sort_ohash(struct ohash *, int (*)(const void *, const void *));
Dmemory.h52 struct ohash;
54 extern void free_hash(struct ohash *);
Ddir.c172 struct ohash files; /* hash of name of files in the directory */
182 static struct ohash knownDirectories; /* cache all open directories */
201 static struct ohash mtimes;
276 struct ohash *h = &p->files; in add_file()
290 struct ohash *h = &p->files; in find_file_hashi()
Dtargequiv.c61 static void add_to_equiv_list(struct ohash *, GNode *);
85 add_to_equiv_list(struct ohash *equiv, GNode *gn) in add_to_equiv_list()
117 struct ohash equiv; in build_equivalence()
118 struct ohash *t = targets_hash(); in build_equivalence()
Ddump.c57 sort_ohash_by_name(struct ohash *h) in sort_ohash_by_name()
65 sort_ohash(struct ohash *h, int (*comparison)(const void *, const void *)) in sort_ohash()
Dtarg.c114 static struct ohash targets; /* hash table of targets */
339 struct ohash *
Dtarg.h68 extern struct ohash *targets_hash(void);
Dparse.c102 static struct ohash htargets;
151 static bool register_target(GNode *, struct ohash *);
173 static void build_target_group(struct growableArray *, struct ohash *t);
1414 register_target(GNode *gn, struct ohash *t) in register_target()
1434 build_target_group(struct growableArray *targets, struct ohash *t) in build_target_group()
Dmemory.c181 free_hash(struct ohash *h) in free_hash()
Dsuff.c69 static struct ohash suffixes;
89 static struct ohash transforms;
152 static unsigned int reverse_slot(struct ohash *, const char *, const char **);
214 reverse_slot(struct ohash *h, const char *s, const char **e) in reverse_slot()
Darch.c110 static struct ohash archives; /* Archives we've already examined. */
113 struct ohash members; /* All the members of this archive, as
/openbsd/src/usr.bin/tsort/
Dtsort.c114 static void nodes_init(struct ohash *);
115 static struct node *node_lookup(struct ohash *, const char *, const char *);
119 static unsigned int read_pairs(FILE *, struct ohash *, int,
121 static void split_nodes(struct ohash *, struct array *, struct array *);
122 static void make_transparent(struct ohash *);
128 static void dump_hash(struct ohash *);
130 static unsigned int read_hints(FILE *, struct ohash *, int,
156 static void parse_args(int, char *[], struct ohash *);
157 static int tsort(struct ohash *);
226 nodes_init(struct ohash *h) in nodes_init()
[all …]
/openbsd/src/usr.bin/m4/
Dextern.h72 extern struct ohash macros;
Dlook.c64 struct ohash macros;

12