diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-09-21 21:11:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-09-21 21:11:38 +0000 |
commit | 2a1b4b314d3ac327c46f7aba65e67bf92b4b7e60 (patch) | |
tree | 3250ca9bc4a8c16ebbb57abdb90f9f1bd9ce84e4 /usr.bin/mandoc/libman.h | |
parent | f80ca1f01053a477123e46378108aca2f4371a5e (diff) |
sync to 1.9.5: lookup hashes are now static tables
shortening the code, and, according to kristaps@, speeding it up
Diffstat (limited to 'usr.bin/mandoc/libman.h')
-rw-r--r-- | usr.bin/mandoc/libman.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mandoc/libman.h b/usr.bin/mandoc/libman.h index 70c1e8e4edf..f0a5de14a4b 100644 --- a/usr.bin/mandoc/libman.h +++ b/usr.bin/mandoc/libman.h @@ -1,4 +1,4 @@ -/* $Id: libman.h,v 1.8 2009/08/22 23:17:39 schwarze Exp $ */ +/* $Id: libman.h,v 1.9 2009/09/21 21:11:36 schwarze Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -27,7 +27,6 @@ enum man_next { struct man { void *data; struct man_cb cb; - void *htab; int pflags; int flags; #define MAN_HALT (1 << 0) @@ -95,9 +94,8 @@ int man_body_alloc(struct man *, int, int, int); int man_elem_alloc(struct man *, int, int, int); void man_node_free(struct man_node *); void man_node_freelist(struct man_node *); -void *man_hash_alloc(void); -int man_hash_find(const void *, const char *); -void man_hash_free(void *); +void man_hash_init(void); +int man_hash_find(const char *); int man_macroend(struct man *); int man_args(struct man *, int, int *, char *, char **); #define ARGS_ERROR (-1) |