summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-21 04:10:35 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-21 04:10:35 +0000
commit30e2df697af65d82c24e4fd6e23a4c7b9666a814 (patch)
treeb7df918db57e654bb1aa8f842b7c9824b2f3ab0e
parent2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-30e2df697af65d82c24e4fd6e23a4c7b9666a814.tar.bz2
Include stdbool.h. Use bool as base-type for boolean.
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/arm/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/avr/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/bfin/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/c4x/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/h8300/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/i386/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/m68k/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/mips/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/nios2/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/no_cpu/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/sh/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/sparc/rtems/score/types.h3
-rw-r--r--cpukit/score/cpu/unix/rtems/score/types.h3
14 files changed, 28 insertions, 14 deletions
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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 <stdbool.h>
#include <rtems/stdint.h>
#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 */