2 * Copyright 1990 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 /* tt.c: subroutines for drawing horizontal lines */
28 return(style
[il
][ic
]);
41 return(c
<ncol
&& ctype(i
,c
)=='s');
48 if (ctype(i
,c
) != 's') return(0);
50 if (c
< ncol
&& ctype(i
,c
)== 's')
52 for(k
=0; ctype(i
,--c
) == 's'; k
++);
61 for(k
=1; c
<ncol
&& ctype(i
,c
)=='s'; k
++)
70 fprintf(tabout
, "\\h'|0'");
72 fprintf(tabout
, "\\h'(|\\n(%du+|\\n(%du)/2u'", ic
+CLEFT
, ic
+CRIGHT
-1);
78 /* return true if every element in line i is horizontal */
79 /* also at least one must be horizontl */
81 if (fullbot
[i
]) return(1);
82 for(one
=c
=0; c
<ncol
; c
++)
101 if (t
=='_' || t
== '-')
103 if (t
=='=')return('=');
104 if (t
=='^') return(1);
107 if (t
=='s') return(thish(i
,c
-1));
110 s
= (t
=='a' ? pc
->rcol
: pc
->col
);
111 if (s
==0 || (point(s
) && *s
==0))
113 if (vspen(s
)) return(1);