[PATCH] Rename muscle_tab.* to muscle-tab.* for consistency with master.

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] Rename muscle_tab.* to muscle-tab.* for consistency with master.

by Joel E. Denny-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I pushed this to branch-2.5.

From 23ec25b7c6c4eb587a5fa832f67765a6143b7925 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <jdenny@...>
Date: Thu, 8 Oct 2009 16:58:22 -0400
Subject: [PATCH] Rename muscle_tab.* to muscle-tab.* for consistency with master.

* src/Makefile.am (bison_SOURCES): Update.
* src/getargs.c, src/ielr.c, src/lalr.c, src/main.c,
src/output.c, src/parse-gram.y, src/print.c, src/reader.c,
src/tables.c: Update include.
* src/muscle_tab.c, src/muscle_tab.h: Rename to...
* src/muscle-tab.c, src/muscle-tab.h: ... these and update
include.
---
 ChangeLog                          |   11 +++++++++++
 src/Makefile.am                    |    2 +-
 src/getargs.c                      |    2 +-
 src/ielr.c                         |    2 +-
 src/lalr.c                         |    2 +-
 src/main.c                         |    2 +-
 src/{muscle_tab.c => muscle-tab.c} |    2 +-
 src/{muscle_tab.h => muscle-tab.h} |    0
 src/output.c                       |    2 +-
 src/parse-gram.c                   |    6 +++---
 src/parse-gram.h                   |    2 +-
 src/parse-gram.y                   |    2 +-
 src/print.c                        |    2 +-
 src/reader.c                       |    2 +-
 src/tables.c                       |    2 +-
 15 files changed, 26 insertions(+), 15 deletions(-)
 rename src/{muscle_tab.c => muscle-tab.c} (99%)
 rename src/{muscle_tab.h => muscle-tab.h} (100%)

diff --git a/ChangeLog b/ChangeLog
index 004ba41..f01a926 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-10-08  Joel E. Denny  <jdenny@...>
+
+ Rename muscle_tab.* to muscle-tab.* for consistency with master.
+ * src/Makefile.am (bison_SOURCES): Update.
+ * src/getargs.c, src/ielr.c, src/lalr.c, src/main.c,
+ src/output.c, src/parse-gram.y, src/print.c, src/reader.c,
+ src/tables.c: Update include.
+ * src/muscle_tab.c, src/muscle_tab.h: Rename to...
+ * src/muscle-tab.c, src/muscle-tab.h: ... these and update
+ include.
+
 2009-10-07  Joel E. Denny  <jdenny@...>
 
  Minor code cleanup.
diff --git a/src/Makefile.am b/src/Makefile.am
index 13442ba..a7b3acb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -48,7 +48,7 @@ bison_SOURCES =  \
  ielr.h ielr.c  \
  location.c location.h  \
  main.c  \
- muscle_tab.c muscle_tab.h  \
+ muscle-tab.c muscle-tab.h  \
  named-ref.c named-ref.h  \
  nullable.c nullable.h  \
  output.c output.h  \
diff --git a/src/getargs.c b/src/getargs.c
index 876130e..4231cfc 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -44,7 +44,7 @@
 #include "complain.h"
 #include "files.h"
 #include "getargs.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "uniqstr.h"
 
 bool debug_flag;
diff --git a/src/ielr.c b/src/ielr.c
index 657c3a1..e47c020 100644
--- a/src/ielr.c
+++ b/src/ielr.c
@@ -29,7 +29,7 @@
 #include "derives.h"
 #include "getargs.h"
 #include "lalr.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "nullable.h"
 #include "relation.h"
 #include "state.h"
diff --git a/src/lalr.c b/src/lalr.c
index 8742b4e..fbd2800 100644
--- a/src/lalr.c
+++ b/src/lalr.c
@@ -36,7 +36,7 @@
 #include "getargs.h"
 #include "gram.h"
 #include "lalr.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "nullable.h"
 #include "reader.h"
 #include "relation.h"
diff --git a/src/main.c b/src/main.c
index c80ed87..c8dc696 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,7 +36,7 @@
 #include "gram.h"
 #include "lalr.h"
 #include "ielr.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "nullable.h"
 #include "output.h"
 #include "print.h"
