if (fout)
fprintf (fout, "yyloc");
if (oout)
- obstack_grow_literal_string (oout, "yyloc");
+ obstack_grow_string (oout, "yyloc");
locations_flag = 1;
}
else if (isdigit (c) || c == '-')
if (fout)
fputs ("yyval", fout);
if (oout)
- obstack_grow_literal_string (oout, "yyval");
+ obstack_grow_string (oout, "yyval");
if (!type_name)
type_name = get_type_name (0, rule);
else
obstack_1grow (&attrs_obstack, '\n');
- obstack_grow_literal_string (&attrs_obstack, "typedef union");
+ obstack_grow_string (&attrs_obstack, "typedef union");
if (defines_flag)
- obstack_grow_literal_string (&defines_obstack, "typedef union");
+ obstack_grow_string (&defines_obstack, "typedef union");
c = getc (finput);
count--;
if (count <= 0)
{
- obstack_grow_literal_string (&attrs_obstack, " YYSTYPE;\n");
+ obstack_grow_string (&attrs_obstack, " YYSTYPE;\n");
if (defines_flag)
- obstack_grow_literal_string (&defines_obstack, " YYSTYPE;\n");
+ obstack_grow_string (&defines_obstack, " YYSTYPE;\n");
/* JF don't choke on trailing semi */
c = skip_white_space ();
if (c != ';')
}
}
- obstack_grow_literal_string (&action_obstack,
- ";\n break;}");
+ obstack_grow_string (&action_obstack, ";\n break;}");
}
\f
/*-------------------------------------------------------------------.
/* We used to use `unsigned long' as YYSTYPE on MSDOS,
but it seems better to be consistent.
Most programs should declare their own type anyway. */
- obstack_grow_literal_string (&attrs_obstack,
- "#ifndef YYSTYPE\n#define YYSTYPE int\n#endif\n");
+ obstack_grow_string (&attrs_obstack,
+ "#ifndef YYSTYPE\n#define YYSTYPE int\n#endif\n");
if (defines_flag)
- obstack_grow_literal_string (&defines_obstack, "\
+ obstack_grow_string (&defines_obstack, "\
#ifndef YYSTYPE\n\
# define YYSTYPE int\n\
#endif\n");
obstack_fgrow1 (&defines_obstack, "\nextern YYSTYPE %slval;\n",
spec_name_prefix);
else
- obstack_grow_literal_string (&defines_obstack,
- "\nextern YYSTYPE yylval;\n");
+ obstack_grow_string (&defines_obstack,
+ "\nextern YYSTYPE yylval;\n");
}
if (semantic_parser)
no_parser_flag ? "Bison-generated parse tables" : "A Bison parser",
infile, VERSION);
- obstack_grow_literal_string (&table_obstack,
+ obstack_grow_string (&table_obstack,
"#define YYBISON 1 /* Identify Bison output. */\n\n");
read_declarations ();
/* Start writing the guard and action files, if they are needed. */
/* Write closing delimiters for actions and guards. */
output_trailers ();
if (locations_flag)
- obstack_grow_literal_string (&table_obstack, "#define YYLSP_NEEDED 1\n\n");
+ obstack_grow_string (&table_obstack, "#define YYLSP_NEEDED 1\n\n");
/* Assign the symbols their symbol numbers. Write #defines for the
token symbols into FDEFINES if requested. */
packsymbols ();
reader_output_yylsp (struct obstack *oout)
{
if (locations_flag)
- obstack_grow_literal_string (oout, "\
+ obstack_grow_string (oout, "\
\n\
#ifndef YYLTYPE\n\
typedef struct yyltype\n\