summaryrefslogtreecommitdiffabout
path: root/include/grecs/symtab.h
Side-by-side diff
Diffstat (limited to 'include/grecs/symtab.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/grecs/symtab.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/grecs/symtab.h b/include/grecs/symtab.h
index a4a7106..3008b17 100644
--- a/include/grecs/symtab.h
+++ b/include/grecs/symtab.h
@@ -17,7 +17,8 @@
#ifndef _GRECS_SYMTAB_H
#define _GRECS_SYMTAB_H
-typedef struct grecs_symtab *grecs_symtab_t;
+typedef struct grecs_symtab *grecs_symtab_ptr_t;
+typedef struct grecs_syment *grecs_syment_ptr_t;
struct grecs_syment {
char *name;
@@ -27,24 +28,24 @@ typedef int (*grecs_symtab_enumerator_t)(void *sym, void *data);
const char *grecs_symtab_strerror(int rc);
-void *grecs_symtab_lookup_or_install(grecs_symtab_t st,
+void *grecs_symtab_lookup_or_install(grecs_symtab_ptr_t st,
void *key, int *install);
-void grecs_symtab_clear(grecs_symtab_t st);
-grecs_symtab_t grecs_symtab_create(size_t elsize,
+void grecs_symtab_clear(grecs_symtab_ptr_t st);
+grecs_symtab_ptr_t grecs_symtab_create(size_t elsize,
unsigned (*hash_fun)(void *, unsigned long),
int (*cmp_fun)(const void *, const void *),
int (*copy_fun)(void *, void *),
void *(*alloc_fun)(size_t),
void (*free_fun)(void *));
-grecs_symtab_t grecs_symtab_create_default(size_t elsize);
+grecs_symtab_ptr_t grecs_symtab_create_default(size_t elsize);
-void grecs_symtab_free(grecs_symtab_t pst);
-int grecs_symtab_remove(grecs_symtab_t st, void *elt);
-int grecs_symtab_replace(grecs_symtab_t st, void *ent, void **old_ent);
-int grecs_symtab_enumerate(grecs_symtab_t st,
+void grecs_symtab_free(grecs_symtab_ptr_t pst);
+int grecs_symtab_remove(grecs_symtab_ptr_t st, void *elt);
+int grecs_symtab_replace(grecs_symtab_ptr_t st, void *ent, void **old_ent);
+int grecs_symtab_enumerate(grecs_symtab_ptr_t st,
grecs_symtab_enumerator_t fun, void *data);
-size_t grecs_symtab_count_entries(grecs_symtab_t st);
+size_t grecs_symtab_count_entries(grecs_symtab_ptr_t st);
unsigned grecs_hash_string(const char *name, unsigned long hashsize);
unsigned grecs_hash_string_ci(const char *name, unsigned long hashsize);

Return to:

Send suggestions and report system problems to the System administrator.