]> granicus.if.org Git - yasm/commitdiff
Move assert.h include to util.h
authorPeter Johnson <peter@tortall.net>
Mon, 3 Dec 2001 03:05:51 +0000 (03:05 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 3 Dec 2001 03:05:51 +0000 (03:05 -0000)
In util.h, define NDEBUG if not running lint.

svn path=/trunk/yasm/; revision=385

19 files changed:
frontends/yasm/yasm.c
libyasm/errwarn.c
libyasm/section.c
libyasm/symrec.c
libyasm/util.h
modules/arch/x86/expr.c
modules/arch/x86/x86expr.c
modules/parsers/nasm/bison.y.in
modules/parsers/nasm/nasm-bison.y
src/arch/x86/expr.c
src/arch/x86/x86expr.c
src/errwarn.c
src/main.c
src/parsers/nasm/bison.y.in
src/parsers/nasm/nasm-bison.y
src/section.c
src/symrec.c
src/util.h
util.h

index e4e3d7874fabadd92663737b377396360d228475..e78e1dfddabfc3b3f5f8a90884327b455a8a5d13 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "bitvect.h"
 #include "file.h"
 
index c0f44d4039bce88b030868b6c8352486b29eb12f..daf412cfd44f0953a223ddf1cbacecdf74d16b83 100644 (file)
@@ -26,7 +26,6 @@
 
 #ifdef STDC_HEADERS
 # include <stdarg.h>
-# include <assert.h>
 #endif
 
 #ifdef gettext_noop
index 07768922c1ac49a57ba3c086c63874d494a336d3..b791f9d9905a424647b114657abb647f8d193a62 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "globals.h"
 #include "errwarn.h"
 #include "expr.h"
index 867e8c4860afc4feacac6cb818e45ed657d59ac5..e88d5e7b3ced07d1299424ffd26a389a35c9b6f7 100644 (file)
@@ -23,7 +23,6 @@
 /*@unused@*/ RCSID("$IdPath$");
 
 #ifdef STDC_HEADERS
-# include <assert.h>
 # include <limits.h>
 #endif
 
index 70a634533f3b0299328802d538819aa715c98ea6..50b6a3108d8f8aba8d24cac53eebfcd25b49064e 100644 (file)
 
 #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)
index 36702c92114219e3764684805d7d53027dafc1d3..09b217672199a9ce5b5123def75f08ab2e3941b5 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "bitvect.h"
 
 #include "globals.h"
index 36702c92114219e3764684805d7d53027dafc1d3..09b217672199a9ce5b5123def75f08ab2e3941b5 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "bitvect.h"
 
 #include "globals.h"
index d235ee0be007b6bce931db9d20d52569ddbdd2b5..729a963334a86e4f8c25abf6fd1503c842dcd316 100644 (file)
@@ -24,7 +24,6 @@
 RCSID("$IdPath$");
 
 #ifdef STDC_HEADERS
-# include <assert.h>
 # include <math.h>
 #endif
 
index d235ee0be007b6bce931db9d20d52569ddbdd2b5..729a963334a86e4f8c25abf6fd1503c842dcd316 100644 (file)
@@ -24,7 +24,6 @@
 RCSID("$IdPath$");
 
 #ifdef STDC_HEADERS
-# include <assert.h>
 # include <math.h>
 #endif
 
index 36702c92114219e3764684805d7d53027dafc1d3..09b217672199a9ce5b5123def75f08ab2e3941b5 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "bitvect.h"
 
 #include "globals.h"
index 36702c92114219e3764684805d7d53027dafc1d3..09b217672199a9ce5b5123def75f08ab2e3941b5 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "bitvect.h"
 
 #include "globals.h"
index c0f44d4039bce88b030868b6c8352486b29eb12f..daf412cfd44f0953a223ddf1cbacecdf74d16b83 100644 (file)
@@ -26,7 +26,6 @@
 
 #ifdef STDC_HEADERS
 # include <stdarg.h>
-# include <assert.h>
 #endif
 
 #ifdef gettext_noop
index e4e3d7874fabadd92663737b377396360d228475..e78e1dfddabfc3b3f5f8a90884327b455a8a5d13 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "bitvect.h"
 #include "file.h"
 
index d235ee0be007b6bce931db9d20d52569ddbdd2b5..729a963334a86e4f8c25abf6fd1503c842dcd316 100644 (file)
@@ -24,7 +24,6 @@
 RCSID("$IdPath$");
 
 #ifdef STDC_HEADERS
-# include <assert.h>
 # include <math.h>
 #endif
 
index d235ee0be007b6bce931db9d20d52569ddbdd2b5..729a963334a86e4f8c25abf6fd1503c842dcd316 100644 (file)
@@ -24,7 +24,6 @@
 RCSID("$IdPath$");
 
 #ifdef STDC_HEADERS
-# include <assert.h>
 # include <math.h>
 #endif
 
index 07768922c1ac49a57ba3c086c63874d494a336d3..b791f9d9905a424647b114657abb647f8d193a62 100644 (file)
 #include "util.h"
 /*@unused@*/ RCSID("$IdPath$");
 
-#ifdef STDC_HEADERS
-# include <assert.h>
-#endif
-
 #include "globals.h"
 #include "errwarn.h"
 #include "expr.h"
index 867e8c4860afc4feacac6cb818e45ed657d59ac5..e88d5e7b3ced07d1299424ffd26a389a35c9b6f7 100644 (file)
@@ -23,7 +23,6 @@
 /*@unused@*/ RCSID("$IdPath$");
 
 #ifdef STDC_HEADERS
-# include <assert.h>
 # include <limits.h>
 #endif
 
index 70a634533f3b0299328802d538819aa715c98ea6..50b6a3108d8f8aba8d24cac53eebfcd25b49064e 100644 (file)
 
 #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)
diff --git a/util.h b/util.h
index 70a634533f3b0299328802d538819aa715c98ea6..50b6a3108d8f8aba8d24cac53eebfcd25b49064e 100644 (file)
--- a/util.h
+++ b/util.h
 
 #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)