pkgsrc/textproc/texi2roff/patches/patch-ai
2006-03-21 16:45:25 +00:00

40 lines
971 B
Text

$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)