aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch_const.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-04 15:55:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-04 15:55:19 +0000
commit994580065e7e64895b2192324b068e553d90f7ba (patch)
tree18c50b1047cc520798ef613f5705169253c25421 /mansearch_const.c
parent7fb2fd7f16e762237be097523fb48320a165689e (diff)
downloadmandoc-994580065e7e64895b2192324b068e553d90f7ba.tar.gz
mandoc-994580065e7e64895b2192324b068e553d90f7ba.tar.zst
mandoc-994580065e7e64895b2192324b068e553d90f7ba.zip
Remember which names are in the NAME section.
This helps to find missing MLINKS. Database build times do not change and database growth is minimal (1.2% with -Q, 0.7% without -Q in /usr/share/man), so making this optional would be pointless.
Diffstat (limited to 'mansearch_const.c')
-rw-r--r--mansearch_const.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/mansearch_const.c b/mansearch_const.c
index b4d47200..12d10b2a 100644
--- a/mansearch_const.c
+++ b/mansearch_const.c
@@ -1,4 +1,4 @@
-/* $Id: mansearch_const.c,v 1.1 2014/01/19 00:09:38 schwarze Exp $ */
+/* $Id: mansearch_const.c,v 1.2 2014/04/04 15:55:19 schwarze Exp $ */
/*
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -20,12 +20,13 @@
#include "manpath.h"
#include "mansearch.h"
-const int mansearch_keymax = 40;
+const int mansearch_keymax = 41;
-const char *const mansearch_keynames[40] = {
- "Nm", "Nd", "arch", "sec", "Xr", "Ar", "Fa", "Fl",
- "Dv", "Fn", "Ic", "Pa", "Cm", "Li", "Em", "Cd",
- "Va", "Ft", "Tn", "Er", "Ev", "Sy", "Sh", "In",
- "Ss", "Ox", "An", "Mt", "St", "Bx", "At", "Nx",
- "Fx", "Lk", "Ms", "Bsx", "Dx", "Rs", "Vt", "Lb"
+const char *const mansearch_keynames[41] = {
+ "NAME", "Nm", "Nd", "arch", "sec", "Xr", "Ar", "Fa",
+ "Fl", "Dv", "Fn", "Ic", "Pa", "Cm", "Li", "Em",
+ "Cd", "Va", "Ft", "Tn", "Er", "Ev", "Sy", "Sh",
+ "In", "Ss", "Ox", "An", "Mt", "St", "Bx", "At",
+ "Nx", "Fx", "Lk", "Ms", "Bsx", "Dx", "Rs", "Vt",
+ "Lb"
};