From 464b2f68962f7dc7bbd072e2e8e02bbcbc3601a5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 5 Oct 2010 13:51:12 -0700 Subject: [PATCH] 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. --- 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 4345d5e86..e3b474963 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-10-05 Paul Eggert + 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 496709cc3..b0a8340bb 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 -@code{get_date} was originally implemented by Steven M. Bellovin +@code{parse_datetime} 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 f22c754e0..bc46e1c85 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 bd8225dd5..f4a97c3c5 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 -- 2.11.0