xref: /original-bsd/usr.bin/struct/struct/4.main.c (revision b64b0d54)
1 #ifndef lint
2 static char sccsid[] = "@(#)4.main.c	4.1	(Berkeley)	02/11/83";
3 #endif not lint
4 
5 #include <stdio.h>
6 #include "def.h"
7 #include "4.def.h"
8 
9 LOGICAL *brace;
10 output()
11 	{
12 	VERT w;
13 	int i;
14 	brace = challoc(nodenum * sizeof(*brace));
15 	for (i = 0; i < nodenum; ++i)
16 		brace[i] = FALSE;
17 	if (progress) fprintf(stderr,"ndbrace:\n");
18 	for (w = START; DEFINED(w); w = RSIB(w))
19 		ndbrace(w);
20 	if (progress) fprintf(stderr,"outrat:\n");
21 	for (w = START; DEFINED(w); w = RSIB(w))
22 		outrat(w,0,YESTAB);
23 	OUTSTR("END\n");
24 	chfree(brace,nodenum * sizeof(*brace));
25 	brace = 0;
26 	}
27