- if (debugging)
- {
- if (y < 0 || y > t->n[V]
- || x1 < 0 || x1 >= t->n[H]
- || x2 < 0 || x2 >= t->n[H])
- {
- printf ("bad hline: x=(%d,%d) y=%d in table size (%d,%d)\n",
- x1, x2, y, t->n[H], t->n[V]);
- return;
- }
- }
-
- assert (y >= 0);
- assert (y <= t->n[V]);
- assert (x2 >= x1);
- assert (x1 >= 0);
- assert (x2 < t->n[H]);
-
- if (style != -1)
- {
- int x;
- for (x = x1; x <= x2; x++)
- t->rh[x + t->n[H] * y] = style;
- }
-}
-
-/* Draws a box around cells (X1,Y1)-(X2,Y2) inclusive with horizontal
- lines of style F_H and vertical lines of style F_V. Fills the
- interior of the box with horizontal lines of style I_H and vertical
- lines of style I_V. Any of the line styles may be -1 to avoid
- drawing those lines. This is distinct from 0, which draws a null
- line. */
-void
-table_box (struct table *t, int f_h, int f_v, int i_h, int i_v,
- int x1, int y1, int x2, int y2)
-{
- if (debugging)