Move stdbool.h
PATCH 1/1 Move stdbool.h
Move inclusion of stdbool.h to common header files, instead of including in an ad-hoc manner.
Signed-off-by Paul Brook <[email protected]>
--- block/blkdebug.c | 2 -- check-qjson.c | 1 - dyngen-exec.h | 1 + hw/9p.h | 2 -- hw/eepro100.c | 1 - hw/hw.h | 1 - hw/virtio-serial.h | 1 - hw/xenfb.c | 1 - json-parser.c | 1 - kvm.h | 1 - nbd.h | 1 - net.h | 1 - qemu-common.h | 1 + vnc-encoding-tight.c | 2 -- 14 files changed, 2 insertions(+), 15 deletions(-)
block/blkdebug.c +0 -2
@@ -26,8 +26,6 @@#include "block_int.h" #include "module.h" -#include <stdbool.h> - typedef struct BlkdebugVars { int state;
check-qjson.c +0 -1
@@ -9,7 +9,6 @@* */ #include <check.h> -#include <stdbool.h> #include "qstring.h" #include "qint.h"
dyngen-exec.h +1 -0
@@ -31,6 +31,7 @@host headers do not allow that. */ #include <stddef.h> #include <stdint.h> +#include <stdbool.h> #ifdef __OpenBSD__#include <sys/types.h>
hw/9p.h +0 -2
@@ -14,8 +14,6 @@ #ifndef QEMU_9P_H #define QEMU_9P_H -#include <stdbool.h> - typedef struct V9fsConf { /* tag name for the device */
hw/eepro100.c +0 -1
@@ -41,7 +41,6 @@* * Wake-on-LAN is not implemented. */ -#include <stdbool.h> /* bool */ #include <stddef.h> /* offsetof */ #include "hw.h" #include "pci.h"
hw/hw.h +0 -1
@@ -8,7 +8,6 @@#include "cpu-common.h" #endif -#include <stdbool.h> #include "ioport.h" #include "irq.h"
hw/virtio-serial.h +0 -1
@@ -15,7 +15,6 @@#ifndef _QEMU_VIRTIO_SERIAL_H#define _QEMU_VIRTIO_SERIAL_H -#include <stdbool.h> #include "qdev.h" #include "virtio.h"
hw/xenfb.c +0 -1
@@ -29,7 +29,6 @@#include <sys/types.h> #include <fcntl.h> #include <unistd.h> -#include <stdbool.h> #include <sys/mman.h> #include <errno.h> #include <stdio.h>
json-parser.c +0 -1
@@ -11,7 +11,6 @@* */ -#include <stdbool.h> #include <stdarg.h> #include "qemu-common.h"
kvm.h +0 -1
@@ -14,7 +14,6 @@#ifndef QEMU_KVM_H #define QEMU_KVM_H -#include <stdbool.h> #include <errno.h> #include "config-host.h" #include "qemu-queue.h"
nbd.h +0 -1
@@ -20,7 +20,6 @@#define NBD_H #include <sys/types.h> -#include <stdbool.h> #include <qemu-common.h> #include "block_int.h"
net.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_NET_H #define QEMU_NET_H -#include <stdbool.h> #include "qemu-queue.h" #include "qemu-common.h" #include "qdict.h"
qemu-common.h +1 -0
@@ -26,6 +26,7 @@ typedef struct QEMUBH QEMUBH;#include <stdlib.h> #include <stdio.h> #include <stdarg.h> +#include <stdbool.h> #include <string.h> #include <strings.h> #include <inttypes.h>
vnc-encoding-tight.c +0 -2
@@ -26,8 +26,6 @@* THE SOFTWARE. */ -#include <stdbool.h> -#include "qdict.h" #include "qint.h" #include "vnc.h"
Signature · 1 line
1.7.1