Include assert.h from qemu-common.h
authorPaul Brook <paul@codesourcery.com>
Wed, 13 May 2009 19:51:49 +0000 (20:51 +0100)
committerPaul Brook <paul@codesourcery.com>
Wed, 13 May 2009 19:54:26 +0000 (20:54 +0100)
Include assert.h from qemu-common.h and remove other direct uses.
cpu-all.h still need to include it because of the dyngen-exec.h hacks

Signed-off-by: Paul Brook <paul@codesourcery.com>

28 files changed:
aes.c
block-qcow2.c
block-raw-posix.c
block-raw-win32.c
block-vvfat.c
cutils.c
hw/adlib.c
hw/baum.c
hw/eepro100.c
hw/eeprom93xx.c
hw/sh7750.c
hw/sh_intc.c
hw/sh_serial.c
hw/sm501.c
hw/tc58128.c
qemu-common.h
qemu-img.c
target-cris/op_helper.c
target-cris/translate.c
target-i386/helper.c
target-i386/translate.c
target-m68k/translate.c
target-mips/helper.c
target-ppc/helper.c
target-sh4/helper.c
target-sh4/translate.c
target-sparc/helper.c
tcg/tcg.c

diff --git a/aes.c b/aes.c
index 7e84f46..eb37adb 100644 (file)
--- a/aes.c
+++ b/aes.c
@@ -34,8 +34,6 @@
 #define NDEBUG
 #endif
 
-#include <assert.h>
-
 typedef uint32_t u32;
 typedef uint16_t u16;
 typedef uint8_t u8;
index 9a49777..2ad0725 100644 (file)
@@ -25,7 +25,6 @@
 #include "block_int.h"
 #include <zlib.h>
 #include "aes.h"
-#include <assert.h>
 
 /*
   Differences with QCOW:
index bcb3e01..406ec7d 100644 (file)
@@ -25,7 +25,6 @@
 #include "qemu-timer.h"
 #include "qemu-char.h"
 #include "block_int.h"
-#include <assert.h>
 #ifdef CONFIG_AIO
 #include "posix-aio-compat.h"
 #endif
index b5287d2..a998166 100644 (file)
@@ -24,7 +24,6 @@
 #include "qemu-common.h"
 #include "qemu-timer.h"
 #include "block_int.h"
-#include <assert.h>
 #include <windows.h>
 #include <winioctl.h>
 
index 7905931..0f0760f 100644 (file)
@@ -24,7 +24,6 @@
  */
 #include <sys/stat.h>
 #include <dirent.h>
-#include <assert.h>
 #include "qemu-common.h"
 #include "block_int.h"
 
index a1652ab..0623cf7 100644 (file)
--- a/cutils.c
+++ b/cutils.c
@@ -23,7 +23,6 @@
  */
 #include "qemu-common.h"
 #include "host-utils.h"
-#include <assert.h>
 
 void pstrcpy(char *buf, int buf_size, const char *str)
 {
index 076c1a0..8c23319 100644 (file)
@@ -22,7 +22,6 @@
  * THE SOFTWARE.
  */
 
-#include <assert.h>
 #include "hw.h"
 #include "audiodev.h"
 #include "audio/audio.h"
index 7dac684..f6d6e67 100644 (file)
--- a/hw/baum.c
+++ b/hw/baum.c
@@ -26,7 +26,6 @@
 #include "qemu-timer.h"
 #include "usb.h"
 #include "baum.h"
-#include <assert.h>
 #include <brlapi.h>
 #include <brlapi_constants.h>
 #include <brlapi_keycodes.h>
index 7dbbca0..8543481 100644 (file)
@@ -38,7 +38,6 @@
 # warning "PXE boot still not working!"
 #endif
 
-#include <assert.h>
 #include <stddef.h>             /* offsetof */
 #include "hw.h"
 #include "pci.h"
index e4b6b13..f91b0c9 100644 (file)
@@ -36,7 +36,6 @@
  * - No emulation of EEPROM timings.
  */
 
-#include <assert.h>
 #include "hw.h"
 #include "eeprom93xx.h"
 
index 423c43f..f079781 100644 (file)
@@ -23,7 +23,6 @@
  * THE SOFTWARE.
  */
 #include <stdio.h>
-#include <assert.h>
 #include "hw.h"
 #include "sh.h"
 #include "sysemu.h"
index f4138fd..b75d794 100644 (file)
@@ -8,7 +8,6 @@
  * This code is licenced under the GPL.
  */
 
-#include <assert.h>
 #include "sh_intc.h"
 #include "hw.h"
 #include "sh.h"
index 4957c41..ee0c52c 100644 (file)
@@ -27,7 +27,6 @@
 #include "hw.h"
 #include "sh.h"
 #include "qemu-char.h"
-#include <assert.h>
 
 //#define DEBUG_SERIAL
 
index 316aba2..4b0df8f 100644 (file)
@@ -23,7 +23,6 @@
  */
 
 #include <stdio.h>
-#include <assert.h>
 #include "hw.h"
 #include "pc.h"
 #include "console.h"
index 2f1b305..21e8085 100644 (file)
@@ -1,4 +1,3 @@
-#include <assert.h>
 #include "hw.h"
 #include "sh.h"
 #include "sysemu.h"
index b2e2829..ee4a672 100644 (file)
@@ -23,6 +23,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <assert.h>
 #include "config-host.h"
 
 #ifndef O_LARGEFILE
index 29149a2..32c5b42 100644 (file)
@@ -24,7 +24,6 @@
 #include "qemu-common.h"
 #include "osdep.h"
 #include "block_int.h"
-#include <assert.h>
 #include <stdio.h>
 
 #ifdef _WIN32
index 2e280f3..edfaf41 100644 (file)
@@ -19,7 +19,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
  */
 
-#include <assert.h>
 #include "exec.h"
 #include "mmu.h"
 #include "helper.h"
index b3d0a19..6a44281 100644 (file)
@@ -29,7 +29,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index 5c03e3a..7fc5366 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <inttypes.h>
 #include <signal.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index 3933697..d45e9fe 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <inttypes.h>
 #include <signal.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index f9b36c9..422f0a4 100644 (file)
@@ -23,7 +23,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <assert.h>
 
 #include "config.h"
 #include "cpu.h"
index 35b2c59..fecbcb2 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <inttypes.h>
 #include <signal.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index db765e3..5a7a935 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <inttypes.h>
 #include <signal.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index d8e08e3..94be136 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <inttypes.h>
 #include <signal.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index fc3633a..1f461b7 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <assert.h>
 
 #define DEBUG_DISAS
 #define SH4_DEBUG_DISAS
index 8ad82a9..2f41418 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <inttypes.h>
 #include <signal.h>
-#include <assert.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index a75d8dc..299bff6 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -32,7 +32,6 @@
 #define NDEBUG
 #endif
 
-#include <assert.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>