Skip to content

Commit

Permalink
Include assert.h from qemu-common.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Paul Brook committed May 13, 2009
1 parent 6c7f4b4 commit 5561650
Show file tree
Hide file tree
Showing 28 changed files with 1 addition and 28 deletions.
2 changes: 0 additions & 2 deletions aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#define NDEBUG
#endif

#include <assert.h>

typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
Expand Down
1 change: 0 additions & 1 deletion block-qcow2.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "block_int.h"
#include <zlib.h>
#include "aes.h"
#include <assert.h>

/*
Differences with QCOW:
Expand Down
1 change: 0 additions & 1 deletion block-raw-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion block-raw-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
1 change: 0 additions & 1 deletion block-vvfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
#include <sys/stat.h>
#include <dirent.h>
#include <assert.h>
#include "qemu-common.h"
#include "block_int.h"

Expand Down
1 change: 0 additions & 1 deletion cutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion hw/adlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* THE SOFTWARE.
*/

#include <assert.h>
#include "hw.h"
#include "audiodev.h"
#include "audio/audio.h"
Expand Down
1 change: 0 additions & 1 deletion hw/baum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion hw/eepro100.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# warning "PXE boot still not working!"
#endif

#include <assert.h>
#include <stddef.h> /* offsetof */
#include "hw.h"
#include "pci.h"
Expand Down
1 change: 0 additions & 1 deletion hw/eeprom93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* - No emulation of EEPROM timings.
*/

#include <assert.h>
#include "hw.h"
#include "eeprom93xx.h"

Expand Down
1 change: 0 additions & 1 deletion hw/sh7750.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* THE SOFTWARE.
*/
#include <stdio.h>
#include <assert.h>
#include "hw.h"
#include "sh.h"
#include "sysemu.h"
Expand Down
1 change: 0 additions & 1 deletion hw/sh_intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* This code is licenced under the GPL.
*/

#include <assert.h>
#include "sh_intc.h"
#include "hw.h"
#include "sh.h"
Expand Down
1 change: 0 additions & 1 deletion hw/sh_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "hw.h"
#include "sh.h"
#include "qemu-char.h"
#include <assert.h>

//#define DEBUG_SERIAL

Expand Down
1 change: 0 additions & 1 deletion hw/sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

#include <stdio.h>
#include <assert.h>
#include "hw.h"
#include "pc.h"
#include "console.h"
Expand Down
1 change: 0 additions & 1 deletion hw/tc58128.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <assert.h>
#include "hw.h"
#include "sh.h"
#include "sysemu.h"
Expand Down
1 change: 1 addition & 0 deletions qemu-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <assert.h>
#include "config-host.h"

#ifndef O_LARGEFILE
Expand Down
1 change: 0 additions & 1 deletion qemu-img.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "qemu-common.h"
#include "osdep.h"
#include "block_int.h"
#include <assert.h>
#include <stdio.h>

#ifdef _WIN32
Expand Down
1 change: 0 additions & 1 deletion target-cris/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion target-cris/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion target-i386/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion target-i386/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion target-m68k/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <assert.h>

#include "config.h"
#include "cpu.h"
Expand Down
1 change: 0 additions & 1 deletion target-mips/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion target-ppc/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion target-sh4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion target-sh4/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <assert.h>

#define DEBUG_DISAS
#define SH4_DEBUG_DISAS
Expand Down
1 change: 0 additions & 1 deletion target-sparc/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <assert.h>

#include "cpu.h"
#include "exec-all.h"
Expand Down
1 change: 0 additions & 1 deletion tcg/tcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define NDEBUG
#endif

#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
Expand Down

0 comments on commit 5561650

Please sign in to comment.