summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-05-11 09:35:45 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-05-11 09:36:03 -0700
commit44092ee9761177660d57237d3334a645e1fab3c1 (patch)
tree8469493dccda3fe627d1846863e1c2eb1858339e
parent343f300f5f29c7d9f45b5247f89e353f0aa5e2d5 (diff)
downloadgnulib-44092ee9761177660d57237d3334a645e1fab3c1.tar.gz
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.
-rw-r--r--ChangeLog7
-rw-r--r--lib/parse-datetime.y10
2 files changed, 7 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index f4e24d4157..8cc17d8d14 100644
--- 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.
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y
index 9fc14c9d46..7220d05dd7 100644
--- a/lib/parse-datetime.y
+++ b/lib/parse-datetime.y
@@ -52,16 +52,6 @@
#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>