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.
This commit is contained in:
parent
da3897abf1
commit
6caf9be6ca
1 changed files with 1 additions and 9 deletions
|
@ -84,10 +84,7 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
|
|||
# undef DEBUG
|
||||
# define DEBUG true
|
||||
#else
|
||||
# define DEBUG false
|
||||
# ifndef NDEBUG
|
||||
# define NDEBUG /* disable assert */
|
||||
# endif
|
||||
# define DEBUG false
|
||||
#endif
|
||||
|
||||
#include <config.h>
|
||||
|
@ -131,11 +128,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
|
|||
#include <c-strcase.h>
|
||||
|
||||
#include <assert.h>
|
||||
#ifdef NDEBUG
|
||||
# undef assert /* some systems have a buggy assert.h */
|
||||
# define assert(x) ((void) 0)
|
||||
#endif
|
||||
|
||||
#include <getopt.h>
|
||||
#include <regex.h>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue