Skip to content

Commit

Permalink
Move stdbool.h
Browse files Browse the repository at this point in the history
Move inclusion of stdbool.h to common header files, instead of including
in an ad-hoc manner.

Signed-off-by: Paul Brook <paul@codesourcery.com>
  • Loading branch information
Paul Brook committed Jun 13, 2010
1 parent ea4e78e commit 1116582
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 15 deletions.
2 changes: 0 additions & 2 deletions block/blkdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include "block_int.h"
#include "module.h"

#include <stdbool.h>

typedef struct BlkdebugVars {
int state;

Expand Down
1 change: 0 additions & 1 deletion check-qjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/
#include <check.h>
#include <stdbool.h>

#include "qstring.h"
#include "qint.h"
Expand Down
1 change: 1 addition & 0 deletions dyngen-exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions hw/9p.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#ifndef QEMU_9P_H
#define QEMU_9P_H

#include <stdbool.h>

typedef struct V9fsConf
{
/* tag name for the device */
Expand Down
1 change: 0 additions & 1 deletion hw/eepro100.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
* * Wake-on-LAN is not implemented.
*/

#include <stdbool.h> /* bool */
#include <stddef.h> /* offsetof */
#include "hw.h"
#include "pci.h"
Expand Down
1 change: 0 additions & 1 deletion hw/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "cpu-common.h"
#endif

#include <stdbool.h>
#include "ioport.h"
#include "irq.h"

Expand Down
1 change: 0 additions & 1 deletion hw/virtio-serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#ifndef _QEMU_VIRTIO_SERIAL_H
#define _QEMU_VIRTIO_SERIAL_H

#include <stdbool.h>
#include "qdev.h"
#include "virtio.h"

Expand Down
1 change: 0 additions & 1 deletion hw/xenfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion json-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*
*/

#include <stdbool.h>
#include <stdarg.h>

#include "qemu-common.h"
Expand Down
1 change: 0 additions & 1 deletion kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion nbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define NBD_H

#include <sys/types.h>
#include <stdbool.h>

#include <qemu-common.h>
#include "block_int.h"
Expand Down
1 change: 0 additions & 1 deletion net.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions qemu-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions vnc-encoding-tight.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
* THE SOFTWARE.
*/

#include <stdbool.h>

#include "qdict.h"
#include "qint.h"
#include "vnc.h"
Expand Down

0 comments on commit 1116582

Please sign in to comment.