xref: /csrg-svn/usr.bin/struct/struct/4.main.c (revision 62294)
148123Sbostic /*-
248123Sbostic  * %sccs.include.proprietary.c%
348123Sbostic  */
448123Sbostic 
510979Srrh #ifndef lint
6*62294Sbostic static char sccsid[] = "@(#)4.main.c	8.1 (Berkeley) 06/06/93";
748123Sbostic #endif /* not lint */
810979Srrh 
910979Srrh #include <stdio.h>
1010979Srrh #include "def.h"
1110979Srrh #include "4.def.h"
1210979Srrh 
1310979Srrh LOGICAL *brace;
output()1410979Srrh output()
1510979Srrh 	{
1610979Srrh 	VERT w;
1710979Srrh 	int i;
1810979Srrh 	brace = challoc(nodenum * sizeof(*brace));
1910979Srrh 	for (i = 0; i < nodenum; ++i)
2010979Srrh 		brace[i] = FALSE;
2110979Srrh 	if (progress) fprintf(stderr,"ndbrace:\n");
2210979Srrh 	for (w = START; DEFINED(w); w = RSIB(w))
2310979Srrh 		ndbrace(w);
2410979Srrh 	if (progress) fprintf(stderr,"outrat:\n");
2510979Srrh 	for (w = START; DEFINED(w); w = RSIB(w))
2610979Srrh 		outrat(w,0,YESTAB);
2710979Srrh 	OUTSTR("END\n");
2810979Srrh 	chfree(brace,nodenum * sizeof(*brace));
2910979Srrh 	brace = 0;
3010979Srrh 	}
31