diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 11:41:22 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 11:41:22 +0000 |
commit | 056d0c68fbd56e3ce25fe3ad8c58ade0ab30a1b4 (patch) | |
tree | a2b977b6c334b960dc3df02e4f402667e9314030 /hash.c | |
parent | 7024ee7ca35a8033dee9ec0936cd2f3e0251aca2 (diff) | |
download | mandoc-056d0c68fbd56e3ce25fe3ad8c58ade0ab30a1b4.tar.gz |
BROKEN CHECK-IN. Wide-ranging updates.
Removed libmdoc internal argv limit (all dynamic).
Removed "data" union in mdoc_node (to be selectively re-added).
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -128,6 +128,11 @@ mdoc_tokhash_find(const void *arg, const char *tmp) assert(0 == (size_t)slot % sizeof(struct mdoc_macro)); slot /= sizeof(struct mdoc_macro); + /* + * FIXME: is this necessary, or do we only need to check the + * remaining characters (2+)? + */ + if (0 != strcmp(mdoc_macronames[slot], tmp)) return(MDOC_MAX); return(slot); |