summaryrefslogtreecommitdiffstatshomepage
path: root/hash.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 13:44:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 13:44:05 +0000
commitf0efcfb7750a1c0ab3108c5a759de5c050166035 (patch)
tree42c4f3dfff406eb906a633e4b8588959e74dd9ae /hash.c
parentd7fbb7d096f24634fd2aa0c5146e6fbf55acb09e (diff)
downloadmandoc-f0efcfb7750a1c0ab3108c5a759de5c050166035.tar.gz
mandoc-f0efcfb7750a1c0ab3108c5a759de5c050166035.tar.zst
mandoc-f0efcfb7750a1c0ab3108c5a759de5c050166035.zip
Re-merged old port-building routines.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index eba55c8d..30a01ca8 100644
--- a/hash.c
+++ b/hash.c
@@ -1,4 +1,4 @@
-/* $Id: hash.c,v 1.4 2009/01/05 17:57:07 kristaps Exp $ */
+/* $Id: hash.c,v 1.5 2009/01/20 13:44:05 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -25,6 +25,12 @@
#include "private.h"
+/*
+ * Routines for the perfect-hash hashtable used by the parser to look up
+ * tokens by their string-ified names (`.Fl' -> MDOC_Fl). The
+ * allocation penalty for this is 27 * 26 * sizeof(ptr).
+ */
+
void
mdoc_tokhash_free(void *htab)