diff options
author | 2017-04-29 12:43:55 +0000 | |
---|---|---|
committer | 2017-04-29 12:43:55 +0000 | |
commit | 6050a3da91e43fcabcbd41816b2dd4c5661f5a83 (patch) | |
tree | ef7dcce388a1ee621629fb2be1561091d84e2f2b /usr.bin/mandoc/mdoc_macro.c | |
parent | store cpu model information in the buffer used by the hw.model sysctl (diff) | |
download | wireguard-openbsd-6050a3da91e43fcabcbd41816b2dd4c5661f5a83.tar.xz wireguard-openbsd-6050a3da91e43fcabcbd41816b2dd4c5661f5a83.zip |
Parser unification: use nice ohashes for all three request and macro tables;
no functional change, minus two source files, minus 200 lines of code.
Diffstat (limited to 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c index 5af20a7de66..9a9c777f53a 100644 --- a/usr.bin/mandoc/mdoc_macro.c +++ b/usr.bin/mandoc/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_macro.c,v 1.176 2017/04/24 23:06:09 schwarze Exp $ */ +/* $OpenBSD: mdoc_macro.c,v 1.177 2017/04/29 12:43:55 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -245,7 +245,7 @@ lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) return TOKEN_NONE; } if (from == TOKEN_NONE || mdoc_macros[from].flags & MDOC_PARSED) { - res = mdoc_hash_find(p); + res = roffhash_find(mdoc->mdocmac, p, 0); if (res != TOKEN_NONE) { if (mdoc_macros[res].flags & MDOC_CALLABLE) return res; |