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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
$NetBSD: patch-ag,v 1.1.1.1 2001/05/30 11:45:41 agc Exp $
--- items.c.orig Mon May 28 11:39:14 2001
+++ items.c Mon May 28 12:19:28 2001
@@ -14,6 +14,7 @@
#define ENUMERATE 1
#define TABLE 2
#define APPLY 3
+#define MULTITABLE 4
#define MAXILEVEL 10
int icount[MAXILEVEL];
@@ -27,8 +28,8 @@
extern struct tablerecd * lookup();
/*
- * itemize - handle the itemizing start commands @enumerate, @itemize
- * and @table
+ * itemize - handle the itemizing start commands @enumerate, @itemize,
+ * @table, and @multitable
*/
char * itemize(s, token)
@@ -58,7 +59,9 @@
} else if (STREQ(token,"@enumerate")) {
what[ilevel] = ENUMERATE;
icount[ilevel] = 1;
- } else if (STREQ(token,"@table")) {
+ } else if (STREQ(token,"@table") ||
+ STREQ(token,"@ftable") ||
+ STREQ(token,"@vtable")) {
what[ilevel] = TABLE;
s = gettoken(eatwhitespace(s),tag);
if (*tag == '\n') {
@@ -75,6 +78,11 @@
}
}
}
+ } else if (STREQ(token,"@multitable")) {
+ what[ilevel] = MULTITABLE;
+ icount[ilevel] = 1;
+ } else {
+ errormsg("unrecognized itemizing command ",token);
}
while (*s != '\n' && *s != '\0')
++s; /* flush rest of line */
@@ -98,6 +106,7 @@
(void) sprintf(tag, "%d.", icount[ilevel]++);
break;
case TABLE:
+ case MULTITABLE:
s = eatwhitespace(s);
if (*s == '\n') {
*tag++ = '-';
|