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