mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
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:
parent
e8d7d5cad9
commit
b3cb8c0292
19 changed files with 15 additions and 40 deletions
|
|
@ -22,10 +22,6 @@
|
|||
#include "util.h"
|
||||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "bitvect.h"
|
||||
#include "file.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdarg.h>
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#ifdef gettext_noop
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <limits.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
#include "util.h"
|
||||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "bitvect.h"
|
||||
|
||||
#include "globals.h"
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
#include "util.h"
|
||||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "bitvect.h"
|
||||
|
||||
#include "globals.h"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
#include "util.h"
|
||||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "bitvect.h"
|
||||
|
||||
#include "globals.h"
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
#include "util.h"
|
||||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "bitvect.h"
|
||||
|
||||
#include "globals.h"
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdarg.h>
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#ifdef gettext_noop
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
#include "util.h"
|
||||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "bitvect.h"
|
||||
#include "file.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
/*@unused@*/ RCSID("$IdPath$");
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <limits.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -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
5
util.h
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue