mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 07:43:03 +00:00
* src/output.c (output, prepare): Make sure the values of the
muscles `action' and `prologue' are 0-terminated.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/output.c (output, prepare): Make sure the values of the
|
||||||
|
muscles `action' and `prologue' are 0-terminated.
|
||||||
|
|
||||||
2001-12-10 Akim Demaille <akim@epita.fr>
|
2001-12-10 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Clean up GCC warnings.
|
Clean up GCC warnings.
|
||||||
|
|||||||
@@ -1037,6 +1037,7 @@ prepare (void)
|
|||||||
MUSCLE_INSERT_INT ("locations-flag", locations_flag);
|
MUSCLE_INSERT_INT ("locations-flag", locations_flag);
|
||||||
|
|
||||||
/* We need to save the actions in the muscle %%action. */
|
/* We need to save the actions in the muscle %%action. */
|
||||||
|
obstack_1grow (&action_obstack, 0);
|
||||||
muscle_insert ("action", obstack_finish (&action_obstack));
|
muscle_insert ("action", obstack_finish (&action_obstack));
|
||||||
|
|
||||||
if (spec_name_prefix)
|
if (spec_name_prefix)
|
||||||
@@ -1067,6 +1068,7 @@ output (void)
|
|||||||
#endif
|
#endif
|
||||||
prepare ();
|
prepare ();
|
||||||
/* Copy definitions in directive. */
|
/* Copy definitions in directive. */
|
||||||
|
obstack_1grow (&attrs_obstack, 0);
|
||||||
muscle_insert ("prologue", obstack_finish (&attrs_obstack));
|
muscle_insert ("prologue", obstack_finish (&attrs_obstack));
|
||||||
|
|
||||||
output_master_parser ();
|
output_master_parser ();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* system-dependent definitions for Bison.
|
/* system-dependent definitions for Bison.
|
||||||
Copyright 2000 Free Software Foundation, Inc.
|
Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Reference in New Issue
Block a user