diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-16 14:40:56 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-16 14:40:56 +0000 |
commit | 6345042a457de84d0b4fdb0ffe8e21052479fdbc (patch) | |
tree | a033285b86728a45a837dff5d7d34369d7055e0a /mdoc_macro.c | |
parent | 464bf99c7bec33718cdc95c963d3e5d3a28b3124 (diff) | |
download | mandoc-6345042a457de84d0b4fdb0ffe8e21052479fdbc.tar.gz |
Lookup hashes are now static tables, ordered first-level by second character, then randomly along a chain. Improves performance by a small fraction and considerably cleans up hash sources.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index e6cf717f..704fbd8b 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -275,7 +275,7 @@ lookup_raw(struct mdoc *mdoc, const char *p) { int res; - if (MDOC_MAX == (res = mdoc_hash_find(mdoc->htab, p))) + if (MDOC_MAX == (res = mdoc_hash_find(p))) return(MDOC_MAX); if (MDOC_CALLABLE & mdoc_macros[res].flags) return(res); |