Consolidate bool type
Subsystems (13)
RFC PATCH v4 1/1 Consolidate bool type
'bool' is defined in random places. This patch consolidates them into a single header file include/linux/types.h, using stdbool.h introduced in C99.
All other #define, typedef and enum are removed. They are all consistent with true = 1, false = 0.
Signed-off-by York Sun <[email protected]>
---
Change since v1:
Move 'false' and 'true' to the common header file.
Change since v2:
Use stdbool.h
Consolidate all TRUE, FALSE, True, False, true, false
Change since v3:
Fix boolean_t which was missed in v2.
Need help to test on all ARCHs with differnt toolchains as well as USE_PRIVATE_LIBGCC.
arch/arm/cpu/arm926ejs/spear/spear600.c | 3 -- arch/blackfin/include/asm/posix_types.h | 3 -- arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c | 2 -- arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c | 7 ----- arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c | 7 ----- board/Marvell/db64360/mv_eth.h | 7 ----- board/Marvell/db64460/mv_eth.h | 7 ----- board/Marvell/include/core.h | 5 --- board/amcc/bamboo/bamboo.h | 3 -- board/amcc/yucca/yucca.c | 3 -- board/bf533-ezkit/flash-defines.h | 2 -- board/bf533-stamp/video.h | 3 -- board/esd/common/lcd.h | 5 --- board/esd/cpci750/mv_eth.h | 7 ----- board/esd/dasa_sim/cmd_dasa_sim.c | 4 --- board/evb64260/eth_addrtbl.c | 3 -- board/mpl/common/isa.c | 7 ----- board/mpl/mip405/mip405.c | 2 -- board/mpl/pip405/pip405.c | 3 -- board/prodrive/p3mx/mv_eth.h | 7 ----- board/sacsng/clkinit.h | 5 --- board/xilinx/common/xbasic_types.h | 8 ----- common/cmd_fdc.c | 7 ----- drivers/bios_emulator/atibios.c | 4 --- drivers/block/sata_dwc.h | 7 ----- drivers/mtd/nand/mxc_nand.c | 2 -- drivers/net/armada100_fec.h | 7 ----- drivers/net/e1000.c | 12 ++++---- drivers/net/e1000.h | 47 +++++++++++++---------------- drivers/net/e1000_spi.c | 22 +++++++------- drivers/net/ne2000_base.h | 4 --- drivers/net/npe/include/IxOsalTypes.h | 8 ----- drivers/rtc/ds1374.c | 13 ++------ drivers/usb/musb-new/linux-compat.h | 2 -- fs/ext4/ext4_common.h | 2 -- include/at91rm9200_net.h | 4 --- include/bedbug/ppc.h | 5 --- include/fpga.h | 8 ----- include/galileo/core.h | 5 --- include/linux/types.h | 5 +++ include/scsi.h | 8 ----- include/sym53c8xx.h | 7 ----- include/xyzModem.h | 8 ----- lib/bzlib_private.h | 3 -- lib/lzma/Types.h | 3 -- 45 files changed, 45 insertions(+), 251 deletions(-)
arch/arm/cpu/arm926ejs/spear/spear600.c +0 -3
@@ -28,9 +28,6 @@#include <asm/arch/spr_misc.h> #include <asm/arch/spr_defs.h> -#define FALSE 0 -#define TRUE (!FALSE) -static void sel_1v8 (void ) {struct misc_regs *misc_p = (struct misc_regs *)CONFIG_SPEAR_MISCBASE ;
arch/blackfin/include/asm/posix_types.h +0 -3
@@ -61,9 +61,6 @@ typedef unsigned int __kernel_gid32_t;typedef unsigned short __kernel_old_uid_t ;typedef unsigned short __kernel_old_gid_t ; -#define BOOL_WAS_DEFINED -typedef enum { false =0 , true =1 }bool ; -#ifdef __GNUC__typedef long long __kernel_loff_t ;#endif
arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c +0 -2
@@ -88,8 +88,6 @@ void spd_ddr_init_hang (void) __attribute__((weak, alias("__spd_ddr_init_hang"))#define NUMMEMTESTS 8#define NUMMEMWORDS 8#define MAXBXCR 4 -#define TRUE 1 -#define FALSE 0/* * This DDR2 setup code can dynamically setup the TLB entries for the DDR2 memory
arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c +0 -7
@@ -241,13 +241,6 @@ void board_add_ram_info(int use_default)/*-----------------------------------------------------------------------------+ * Defines *-----------------------------------------------------------------------------*/ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#define SDRAM_DDR1 1#define SDRAM_DDR2 2#define SDRAM_NONE 0
arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c +0 -7
@@ -53,13 +53,6 @@/*-----------------------------------------------------------------------------+ * Defines *-----------------------------------------------------------------------------*/ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#define MAXDIMMS 2#define MAXRANKS 2
board/Marvell/db64360/mv_eth.h +0 -7
@@ -46,13 +46,6 @@************************************************************************** ************************************************************************** *************************************************************************/ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */ #ifndef MAX_SKB_FRAGS #define MAX_SKB_FRAGS 0
board/Marvell/db64460/mv_eth.h +0 -7
@@ -47,13 +47,6 @@************************************************************************** ************************************************************************** *************************************************************************/ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */ #ifndef MAX_SKB_FRAGS #define MAX_SKB_FRAGS 0
board/Marvell/include/core.h +0 -5
@@ -91,11 +91,6 @@ extern unsigned int INTERNAL_REG_BASE_ADDR;#define _1G 0x40000000#define _2G 0x80000000 -#ifndef BOOL_WAS_DEFINED -#define BOOL_WAS_DEFINED -typedef enum _bool {false,true}bool ; -#endif -/* Little to Big endian conversion macros */ #ifdef LE /* Little Endian */
board/amcc/bamboo/bamboo.h +0 -3
@@ -250,9 +250,6 @@#define PVR_POWERPC_440EP_PASS1 0x42221850#define PVR_POWERPC_440EP_PASS2 0x422218D3 -#define TRUE 1 -#define FALSE 0 -#define GPIO0 0#define GPIO1 1
board/amcc/yucca/yucca.c +0 -3
@@ -47,9 +47,6 @@ void fpga_init (void); #define DEBUGF(fmt,args...)#endif -#define FALSE 0 -#define TRUE 1 -int board_early_init_f (void ) {/*----------------------------------------------------------------------------+
board/bf533-ezkit/flash-defines.h +0 -2
@@ -32,8 +32,6 @@#define V_ULONG (a) (*(volatile unsigned long *)( a ))#define V_BYTE (a) (*(volatile unsigned char *)( a )) -#define TRUE 0x1 -#define FALSE 0x0#define BUFFER_SIZE 0x80000#define NO_COMMAND 0#define GET_CODES 1
board/bf533-stamp/video.h +0 -3
@@ -9,9 +9,6 @@#define YELLOW (0xD292D210)/* yellow pixel pattern */ #define WHITE (0xFE80FE80)/* white pixel pattern */ -#define true 1 -#define false 0 - typedef struct { unsigned int sav; unsigned int eav;
board/esd/common/lcd.h +0 -5
@@ -35,11 +35,6 @@#define LOAD_LONG (data) SWAP_LONG(data)#define LOAD_SHORT (data) SWAP_SHORT(data) -#ifndef FALSE -#define FALSE 0 -#define TRUE (!FALSE) -#endif -#define S1D_WRITE_PALETTE (p,i,r,g,b) \ { \ out_8(&((uchar*)(p))[palette_index], (uchar)(i)); \
board/esd/cpci750/mv_eth.h +0 -7
@@ -47,13 +47,6 @@************************************************************************** ************************************************************************** *************************************************************************/ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */ #ifndef MAX_SKB_FRAGS #define MAX_SKB_FRAGS 0
board/esd/dasa_sim/cmd_dasa_sim.c +0 -4
@@ -30,10 +30,6 @@#define OK 0#define ERROR (-1) -#define TRUE 1 -#define FALSE 0 - -extern u_long pci9054_iobase;
board/evb64260/eth_addrtbl.c +0 -3
@@ -6,9 +6,6 @@#include "eth.h" #include "eth_addrtbl.h" -#define TRUE 1 -#define FALSE 0 -#define PRINTF printf#ifdef CONFIG_GT_USE_MAC_HASH_TABLE
board/mpl/common/isa.c +0 -7
@@ -41,13 +41,6 @@ #define PRINTF(fmt,args...)#endif -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#if defined(CONFIG_PIP405 )extern int drv_isa_kbd_init (void );
board/mpl/mip405/mip405.c +0 -2
@@ -77,8 +77,6 @@ DECLARE_GLOBAL_DATA_PTR;#undef SDRAM_DEBUG#define ENABLE_ECC /* for ecc boards */ -#define FALSE 0 -#define TRUE 1/* stdlib.h causes some compatibility problems; should fixe these! -- wd */ #ifndef __ldiv_t_defined
board/mpl/pip405/pip405.c +0 -3
@@ -36,9 +36,6 @@ DECLARE_GLOBAL_DATA_PTR;#undef SDRAM_DEBUG -#define FALSE 0 -#define TRUE 1 -/* stdlib.h causes some compatibility problems; should fixe these! -- wd */ #ifndef __ldiv_t_defined typedef struct {
board/prodrive/p3mx/mv_eth.h +0 -7
@@ -47,13 +47,6 @@************************************************************************** ************************************************************************** *************************************************************************/ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */ #ifndef MAX_SKB_FRAGS #define MAX_SKB_FRAGS 0
board/sacsng/clkinit.h +0 -5
@@ -22,11 +22,6 @@* MA 02111-1307 USA */ -#ifndef FALSE -#define FALSE 0 -#define TRUE (!FALSE) -#endif -#define SLRCLK_EN_MASK 0x00040000/* PA13 - SLRCLK_EN* */ #define MIN_SAMPLE_RATE 4000/* Minimum sample rate */
board/xilinx/common/xbasic_types.h +0 -8
@@ -68,14 +68,6 @@/***************************** Include Files *********************************/ /************************** Constant Definitions *****************************/ - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef NULL #define NULL 0#endif
common/cmd_fdc.c +0 -7
@@ -39,13 +39,6 @@ #define PRINTF(fmt,args...)#endif -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -/*#if defined(CONFIG_CMD_DATE) */ /*#include <rtc.h> */ /*#endif */
drivers/bios_emulator/atibios.c +0 -4
@@ -52,10 +52,6 @@/* Length of the BIOS image */ #define MAX_BIOSLEN (128 * 1024L) -/* Define some useful types and macros */ -#define true 1 -#define false 0 -/* Place to save PCI BAR's that we change and later restore */ static u32 saveROMBaseAddress;static u32 saveBaseAddress10;
drivers/block/sata_dwc.h +0 -7
@@ -467,11 +467,4 @@ struct ata_port { unsigned char *pdata; }; -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#endif
drivers/mtd/nand/mxc_nand.c +0 -2
@@ -29,8 +29,6 @@#define DRIVER_NAME "mxc_nand" -typedef enum {false, true}bool ; -struct mxc_nand_host {struct mtd_info mtd;struct nand_chip *nand;
drivers/net/armada100_fec.h +0 -7
@@ -29,13 +29,6 @@#ifndef __ARMADA100_FEC_H__#define __ARMADA100_FEC_H__ -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#define PORT_NUM 0x0/* RX & TX descriptor command */
drivers/net/e1000.c +6 -6
@@ -313,7 +313,7 @@ void e1000_standby_eeprom(struct e1000_hw *hw)* * hw - Struct containing variables accessed by shared code ****************************************************************************/ -static boolean_t e1000_is_onboard_nvm_eeprom (struct e1000_hw *hw) +static bool e1000_is_onboard_nvm_eeprom (struct e1000_hw *hw) {uint32_t eecd =0 ;
@@ -1098,7 +1098,7 @@ e1000_swfw_sync_acquire(struct e1000_hw *hw, uint16_t mask)return E1000_SUCCESS ; } -static boolean_t e1000_is_second_port (struct e1000_hw *hw) +static bool e1000_is_second_port (struct e1000_hw *hw) {switch (hw->mac_type) {case e1000_80003es2lan:
@@ -2118,7 +2118,7 @@ e1000_copper_link_preconfig(struct e1000_hw *hw)****************************************************************************/ static int32_t -e1000_set_d3_lplu_state (struct e1000_hw *hw,boolean_t active) +e1000_set_d3_lplu_state (struct e1000_hw *hw,bool active) {uint32_t phy_ctrl =0 ;int32_t ret_val;
@@ -2253,7 +2253,7 @@ e1000_set_d3_lplu_state(struct e1000_hw *hw, boolean_t active)****************************************************************************/ static int32_t -e1000_set_d0_lplu_state (struct e1000_hw *hw,boolean_t active) +e1000_set_d0_lplu_state (struct e1000_hw *hw,bool active) {uint32_t phy_ctrl =0 ;int32_t ret_val;
@@ -2497,7 +2497,7 @@ e1000_copper_link_igp_setup(struct e1000_hw *hw)* * returns - TRUE when the mode is IAMT or FALSE. ****************************************************************************/ -boolean_t +bool e1000_check_mng_mode (struct e1000_hw *hw) {uint32_t fwsm;
@@ -4569,7 +4569,7 @@ e1000_detect_gig_phy(struct e1000_hw *hw) {int32_t phy_init_status, ret_val;uint16_t phy_id_high, phy_id_low; -boolean_t match = FALSE; +bool match = FALSE;DEBUGFUNC ();
drivers/net/e1000.h +21 -26
66 lines not on this page · raw message
drivers/net/e1000_spi.c +11 -11
@@ -17,7 +17,7 @@* never return an error. */ static int e1000_spi_xfer (struct e1000_hw *hw,unsigned int bitlen, -const void *dout_mem,void *din_mem,boolean_t intr) +const void *dout_mem,void *din_mem,bool intr) {const uint8_t *dout = dout_mem;uint8_t *din = din_mem;
@@ -169,7 +169,7 @@ int spi_xfer(struct spi_slave *spi, unsigned int bitlen,#define SPI_EEPROM_STATUS_BUSY 0x01#define SPI_EEPROM_STATUS_WREN 0x02 -static int e1000_spi_eeprom_enable_wr (struct e1000_hw *hw,boolean_t intr) +static int e1000_spi_eeprom_enable_wr (struct e1000_hw *hw,bool intr) {u8 op[] = {SPI_EEPROM_ENABLE_WR };e1000_standby_eeprom (hw);
@@ -181,7 +181,7 @@ static int e1000_spi_eeprom_enable_wr(struct e1000_hw *hw, boolean_t intr)* of the EEPROM commands at this time. */ #if 0 -static int e1000_spi_eeprom_disable_wr (struct e1000_hw *hw,boolean_t intr) +static int e1000_spi_eeprom_disable_wr (struct e1000_hw *hw,bool intr) {u8 op[] = {SPI_EEPROM_DISABLE_WR };e1000_standby_eeprom (hw);
@@ -189,7 +189,7 @@ static int e1000_spi_eeprom_disable_wr(struct e1000_hw *hw, boolean_t intr) }static int e1000_spi_eeprom_write_status (struct e1000_hw *hw, -u8 status,boolean_t intr) +u8 status,bool intr) {u8 op[] = {SPI_EEPROM_WRITE_STATUS , status };e1000_standby_eeprom (hw);
@@ -197,7 +197,7 @@ static int e1000_spi_eeprom_write_status(struct e1000_hw *hw, }#endif -static int e1000_spi_eeprom_read_status (struct e1000_hw *hw,boolean_t intr) +static int e1000_spi_eeprom_read_status (struct e1000_hw *hw,bool intr) {u8 op[] = {SPI_EEPROM_READ_STATUS ,0 };e1000_standby_eeprom (hw);
@@ -207,7 +207,7 @@ static int e1000_spi_eeprom_read_status(struct e1000_hw *hw, boolean_t intr) }static int e1000_spi_eeprom_write_page (struct e1000_hw *hw, -const void *data,u16 off,u16 len,boolean_t intr) +const void *data,u16 off,u16 len,bool intr) {u8 op[] = {SPI_EEPROM_WRITE_PAGE ,
@@ -225,7 +225,7 @@ static int e1000_spi_eeprom_write_page(struct e1000_hw *hw, }static int e1000_spi_eeprom_read_page (struct e1000_hw *hw, -void *data,u16 off,u16 len,boolean_t intr) +void *data,u16 off,u16 len,bool intr) {u8 op[] = {SPI_EEPROM_READ_PAGE ,
@@ -242,7 +242,7 @@ static int e1000_spi_eeprom_read_page(struct e1000_hw *hw,return 0 ; } -static int e1000_spi_eeprom_poll_ready (struct e1000_hw *hw,boolean_t intr) +static int e1000_spi_eeprom_poll_ready (struct e1000_hw *hw,bool intr) {int status;while ((status =e1000_spi_eeprom_read_status (hw, intr)) >=0 ) {
@@ -253,7 +253,7 @@ static int e1000_spi_eeprom_poll_ready(struct e1000_hw *hw, boolean_t intr) }static int e1000_spi_eeprom_dump (struct e1000_hw *hw, -void *data,u16 off,unsigned int len,boolean_t intr) +void *data,u16 off,unsigned int len,bool intr) {/* Interruptibly wait for the EEPROM to be ready */ if (e1000_spi_eeprom_poll_ready (hw, intr))
@@ -282,7 +282,7 @@ static int e1000_spi_eeprom_dump(struct e1000_hw *hw, }static int e1000_spi_eeprom_program (struct e1000_hw *hw, -const void *data,u16 off,u16 len,boolean_t intr) +const void *data,u16 off,u16 len,bool intr) {/* Program each page in sequence */ while (len) {
@@ -472,7 +472,7 @@ static int do_e1000_spi_checksum(cmd_tbl_t *cmdtp, struct e1000_hw *hw, {uint16_t i, length, checksum =0 , checksum_reg;uint16_t *buffer; -boolean_t upd; +bool upd;if (argc ==0 ) upd =0 ;
drivers/net/ne2000_base.h +0 -4
@@ -79,10 +79,6 @@ are GPL, so this is, of course, GPL.#ifndef __NE2000_BASE_H__#define __NE2000_BASE_H__ -#define bool int -#define false 0 -#define true 1 -/* * Debugging details *
drivers/net/npe/include/IxOsalTypes.h +0 -8
@@ -107,18 +107,10 @@ typedef volatile INT32 VINT32;*/ #define IX_OSAL_BILLION (1000000000) -#ifndef TRUE -#define TRUE 1L -#endif -#if TRUE !=1 #error TRUE is not defined to 1#endif -#ifndef FALSE -#define FALSE 0L -#endif -#if FALSE !=0 #error FALSE is not defined to 0#endif
drivers/rtc/ds1374.c +2 -11
@@ -84,15 +84,6 @@#define RTC_SR_BIT_AF 0x01/* Bit 0 = Alarm Flag */ #define RTC_SR_BIT_OSF 0x80/* Bit 7 - Osc Stop Flag */ -typedef unsigned char boolean_t ; - -#ifndef TRUE -#define TRUE ((boolean_t)(0==0)) -#endif -#ifndef FALSE -#define FALSE (!TRUE) -#endif -const char RtcTodAddr[] = {RTC_TOD_CNT_BYTE0_ADDR ,RTC_TOD_CNT_BYTE1_ADDR ,
@@ -101,7 +92,7 @@ const char RtcTodAddr[] = { };static uchar rtc_read (uchar reg); -static void rtc_write (uchar reg,uchar val,boolean_t set); +static void rtc_write (uchar reg,uchar val,bool set);static void rtc_write_raw (uchar reg,uchar val);/*
@@ -242,7 +233,7 @@ static uchar rtc_read (uchar reg)return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR , reg)); } -static void rtc_write (uchar reg,uchar val,boolean_t set) +static void rtc_write (uchar reg,uchar val,bool set) {if (set == TRUE) { val |=i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR , reg);
drivers/usb/musb-new/linux-compat.h +0 -2
@@ -12,8 +12,6 @@#define __iomem#define __deprecated -typedef enum { false =0 , true =1 }bool ; -struct unused {};typedef struct unused unused_t ;
fs/ext4/ext4_common.h +0 -2
@@ -44,8 +44,6 @@#define YES 1#define NO 0 -#define TRUE 1 -#define FALSE 0#define RECOVER 1#define SCAN 0
include/at91rm9200_net.h +0 -4
@@ -23,10 +23,6 @@#include <asm/io.h> #include <asm/arch/hardware.h> -#define FALSE 0 -#define TRUE 1 - -#define ETHERNET_ADDRESS_SIZE 6typedef unsigned char UCHAR ;
include/bedbug/ppc.h +0 -5
@@ -296,11 +296,6 @@ struct operand { ((rc) & 0x1))#define MDS_MASK MDS_OPCODE(0x3f,0xf,0x1) -#ifndef FALSE -#define FALSE 0 -#define TRUE (!FALSE) -#endif -#define INSTRUCTION ( memaddr ) ntohl(*(unsigned long *)(memaddr))#define MAX_OPERANDS 8
include/fpga.h +0 -8
@@ -31,14 +31,6 @@#define CONFIG_MAX_FPGA_DEVICES 5#endif -/* these probably belong somewhere else */ -#ifndef FALSE -#define FALSE (0) -#endif -#ifndef TRUE -#define TRUE (!FALSE) -#endif -/* CONFIG_FPGA bit assignments */ #define CONFIG_SYS_FPGA_MAN (x) (x)#define CONFIG_SYS_FPGA_DEV (x) ((x) << 8 )
include/galileo/core.h +0 -5
@@ -110,11 +110,6 @@ extern unsigned int INTERNAL_REG_BASE_ADDR;#define _1G 0x40000000#define _2G 0x80000000 -#ifndef BOOL_WAS_DEFINED -#define BOOL_WAS_DEFINED -typedef enum _bool {false,true}bool ; -#endif -/* Little to Big endian conversion macros */ #ifdef LE /* Little Endian */
include/linux/types.h +5 -0
@@ -7,6 +7,11 @@#include <linux/posix_types.h> #include <asm/types.h> +#include <stdbool.h> +#define TRUE true +#define FALSE false +#define True true +#define False false#ifndef __KERNEL_STRICT_NAMES
include/scsi.h +0 -8
@@ -204,12 +204,4 @@ int scsi_get_disk_count(void);#define SCSI_INT_STATE 0x00010000/* unknown Interrupt number is stored in 16 LSB */ - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#endif /* _SCSI_H */
include/sym53c8xx.h +0 -7
@@ -568,11 +568,4 @@#define SCSI_IDENTIFY 0xC0 -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#endif
include/xyzModem.h +0 -8
@@ -97,14 +97,6 @@ typedef struct { #endif } connection_info_t; -#ifndef BOOL_WAS_DEFINED -#define BOOL_WAS_DEFINED -typedef unsigned int bool ; -#endif - -#define false 0 -#define true 1 -#endif
lib/bzlib_private.h +0 -3
@@ -89,9 +89,6 @@ typedef unsigned int UInt32;typedef short Int16 ;typedef unsigned short UInt16 ; -#define True ((Bool)1) -#define False ((Bool)0) -#ifndef __GNUC__#define __inline__/* */ #endif
lib/lzma/Types.h +0 -3
@@ -81,9 +81,6 @@ typedef size_t SizeT;#endif typedef int Bool ; -#define True 1 -#define False 0 -#ifdef _MSC_VER
Signature · 1 line
1.7.9.5