aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2019-05-03 12:38:28 -0700
committerPaul Eggert2019-05-03 12:39:03 -0700
commit6caf9be6cacad2da36f2a1303304df588325d38b (patch)
tree69c8301baccb845347af93de72014082223d9d74 /lib-src
parentda3897abf1e45741b122b52df37a5cbc68b2ad5d (diff)
downloademacs-6caf9be6cacad2da36f2a1303304df588325d38b.tar.gz
emacs-6caf9be6cacad2da36f2a1303304df588325d38b.zip
Simplify use of NDEBUG in etags.c
* lib-src/etags.c [!DEBUG]: Do not define NDEBUG, as that’s conf_post.h’s job now. [NDEBUG]: Do not redefine ‘assert’, as that works around ancient bugs (e.g., sunos4 pcc) that don’t matter any more, as can be seen that other Emacs source files that successfully use assert.h without this workaround.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 362897fb0c3..949ab5a2c6b 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -84,10 +84,7 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
84# undef DEBUG 84# undef DEBUG
85# define DEBUG true 85# define DEBUG true
86#else 86#else
87# define DEBUG false 87# define DEBUG false
88# ifndef NDEBUG
89# define NDEBUG /* disable assert */
90# endif
91#endif 88#endif
92 89
93#include <config.h> 90#include <config.h>
@@ -131,11 +128,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
131#include <c-strcase.h> 128#include <c-strcase.h>
132 129
133#include <assert.h> 130#include <assert.h>
134#ifdef NDEBUG
135# undef assert /* some systems have a buggy assert.h */
136# define assert(x) ((void) 0)
137#endif
138
139#include <getopt.h> 131#include <getopt.h>
140#include <regex.h> 132#include <regex.h>
141 133