bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] parse-datetime: do some more renaming


From: Paul Eggert
Subject: [PATCH] parse-datetime: do some more renaming
Date: Tue, 05 Oct 2010 13:52:34 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

* doc/parse-datetime.texi (Authors of parse_datetime): Call it
parse_datetime, not get_date.  Mention the renaming.
* lib/parse-datetime.y:  Call it parse_datetime, not getdate,
in comments.
* m4/bison.m4: Likewise.
---
 ChangeLog               |    7 +++++++
 doc/parse-datetime.texi |    5 +++--
 lib/parse-datetime.y    |    4 ++--
 m4/bison.m4             |    2 +-
 4 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4345d5e..e3b4749 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-10-05  Paul Eggert  <address@hidden>
 
+       parse-datetime: do some more renaming
+       * doc/parse-datetime.texi (Authors of parse_datetime): Call it
+       parse_datetime, not get_date.  Mention the renaming.
+       * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
+       in comments.
+       * m4/bison.m4: Likewise.
+
        more ports to Solaris tr, which needs [] around ranges
        * gnulib-tool: Solaris tr needs [] around ranges.
        * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
diff --git a/doc/parse-datetime.texi b/doc/parse-datetime.texi
index 496709c..b0a8340 100644
--- a/doc/parse-datetime.texi
+++ b/doc/parse-datetime.texi
@@ -543,13 +543,14 @@ libc, The GNU C Library}.
 @cindex MacKenzie, David
 @cindex Meyering, Jim
 @cindex Eggert, Paul
address@hidden was originally implemented by Steven M. Bellovin
address@hidden was originally implemented by Steven M. Bellovin
 (@email{smb@@research.att.com}) while at the University of North Carolina
 at Chapel Hill.  The code was later tweaked by a couple of people on
 Usenet, then completely overhauled by Rich $alz (@email{rsalz@@bbn.com})
 and Jim Berets (@email{jberets@@bbn.com}) in August, 1990.  Various
 revisions for the @sc{gnu} system were made by David MacKenzie, Jim Meyering,
-Paul Eggert and others, including renaming it to @code{parse_datetime}
+Paul Eggert and others, including renaming it to @code{get_date} and
+then to @code{parse_datetime}
 to avoid confusion with the Posix function @code{getdate}.
 
 @cindex Pinard, F.
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y
index f22c754..bc46e1c 100644
--- a/lib/parse-datetime.y
+++ b/lib/parse-datetime.y
@@ -50,7 +50,7 @@
 #define YYMAXDEPTH 20
 #define YYINITDEPTH YYMAXDEPTH
 
-/* Since the code of getdate.y is not included in the Emacs executable
+/* Since the code of parse-datetime.y is not included in the Emacs executable
    itself, there is no need to #define static in this file.  Even if
    the code were included in the Emacs executable, it probably
    wouldn't do any harm to #undef it here; this will only cause
@@ -712,7 +712,7 @@ static table const universal_time_zone_table[] =
 /* The time zone table.  This table is necessarily incomplete, as time
    zone abbreviations are ambiguous; e.g. Australians interpret "EST"
    as Eastern time in Australia, not as US Eastern Standard Time.
-   You cannot rely on getdate to handle arbitrary time zone
+   You cannot rely on parse_datetime to handle arbitrary time zone
    abbreviations; use numeric abbreviations like `-0500' instead.  */
 static table const time_zone_table[] =
 {
diff --git a/m4/bison.m4 b/m4/bison.m4
index bd8225d..f4a97c3 100644
--- a/m4/bison.m4
+++ b/m4/bison.m4
@@ -13,7 +13,7 @@ dnl
 dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB
 dnl requires an Autoconf greater than 2.59c, but it will probably still be
 dnl useful to override the description of YACC in the --help output, re
-dnl getdate.y assuming `bison -y'.
+dnl parse-datetime.y assuming `bison -y'.
   AC_ARG_VAR([YACC],
 [The `Yet Another C Compiler' implementation to use.  Defaults to `bison -y'.
 Values other than `bison -y' will most likely break on most systems.])dnl
-- 
1.7.2




reply via email to

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