]> git.cameronkatri.com Git - mandoc.git/blobdiff - term_tab.c
For .Do/.Dq, use the documented and portable \(lq and \(rq
[mandoc.git] / term_tab.c
index 2acfd46a333265516cb6b2067879888e37782e37..5251a8425a3cb72ea8d24654ef95ba09680156f5 100644 (file)
@@ -88,6 +88,21 @@ term_tab_set(const struct termp *p, const char *arg)
        tl->n++;
 }
 
+/*
+ * Simplified version without a parser,
+ * never incremental, never periodic, for use by tbl(7).
+ */
+void
+term_tab_iset(size_t inc)
+{
+       if (tabs.a.n >= tabs.a.s) {
+               tabs.a.s += 8;
+               tabs.a.t = mandoc_reallocarray(tabs.a.t, tabs.a.s,
+                   sizeof(*tabs.a.t));
+       }
+       tabs.a.t[tabs.a.n++] = inc;
+}
+
 size_t
 term_tab_next(size_t prev)
 {