diff --git a/src/muscle_tab.c b/src/muscle-tab.c
similarity index 99%
rename from src/muscle_tab.c
rename to src/muscle-tab.c
index e75ceef..49a985b 100644
--- a/src/muscle_tab.c
+++ b/src/muscle-tab.c
@@ -26,7 +26,7 @@
 
 #include "complain.h"
 #include "files.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "getargs.h"
 
 /* A key-value pair, along with storage that can be reclaimed when
diff --git a/src/muscle_tab.h b/src/muscle-tab.h
similarity index 100%
rename from src/muscle_tab.h
rename to src/muscle-tab.h
diff --git a/src/output.c b/src/output.c
index 6663a20..01ca5be 100644
--- a/src/output.c
+++ b/src/output.c
@@ -32,7 +32,7 @@
 #include "files.h"
 #include "getargs.h"
 #include "gram.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "output.h"
 #include "reader.h"
 #include "scan-code.h"    /* max_left_semantic_context */
diff --git a/src/parse-gram.y b/src/parse-gram.y
index bcc2571..f7843ec 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -26,7 +26,7 @@
 #include "files.h"
 #include "getargs.h"
 #include "gram.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "named-ref.h"
 #include "quotearg.h"
 #include "reader.h"
diff --git a/src/print.c b/src/print.c
index b425657..41cd19a 100644
--- a/src/print.c
+++ b/src/print.c
@@ -31,7 +31,7 @@
 #include "getargs.h"
 #include "gram.h"
 #include "lalr.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "print.h"
 #include "reader.h"
 #include "reduce.h"
diff --git a/src/reader.c b/src/reader.c
index 043fea8..8a292b8 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -29,7 +29,7 @@
 #include "files.h"
 #include "getargs.h"
 #include "gram.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "reader.h"
 #include "symlist.h"
 #include "symtab.h"
diff --git a/src/tables.c b/src/tables.c
index 5f2d709..d1f7e7d 100644
--- a/src/tables.c
+++ b/src/tables.c
@@ -30,7 +30,7 @@
 #include "getargs.h"
 #include "gram.h"
 #include "lalr.h"
-#include "muscle_tab.h"
+#include "muscle-tab.h"
 #include "reader.h"
 #include "symtab.h"
 #include "tables.h"
--
1.5.4.3




Re: [PATCH] Rename muscle_tab.* to muscle-tab.* for consistency with master.

by Joel E. Denny-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 8 Oct 2009, Joel E. Denny wrote:

> I pushed this to branch-2.5.
>
> >From 23ec25b7c6c4eb587a5fa832f67765a6143b7925 Mon Sep 17 00:00:00 2001
> From: Joel E. Denny <jdenny@...>
> Date: Thu, 8 Oct 2009 16:58:22 -0400
> Subject: [PATCH] Rename muscle_tab.* to muscle-tab.* for consistency with master.

I pushed the following to branch-2.5 and master.

From 51f255a5308bb70a4f479196574f2049ed89d6d3 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <jdenny@...>
Date: Thu, 8 Oct 2009 17:08:01 -0400
Subject: [PATCH] * data/bison.m4: Update comments for rename to muscle-tab.h.

---
 ChangeLog     |    4 ++++
 data/bison.m4 |   14 +++++++-------
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f01a926..7c15b9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-08  Joel E. Denny  <jdenny@...>
 
+ * data/bison.m4: Update comments for rename to muscle-tab.h.
+
+2009-10-08  Joel E. Denny  <jdenny@...>
+
  Rename muscle_tab.* to muscle-tab.* for consistency with master.
  * src/Makefile.am (bison_SOURCES): Update.
  * src/getargs.c, src/ielr.c, src/lalr.c, src/main.c,
diff --git a/data/bison.m4 b/data/bison.m4
index aae80f5..014f10f 100644
--- a/data/bison.m4
+++ b/data/bison.m4
@@ -364,7 +364,7 @@ m4_popdef([b4_end])dnl
 
 # b4_percent_define_get(VARIABLE)
 # -------------------------------
