Change each use of fattrs' into a use of attrs_obstack'.

* src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
* src/files.c (fattrs): Remove.
(attrs_obstack): New.
Adjust all dependencies.
(done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
This commit is contained in:
Akim Demaille
2000-11-01 17:05:54 +00:00
parent 8c7ebe4946
commit dd60faeca4
6 changed files with 76 additions and 63 deletions

View File

@@ -1302,11 +1302,13 @@ output (void)
int c;
/* output_token_defines(ftable); / * JF put out token defines FIRST */
if (!semantic_parser) /* JF Put out other stuff */
/* If using a simple parser the definition of YYSTYPE are put into
FTABLE. */
if (!semantic_parser)
{
rewind (fattrs);
while ((c = getc (fattrs)) != EOF)
putc (c, ftable);
size_t size = obstack_object_size (&attrs_obstack);
fwrite (obstack_finish (&attrs_obstack), 1, size, ftable);
}
reader_output_yylsp (ftable);
if (debug_flag)