Skip to content

Commit

Permalink
avoid using stdbool.h to support compilers without C99 support
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed May 15, 2014
1 parent e2d9416 commit c5cad6c
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion MCInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define CS_MCINST_H

#include <stdint.h>
#include <stdbool.h>

#include "include/capstone.h"

Expand Down
2 changes: 1 addition & 1 deletion MCInstrDesc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#ifndef CS_LLVM_MC_MCINSTRDESC_H
#define CS_LLVM_MC_MCINSTRDESC_H

#include <stdbool.h>
#include <stdint.h>
#include "include/platform.h"

//===----------------------------------------------------------------------===//
// Machine Operand Flags and Description
Expand Down
2 changes: 1 addition & 1 deletion MCRegisterInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#ifndef CS_LLVM_MC_MCREGISTERINFO_H
#define CS_LLVM_MC_MCREGISTERINFO_H

#include <stdbool.h>
#include <stdint.h>
#include "include/platform.h"

/// An unsigned integer type large enough to represent all physical registers,
/// but not necessarily virtual registers.
Expand Down
1 change: 0 additions & 1 deletion arch/AArch64/AArch64BaseInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <ctype.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>

/// Instances of this class can perform bidirectional mapping from random
Expand Down
3 changes: 1 addition & 2 deletions arch/ARM/ARMAddressingModes.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
#ifndef CS_LLVM_TARGET_ARM_ARMADDRESSINGMODES_H
#define CS_LLVM_TARGET_ARM_ARMADDRESSINGMODES_H

#include <stdbool.h>

#include "../../include/platform.h"
#include "../../MathExtras.h"

/// ARM_AM - ARM Addressing Mode Stuff
Expand Down
1 change: 0 additions & 1 deletion arch/ARM/ARMInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifdef CAPSTONE_HAS_ARM

#include <stdio.h> // DEBUG
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
Expand Down
2 changes: 0 additions & 2 deletions arch/Mips/MipsDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <stdio.h>
#include <string.h>

#include <stdbool.h>

#include <inttypes.h>

#include "../../utils.h"
Expand Down
1 change: 0 additions & 1 deletion arch/Sparc/SparcGenDisassemblerTables.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh <[email protected]>, 2013-2014 */

#include <stdbool.h>
#include "../../MCInst.h"
#include "../../LEB128.h"

Expand Down
1 change: 0 additions & 1 deletion arch/X86/X86Disassembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
#define CS_X86_DISASSEMBLER_H

#include <stdint.h>
#include <stdbool.h>

#include "../../include/capstone.h"

Expand Down
1 change: 0 additions & 1 deletion arch/X86/X86IntelInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <ctype.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit c5cad6c

Please sign in to comment.