On Tue, Apr 12, 2016 at 03:40:11AM -0600, Marc Espie wrote:
> CVSROOT:      /cvs
> Module name:  www
> Changes by:   [email protected]   2016/04/12 03:40:11
> 
> Modified files:
>       faq            : faq6.html 
> 
> Log message:
> pretty sure network doesn't care about carp(3p)
> 

This wouldn't be a problem if the perl pages were searched last.

It isn't clear to me how to change the default, the following
doesn't seem to be enough.

Index: cgi.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/cgi.c,v
retrieving revision 1.58
diff -u -p -r1.58 cgi.c
--- cgi.c       18 Mar 2016 13:21:07 -0000      1.58
+++ cgi.c       12 Apr 2016 10:08:31 -0000
@@ -86,20 +86,20 @@ static      const char       *scriptname = SCRIPT_
 
 static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2, 9};
 static const char *const sec_numbers[] = {
-    "0", "1", "2", "3", "3p", "4", "5", "6", "7", "8", "9"
+    "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "3p"
 };
 static const char *const sec_names[] = {
     "All Sections",
     "1 - General Commands",
     "2 - System Calls",
     "3 - Library Functions",
-    "3p - Perl Library",
     "4 - Device Drivers",
     "5 - File Formats",
     "6 - Games",
     "7 - Miscellaneous Information",
     "8 - System Manager\'s Manual",
-    "9 - Kernel Developer\'s Manual"
+    "9 - Kernel Developer\'s Manual",
+    "3p - Perl Library"
 };
 static const int sec_MAX = sizeof(sec_names) / sizeof(char *);
 
Index: main.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/main.c,v
retrieving revision 1.170
diff -u -p -r1.170 main.c
--- main.c      16 Jan 2016 21:56:32 -0000      1.170
+++ main.c      12 Apr 2016 10:09:01 -0000
@@ -636,7 +636,7 @@ fs_search(const struct mansearch *cfg, c
        int argc, char **argv, struct manpage **res, size_t *ressz)
 {
        const char *const sections[] =
-           {"1", "8", "6", "2", "3", "3p", "5", "7", "4", "9"};
+           {"1", "8", "6", "2", "3", "5", "7", "4", "9", "3p",};
        const size_t nsec = sizeof(sections)/sizeof(sections[0]);
 
        size_t           ipath, isec, lastsz;

Reply via email to