xref: /original-bsd/usr.bin/struct/struct/4.def.h (revision 2301fdfb)
1 /*	4.def.h	4.2	83/08/11	*/
2 
3 #define YESTAB	TRUE
4 #define NOTAB	FALSE
5 #define TABOVER(n)	tabover(n,outfd)
6 #define OUTSTR(x)		fprintf(outfd,"%s",x)
7 #define OUTNUM(x)		fprintf(outfd,"%d",x)
8 
9 
10 extern LOGICAL *brace;
11 #define YESBRACE(v,i)	{ if (DEFINED(LCHILD(v,i))) brace[LCHILD(v,i)] = TRUE; }
12 #define NOBRACE(v,i)	{ if (DEFINED(LCHILD(v,i))) brace[LCHILD(v,i)] = FALSE; }
13 #define HASBRACE(v,i)	 ((DEFINED(LCHILD(v,i))) ? brace[LCHILD(v,i)] : TRUE)
14