]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime: remove Emacs cruft
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 May 2022 16:35:45 +0000 (09:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 May 2022 16:36:03 +0000 (09:36 -0700)
* lib/parse-datetime.y: Remove an ‘ifdef emacs’.  Emacs has never
used this module.  The module is derived from code taken from
Emacs, but that code was removed from Emacs in the 1990s.

ChangeLog
lib/parse-datetime.y

index f4e24d4157da496762d537aa5376bf65fdc76d55..8cc17d8d146ff1c267049d5f4efe981411a31e7a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-05-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       parse-datetime: remove Emacs cruft
+       * lib/parse-datetime.y: Remove an ‘ifdef emacs’.  Emacs has never
+       used this module.  The module is derived from code taken from
+       Emacs, but that code was removed from Emacs in the 1990s.
+
 2022-05-11  Bruno Haible  <bruno@clisp.org>
 
        alloca: Remove old code for Emacs, unused since 2009.
index 9fc14c9d467524e20d2ef246447f9dbb007d55fd..7220d05dd7cbedb0ea9531bb1e2348a57620973d 100644 (file)
 #define YYMAXDEPTH 20
 #define YYINITDEPTH YYMAXDEPTH
 
-/* 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
-   problems if we try to write to a static variable, which I don't
-   think this code needs to do.  */
-#ifdef emacs
-# undef static
-#endif
-
 #include <inttypes.h>
 #include <c-ctype.h>
 #include <stdarg.h>