2 static char rcsid[] = "$Id: cleanup.c,v 2.6 1994/06/24 10:39:49 ceriel Exp $";
16 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
17 * See the copyright notice in the ACK home directory, in the file "Copyright".
19 * Author: Hans van Staveren
26 register sym_p *spp,sp;
28 for (spp=symhash;spp< &symhash[NSYMHASH];spp++)
29 for (sp = *spp; sp != (sym_p) 0; sp = sp->s_next)
30 if ((sp->s_flags & SYMOUT) == 0)
37 infile = fopen(template,"r");
39 error("temp file disappeared");
41 /* Attempt to first output the word_size message */
42 while ((c = getc(infile)) != sp_cend && c != EOF) {
45 if (c == sp_cend) putc(c, outfile);
48 for (spp=symhash;spp< &symhash[NSYMHASH];spp++)
49 for (sp = *spp; sp != (sym_p) 0; sp = sp->s_next)
50 if ((sp->s_flags&(SYMDEF|SYMGLOBAL)) == (SYMDEF|SYMGLOBAL))
52 putc(sp_cend,outfile);
53 while ( (c=getc(infile)) != EOF)