bison-patches
[Top][All Lists]
Advanced

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

[PATCH 07/11] style: fix comments


From: Akim Demaille
Subject: [PATCH 07/11] style: fix comments
Date: Thu, 4 Apr 2013 17:36:24 +0200

* src/muscle-tab.c (muscle_percent_define_ensure): Update obsolete
comments.
---
 src/muscle-tab.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/muscle-tab.c b/src/muscle-tab.c
index e6df47f..4d5dd0a 100644
--- a/src/muscle-tab.c
+++ b/src/muscle-tab.c
@@ -491,18 +491,14 @@ void
 muscle_percent_define_ensure (char const *variable, location loc,
                               bool value)
 {
-  char const *val = value ? "" : "false";
   char const *name = UNIQSTR_CONCAT ("percent_define(", variable, ")");
+  char const *val = value ? "" : "false";
 
-  /* %pure-parser is deprecated in favor of '%define api.pure', so use
-     '%define api.pure' in a backward-compatible manner here.  First,
-     don't complain if %pure-parser is specified multiple times.  */
+  /* Don't complain is VARIABLE is already defined, but be sure to set
+     its value to VAL.  */
   if (!muscle_find_const (name))
     muscle_percent_define_insert (variable, loc, val,
                                   MUSCLE_PERCENT_DEFINE_GRAMMAR_FILE);
-  /* In all cases, use api.pure now so that the backend doesn't complain if
-     the skeleton ignores api.pure, but do warn now if there's a previous
-     conflicting definition from an actual %define.  */
   if (muscle_percent_define_flag_if (variable) != value)
     muscle_percent_define_insert (variable, loc, val,
                                   MUSCLE_PERCENT_DEFINE_GRAMMAR_FILE);
-- 
1.8.2




reply via email to

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