3 /* Last non-groff version: gprint.h 1.1 84/10/08
5 * This file contains standard definitions used by the gprint program.
14 #define yorn(x,y) (511 - (y)) /* switch direction for */
21 #define DOTTED 004 /* 014 */
22 #define DASHED 020 /* 034 */
23 #define DOTDASHED 024 /* 054 */
24 #define LONGDASHED 074
26 #define DEFTHICK -1 /* default thicknes */
27 #define DEFSTYLE SOLID /* default line style */
51 #define TEXT(t) ( (t <= CENTCENT) || (t >= TOPLEFT) )
53 /* WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING
54 * The above (TEXT) test is dependent on the relative values of the
55 * constants and will have to change if these values change or if new
56 * commands are added with value greater than BOTCENT
70 typedef struct point
{
76 int type
, brushf
, size
, textlength
;
79 struct elmt
*nextelt
, *setnext
;
82 #define DBNextElt(elt) (elt->nextelt)
83 #define DBNextofSet(elt) (elt->setnext)
84 #define DBNullelt(elt) (elt == NULL)
85 #define Nullpoint(pt) ((pt) == (POINT *) NULL)
86 #define PTNextPoint(pt) (pt->nextpt)