bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05-fyi-fix-muscles.patch


From: Akim Demaille
Subject: 05-fyi-fix-muscles.patch
Date: Mon, 10 Dec 2001 09:35:39 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * src/output.c (output, prepare): Make sure the values of the
        muscles `action' and `prologue' are 0-terminated.

Index: src/output.c
--- src/output.c Sat, 08 Dec 2001 13:33:23 +0100 akim
+++ src/output.c Sat, 08 Dec 2001 14:30:17 +0100 akim
@@ -1037,6 +1037,7 @@
   MUSCLE_INSERT_INT ("locations-flag", locations_flag);

   /* We need to save the actions in the muscle %%action.  */
+  obstack_1grow (&action_obstack, 0);
   muscle_insert ("action", obstack_finish (&action_obstack));

   if (spec_name_prefix)
@@ -1067,6 +1068,7 @@
 #endif
   prepare ();
   /* Copy definitions in directive.  */
+  obstack_1grow (&attrs_obstack, 0);
   muscle_insert ("prologue", obstack_finish (&attrs_obstack));

   output_master_parser ();
Index: src/system.h
--- src/system.h Thu, 29 Nov 2001 21:52:19 +0100 akim
+++ src/system.h Sat, 08 Dec 2001 14:18:03 +0100 akim
@@ -1,5 +1,5 @@
 /* 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
    it under the terms of the GNU General Public License as published by



reply via email to

[Prev in Thread] Current Thread [Next in Thread]