summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-09-21 21:11:38 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-09-21 21:11:38 +0000
commit2a1b4b314d3ac327c46f7aba65e67bf92b4b7e60 (patch)
tree3250ca9bc4a8c16ebbb57abdb90f9f1bd9ce84e4 /usr.bin/mandoc/libmdoc.h
parentf80ca1f01053a477123e46378108aca2f4371a5e (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/libmdoc.h')
-rw-r--r--usr.bin/mandoc/libmdoc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mandoc/libmdoc.h b/usr.bin/mandoc/libmdoc.h
index e8c4ac6abea..f51f9d709a1 100644
--- a/usr.bin/mandoc/libmdoc.h
+++ b/usr.bin/mandoc/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.20 2009/08/22 22:39:55 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.21 2009/09/21 21:11:37 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -27,7 +27,6 @@ enum mdoc_next {
struct mdoc {
void *data;
struct mdoc_cb cb;
- void *htab;
int flags;
#define MDOC_HALT (1 << 0) /* Error in parse. Halt. */
#define MDOC_LITERAL (1 << 1) /* In a literal scope. */
@@ -139,9 +138,8 @@ int mdoc_tail_alloc(struct mdoc *, int, int, int);
int mdoc_body_alloc(struct mdoc *, int, int, int);
void mdoc_node_free(struct mdoc_node *);
void mdoc_node_freelist(struct mdoc_node *);
-void *mdoc_hash_alloc(void);
-int mdoc_hash_find(const void *, const char *);
-void mdoc_hash_free(void *);
+void mdoc_hash_init(void);
+int mdoc_hash_find(const char *);
int mdoc_iscdelim(char);
int mdoc_isdelim(const char *);
size_t mdoc_isescape(const char *);