bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

assert usage


From: SHEN Feng
Subject: assert usage
Date: Wed, 7 May 2003 16:12:24 +0800

 Hi,
    In sysdeps/generic/wordexp.c
 
I think that the NDEBUG should be defined. Otherwise assert will be used in the libaray. This is not good.
 
/* Undefine the following line for the production version.  */
/* #define NDEBUG 1 */
#include <assert.h>
 
/* Get some device information.  */
#include <device-nrs.h>
 
/*
 * This is a recursive-descent-style word expansion routine.
 */
 
/* These variables are defined and initialized in the startup code.  */
extern int __libc_argc attribute_hidden;
extern char **__libc_argv attribute_hidden;
 
B.R.
                  SHEN Feng

reply via email to

[Prev in Thread] Current Thread [Next in Thread]