From 484a76996eeb65ad726b65946642516c70b3257b Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 4 Sep 2008 17:46:39 +0000 Subject: Convert to "bool". --- cpukit/rtems/include/rtems/rtems/asr.h | 6 +++--- cpukit/rtems/include/rtems/rtems/clock.h | 2 +- cpukit/rtems/include/rtems/rtems/config.h | 8 ++++---- cpukit/rtems/include/rtems/rtems/object.h | 10 +++++----- cpukit/rtems/include/rtems/rtems/sem.h | 2 +- cpukit/rtems/include/rtems/rtems/support.h | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) (limited to 'cpukit/rtems/include') diff --git a/cpukit/rtems/include/rtems/rtems/asr.h b/cpukit/rtems/include/rtems/rtems/asr.h index 1d5ba6194f..ea5fab8538 100644 --- a/cpukit/rtems/include/rtems/rtems/asr.h +++ b/cpukit/rtems/include/rtems/rtems/asr.h @@ -19,12 +19,12 @@ #ifndef _RTEMS_RTEMS_ASR_H #define _RTEMS_RTEMS_ASR_H +#include + #ifdef __cplusplus extern "C" { #endif -#include - /** * @defgroup ClassicASR Classic API ASR Support * @@ -57,7 +57,7 @@ typedef rtems_asr ( *rtems_asr_entry )( */ typedef struct { /** This field indicates if are ASRs enabled currently. */ - boolean is_enabled; + bool is_enabled; /** This field indicates if address of the signal handler function. */ rtems_asr_entry handler; /** This field indicates if the task mode the signal will run with. */ diff --git a/cpukit/rtems/include/rtems/rtems/clock.h b/cpukit/rtems/include/rtems/rtems/clock.h index 721e30ae35..7e6336d606 100644 --- a/cpukit/rtems/include/rtems/rtems/clock.h +++ b/cpukit/rtems/include/rtems/rtems/clock.h @@ -245,7 +245,7 @@ rtems_status_code rtems_clock_get_uptime( * * @return This method returns TRUE if the TOD is valid and FALSE otherwise. */ -boolean _TOD_Validate( +bool _TOD_Validate( rtems_time_of_day *the_tod ); diff --git a/cpukit/rtems/include/rtems/rtems/config.h b/cpukit/rtems/include/rtems/rtems/config.h index 4298e6a215..05b232482f 100644 --- a/cpukit/rtems/include/rtems/rtems/config.h +++ b/cpukit/rtems/include/rtems/rtems/config.h @@ -18,13 +18,13 @@ #ifndef _RTEMS_RTEMS_CONFIG_H #define _RTEMS_RTEMS_CONFIG_H +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - /** * @defgroup ClassicConfig Classic API Configuration * @@ -51,7 +51,7 @@ typedef struct { * This field indicates whether Classic API notepads are * enabled or disabled. */ - boolean notepads_enabled; + bool notepads_enabled; /** * This field contains the maximum number of Classic API diff --git a/cpukit/rtems/include/rtems/rtems/object.h b/cpukit/rtems/include/rtems/rtems/object.h index 4437141049..58ca9f8b6c 100644 --- a/cpukit/rtems/include/rtems/rtems/object.h +++ b/cpukit/rtems/include/rtems/rtems/object.h @@ -15,15 +15,15 @@ #ifndef _RTEMS_RTEMS_OBJECT_H #define _RTEMS_RTEMS_OBJECT_H -#ifdef __cplusplus -extern "C" { -#endif - #include #include #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup ClassicClassInfo Classic API Class Information * @@ -43,7 +43,7 @@ typedef struct { /** This field is the number of object instances configured for this class. */ uint32_t maximum; /** This field indicates if the class is configured for auto-extend. */ - boolean auto_extend; + bool auto_extend; /** This field is the number of currently unallocated objects. */ uint32_t unallocated; } rtems_object_api_class_information; diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h index 8fff8a60ab..d6385b9e64 100644 --- a/cpukit/rtems/include/rtems/rtems/sem.h +++ b/cpukit/rtems/include/rtems/rtems/sem.h @@ -202,7 +202,7 @@ rtems_status_code rtems_semaphore_flush( * option_set, then the routine returns. Otherwise, the calling task * is blocked until a unit becomes available. */ -boolean _Semaphore_Seize( +bool _Semaphore_Seize( Semaphore_Control *the_semaphore, uint32_t option_set ); diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/support.h index b204d498a7..25f6ebf08d 100644 --- a/cpukit/rtems/include/rtems/rtems/support.h +++ b/cpukit/rtems/include/rtems/rtems/support.h @@ -63,7 +63,7 @@ extern "C" { * * @return TRUE if successful */ -boolean rtems_workspace_get_information( +bool rtems_workspace_get_information( Heap_Information_block *the_info ); @@ -78,7 +78,7 @@ boolean rtems_workspace_get_information( * * @return TRUE if successful */ -boolean rtems_workspace_allocate( +bool rtems_workspace_allocate( size_t bytes, void **pointer ); @@ -93,7 +93,7 @@ boolean rtems_workspace_allocate( * * @return TRUE if successful */ -boolean rtems_workspace_free( +bool rtems_workspace_free( void *pointer ); -- cgit v1.2.3