From 30e2df697af65d82c24e4fd6e23a4c7b9666a814 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 21 Aug 2008 04:10:35 +0000 Subject: Include stdbool.h. Use bool as base-type for boolean. --- cpukit/score/cpu/arm/rtems/score/types.h | 3 ++- cpukit/score/cpu/avr/rtems/score/types.h | 3 ++- cpukit/score/cpu/bfin/rtems/score/types.h | 3 ++- cpukit/score/cpu/c4x/rtems/score/types.h | 3 ++- cpukit/score/cpu/h8300/rtems/score/types.h | 3 ++- cpukit/score/cpu/i386/rtems/score/types.h | 3 ++- cpukit/score/cpu/m68k/rtems/score/types.h | 3 ++- cpukit/score/cpu/mips/rtems/score/types.h | 3 ++- cpukit/score/cpu/nios2/rtems/score/types.h | 3 ++- cpukit/score/cpu/no_cpu/rtems/score/types.h | 3 ++- cpukit/score/cpu/powerpc/rtems/score/types.h | 3 ++- cpukit/score/cpu/sh/rtems/score/types.h | 3 ++- cpukit/score/cpu/sparc/rtems/score/types.h | 3 ++- cpukit/score/cpu/unix/rtems/score/types.h | 3 ++- 14 files changed, 28 insertions(+), 14 deletions(-) (limited to 'cpukit') diff --git a/cpukit/score/cpu/arm/rtems/score/types.h b/cpukit/score/cpu/arm/rtems/score/types.h index 43b5eb7c4b..d137153cfb 100644 --- a/cpukit/score/cpu/arm/rtems/score/types.h +++ b/cpukit/score/cpu/arm/rtems/score/types.h @@ -22,6 +22,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -32,7 +33,7 @@ extern "C" { * This section defines the basic types for this processor. */ -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef uint16_t Priority_Bit_map_control; typedef float single_precision; /* single precision float */ diff --git a/cpukit/score/cpu/avr/rtems/score/types.h b/cpukit/score/cpu/avr/rtems/score/types.h index 470c030e25..5a242b01d6 100644 --- a/cpukit/score/cpu/avr/rtems/score/types.h +++ b/cpukit/score/cpu/avr/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/bfin/rtems/score/types.h b/cpukit/score/cpu/bfin/rtems/score/types.h index ed4033f177..57f5a255ec 100644 --- a/cpukit/score/cpu/bfin/rtems/score/types.h +++ b/cpukit/score/cpu/bfin/rtems/score/types.h @@ -17,6 +17,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -31,7 +32,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; /** This defines the type for a Boolean value, */ -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ /** This defines the type for a single precision float. */ typedef float single_precision; diff --git a/cpukit/score/cpu/c4x/rtems/score/types.h b/cpukit/score/cpu/c4x/rtems/score/types.h index 6ff4362d5e..dbb76d6361 100644 --- a/cpukit/score/cpu/c4x/rtems/score/types.h +++ b/cpukit/score/cpu/c4x/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint_least16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/h8300/rtems/score/types.h b/cpukit/score/cpu/h8300/rtems/score/types.h index c0556ef3f4..9299f1860d 100644 --- a/cpukit/score/cpu/h8300/rtems/score/types.h +++ b/cpukit/score/cpu/h8300/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/i386/rtems/score/types.h b/cpukit/score/cpu/i386/rtems/score/types.h index 6652fc1d4c..663d98f93d 100644 --- a/cpukit/score/cpu/i386/rtems/score/types.h +++ b/cpukit/score/cpu/i386/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/m68k/rtems/score/types.h b/cpukit/score/cpu/m68k/rtems/score/types.h index b79ccac47a..512f7e4b8c 100644 --- a/cpukit/score/cpu/m68k/rtems/score/types.h +++ b/cpukit/score/cpu/m68k/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/mips/rtems/score/types.h b/cpukit/score/cpu/mips/rtems/score/types.h index c5f13f8261..cca53236ce 100644 --- a/cpukit/score/cpu/mips/rtems/score/types.h +++ b/cpukit/score/cpu/mips/rtems/score/types.h @@ -22,6 +22,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -34,7 +35,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/nios2/rtems/score/types.h b/cpukit/score/cpu/nios2/rtems/score/types.h index 4357cf9803..80142588a5 100644 --- a/cpukit/score/cpu/nios2/rtems/score/types.h +++ b/cpukit/score/cpu/nios2/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/no_cpu/rtems/score/types.h b/cpukit/score/cpu/no_cpu/rtems/score/types.h index 7587db3cc6..569962ea59 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/types.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -35,7 +36,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; /** This defines the type for a Boolean value, */ -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ /** This defines the type for a single precision float. */ typedef float single_precision; diff --git a/cpukit/score/cpu/powerpc/rtems/score/types.h b/cpukit/score/cpu/powerpc/rtems/score/types.h index 70bf4edd29..43a007e58a 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/types.h +++ b/cpukit/score/cpu/powerpc/rtems/score/types.h @@ -38,6 +38,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -50,7 +51,7 @@ extern "C" { typedef uint32_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/sh/rtems/score/types.h b/cpukit/score/cpu/sh/rtems/score/types.h index b237a5a976..a9ea64da39 100644 --- a/cpukit/score/cpu/sh/rtems/score/types.h +++ b/cpukit/score/cpu/sh/rtems/score/types.h @@ -31,6 +31,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -43,7 +44,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint16_t boolean; /* Boolean value, external */ +typedef bool boolean; /* Boolean value, external */ /* data bus has 16 bits */ typedef float single_precision; /* single precision float */ diff --git a/cpukit/score/cpu/sparc/rtems/score/types.h b/cpukit/score/cpu/sparc/rtems/score/types.h index 9237f01ed1..3096a233a0 100644 --- a/cpukit/score/cpu/sparc/rtems/score/types.h +++ b/cpukit/score/cpu/sparc/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -33,7 +34,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ diff --git a/cpukit/score/cpu/unix/rtems/score/types.h b/cpukit/score/cpu/unix/rtems/score/types.h index 9e26d12234..bd678c68b9 100644 --- a/cpukit/score/cpu/unix/rtems/score/types.h +++ b/cpukit/score/cpu/unix/rtems/score/types.h @@ -21,6 +21,7 @@ #ifndef ASM +#include #include #ifdef __cplusplus @@ -42,7 +43,7 @@ extern "C" { typedef uint16_t Priority_Bit_map_control; -typedef uint32_t boolean; /* Boolean value */ +typedef bool boolean; /* Boolean value */ typedef float single_precision; /* single precision float */ typedef double double_precision; /* double precision float */ -- cgit v1.2.3