summaryrefslogtreecommitdiff
path: root/textproc/texi2roff/patches/patch-ai
blob: 359fbcf6fe01e56288c71d7badc4d4b6e284fca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-ai,v 1.2 2006/03/21 16:45:25 yyamano Exp $

--- table.c.orig	1992-02-21 03:16:37.000000000 +0900
+++ table.c
@@ -25,6 +25,7 @@
 #include "tablems.h"
 #include "tableme.h"
 #include "tablemm.h"
+#include "tablemandoc.h"
 
 char indexmacro[] = ".de iX \n.tm \\\\$1   \\\\n%\n..\n";
 char trquotes[] = ".tr \\(is'\n.tr \\(if`\n.tr \\(pd\"\n";
@@ -32,13 +33,14 @@ char trquotes[] = ".tr \\(is'\n.tr \\(if
 struct misccmds * cmds;
 struct tablerecd * table, * endoftable;
 
+static void patchtable();
+
 void
 initialize(macropkg, showInfo, makeindex)
 int macropkg;
 int showInfo;
 int makeindex;
 {
-    extern void patchtable();
     int tablesize;
 
     switch (macropkg) {
@@ -57,6 +59,11 @@ int makeindex;
 	tablesize = sizeof metable;
 	cmds = &mecmds;
 	break;
+    case MANDOC:
+	table = mandoctable;
+	tablesize = sizeof mandoctable;
+	cmds = &mandoccmds;
+	break;
     }
     endoftable = table + tablesize/sizeof table[0];
     if (showInfo == NO)