-# Mimic muscle_percent_define_get in ../src/muscle_tab.h exactly.  That is, if
+# Mimic muscle_percent_define_get in ../src/muscle-tab.h exactly.  That is, if
 # the %define variable VARIABLE is defined, emit its value.  Also, record
 # Bison's usage of VARIABLE by defining
 # b4_percent_define_bison_variables(VARIABLE).
@@ -378,7 +378,7 @@ m4_ifdef([b4_percent_define(]$1[)], [m4_indir([b4_percent_define(]$1[)])])])
 
 # b4_percent_define_get_loc(VARIABLE)
 # -----------------------------------
-# Mimic muscle_percent_define_get_loc in ../src/muscle_tab.h exactly.  That is,
+# Mimic muscle_percent_define_get_loc in ../src/muscle-tab.h exactly.  That is,
 # if the %define variable VARIABLE is undefined, complain fatally since that's
 # a Bison or skeleton error.  Otherwise, return its definition location in a
 # form approriate for the first two arguments of b4_warn_at, b4_complain_at, or
@@ -397,7 +397,7 @@ m4_popdef([b4_loc])],
 
 # b4_percent_define_get_syncline(VARIABLE)
 # ----------------------------------------
-# Mimic muscle_percent_define_get_syncline in ../src/muscle_tab.h exactly.
+# Mimic muscle_percent_define_get_syncline in ../src/muscle-tab.h exactly.
 # That is, if the %define variable VARIABLE is undefined, complain fatally
 # since that's a Bison or skeleton error.  Otherwise, return its definition
 # location as a b4_syncline invocation.  Don't record this as a Bison usage of
@@ -414,7 +414,7 @@ m4_define([b4_percent_define_get_syncline],
 
 # b4_percent_define_ifdef(VARIABLE, IF-TRUE, [IF-FALSE])
 # ------------------------------------------------------
-# Mimic muscle_percent_define_ifdef in ../src/muscle_tab.h exactly.  That is,
+# Mimic muscle_percent_define_ifdef in ../src/muscle-tab.h exactly.  That is,
 # if the %define variable VARIABLE is defined, expand IF-TRUE, else expand
 # IF-FALSE.  Also, record Bison's usage of VARIABLE by defining
 # b4_percent_define_bison_variables(VARIABLE).
@@ -429,7 +429,7 @@ m4_define([b4_percent_define_ifdef],
 
 # b4_percent_define_flag_if(VARIABLE, IF-TRUE, [IF-FALSE])
 # --------------------------------------------------------
-# Mimic muscle_percent_define_flag_if in ../src/muscle_tab.h exactly.  That is,
+# Mimic muscle_percent_define_flag_if in ../src/muscle-tab.h exactly.  That is,
 # if the %define variable VARIABLE is defined to "" or "true", expand IF-TRUE.
 # If it is defined to "false", expand IF-FALSE.  Complain if it is undefined
 # (a Bison or skeleton error since the default value should have been set
@@ -452,7 +452,7 @@ m4_define([b4_percent_define_flag_if],
 
 # b4_percent_define_default(VARIABLE, DEFAULT)
 # --------------------------------------------
-# Mimic muscle_percent_define_default in ../src/muscle_tab.h exactly.  That is,
+# Mimic muscle_percent_define_default in ../src/muscle-tab.h exactly.  That is,
 # if the %define variable VARIABLE is undefined, set its value to DEFAULT.
 # Don't record this as a Bison usage of VARIABLE as there's no reason to
 # suspect that the value has yet influenced the output.
@@ -470,7 +470,7 @@ m4_define([b4_percent_define_default],
 
 # b4_percent_define_check_values(VALUES)
 # --------------------------------------
-# Mimic muscle_percent_define_check_values in ../src/muscle_tab.h exactly
+# Mimic muscle_percent_define_check_values in ../src/muscle-tab.h exactly
 # except that the VALUES structure is more appropriate for M4.  That is, VALUES
 # is a list of sublists of strings.  For each sublist, the first string is the
 # name of a %define variable, and all remaining strings in that sublist are the
--
1.5.4.3