Move assert.h include to util.h

In util.h, define NDEBUG if not running lint.

svn path=/trunk/yasm/; revision=385
This commit is contained in:
Peter Johnson 2001-12-03 03:05:51 +00:00
parent e8d7d5cad9
commit b3cb8c0292
19 changed files with 15 additions and 40 deletions

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "bitvect.h"
#include "file.h"

View file

@ -26,7 +26,6 @@
#ifdef STDC_HEADERS
# include <stdarg.h>
# include <assert.h>
#endif
#ifdef gettext_noop

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "globals.h"
#include "errwarn.h"
#include "expr.h"

View file

@ -23,7 +23,6 @@
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
# include <limits.h>
#endif

View file

@ -30,10 +30,15 @@
#include <stdio.h>
#if !defined(lint)
# define NDEBUG
#endif
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# include <string.h>
# include <assert.h>
#endif
#if defined(lint)

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "bitvect.h"
#include "globals.h"

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "bitvect.h"
#include "globals.h"

View file

@ -24,7 +24,6 @@
RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
# include <math.h>
#endif

View file

@ -24,7 +24,6 @@
RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
# include <math.h>
#endif

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "bitvect.h"
#include "globals.h"

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "bitvect.h"
#include "globals.h"

View file

@ -26,7 +26,6 @@
#ifdef STDC_HEADERS
# include <stdarg.h>
# include <assert.h>
#endif
#ifdef gettext_noop

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "bitvect.h"
#include "file.h"

View file

@ -24,7 +24,6 @@
RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
# include <math.h>
#endif

View file

@ -24,7 +24,6 @@
RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
# include <math.h>
#endif

View file

@ -22,10 +22,6 @@
#include "util.h"
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
#endif
#include "globals.h"
#include "errwarn.h"
#include "expr.h"

View file

@ -23,7 +23,6 @@
/*@unused@*/ RCSID("$IdPath$");
#ifdef STDC_HEADERS
# include <assert.h>
# include <limits.h>
#endif

View file

@ -30,10 +30,15 @@
#include <stdio.h>
#if !defined(lint)
# define NDEBUG
#endif
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# include <string.h>
# include <assert.h>
#endif
#if defined(lint)

5
util.h
View file

@ -30,10 +30,15 @@
#include <stdio.h>
#if !defined(lint)
# define NDEBUG
#endif
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# include <string.h>
# include <assert.h>
#endif
#if defined(lint)