summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-04 17:46:39 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-04 17:46:39 +0000
commit484a76996eeb65ad726b65946642516c70b3257b (patch)
tree6aed4eba45d4eb704f004622ecbf63e275bb876c /cpukit/sapi
parent2008-09-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-484a76996eeb65ad726b65946642516c70b3257b.tar.bz2
Convert to "bool".
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/rtems/config.h2
-rw-r--r--cpukit/sapi/inline/rtems/chain.inl72
-rw-r--r--cpukit/sapi/inline/rtems/extension.inl2
-rw-r--r--cpukit/sapi/src/debug.c4
-rw-r--r--cpukit/sapi/src/extension.c4
-rw-r--r--cpukit/sapi/src/ioregisterdriver.c4
6 files changed, 44 insertions, 44 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 777a9c3402..c3fe7a2edb 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -163,7 +163,7 @@ typedef struct {
* environment has ensured that memory was cleared before RTEMS was
* invoked.
*/
- boolean do_zero_of_workspace;
+ bool do_zero_of_workspace;
uint32_t maximum_drivers;
uint32_t number_of_device_drivers;
diff --git a/cpukit/sapi/inline/rtems/chain.inl b/cpukit/sapi/inline/rtems/chain.inl
index b49454b259..bc3e57d133 100644
--- a/cpukit/sapi/inline/rtems/chain.inl
+++ b/cpukit/sapi/inline/rtems/chain.inl
@@ -53,13 +53,13 @@ RTEMS_INLINE_ROUTINE void rtems_chain_initialize_empty(
/**
* @brief Is the Chain Node Pointer NULL
*
- * This function returns TRUE if the_node is NULL and FALSE otherwise.
+ * This function returns true if the_node is NULL and false otherwise.
*
* @param[in] the_node is the node pointer to check.
*
- * @return This method returns TRUE if the_node is NULL and FALSE otherwise.
+ * @return This method returns true if the_node is NULL and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_is_null_node(
+RTEMS_INLINE_ROUTINE bool rtems_chain_is_null_node(
const rtems_chain_node *the_node
)
{
@@ -101,16 +101,16 @@ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_tail(
/**
* @brief Are Two Nodes Equal
*
- * This function returns TRUE if @a left and @a right are equal,
- * and FALSE otherwise.
+ * This function returns true if @a left and @a right are equal,
+ * and false otherwise.
*
* @param[in] left is the node on the left hand side of the comparison.
* @param[in] right is the node on the left hand side of the comparison.
*
- * @return This function returns TRUE if @a left and @a right are equal,
- * and FALSE otherwise.
+ * @return This function returns true if @a left and @a right are equal,
+ * and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal(
+RTEMS_INLINE_ROUTINE bool rtems_chain_are_nodes_equal(
const rtems_chain_node *left,
const rtems_chain_node *right
)
@@ -121,15 +121,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal(
/**
* @brief Is the Chain Empty
*
- * This function returns TRUE if there a no nodes on @a the_chain and
- * FALSE otherwise.
+ * This function returns true if there a no nodes on @a the_chain and
+ * false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
*
- * @return This function returns TRUE if there a no nodes on @a the_chain and
- * FALSE otherwise.
+ * @return This function returns true if there a no nodes on @a the_chain and
+ * false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty(
+RTEMS_INLINE_ROUTINE bool rtems_chain_is_empty(
rtems_chain_control *the_chain
)
{
@@ -139,16 +139,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty(
/**
* @brief Is this the First Node on the Chain
*
- * This function returns TRUE if the_node is the first node on a chain and
- * FALSE otherwise.
+ * This function returns true if the_node is the first node on a chain and
+ * false otherwise.
*
* @param[in] the_node is the node the caller wants to know if it is
* the first node on a chain.
*
- * @return This function returns TRUE if @a the_node is the first node on
- * a chain and FALSE otherwise.
+ * @return This function returns true if @a the_node is the first node on
+ * a chain and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first(
+RTEMS_INLINE_ROUTINE bool rtems_chain_is_first(
const rtems_chain_node *the_node
)
{
@@ -158,15 +158,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first(
/**
* @brief Is this the Last Node on the Chain
*
- * This function returns TRUE if @a the_node is the last node on a chain and
- * FALSE otherwise.
+ * This function returns true if @a the_node is the last node on a chain and
+ * false otherwise.
*
* @param[in] the_node is the node to check as the last node.
*
- * @return This function returns TRUE if @a the_node is the last node on
- * a chain and FALSE otherwise.
+ * @return This function returns true if @a the_node is the last node on
+ * a chain and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last(
+RTEMS_INLINE_ROUTINE bool rtems_chain_is_last(
const rtems_chain_node *the_node
)
{
@@ -176,15 +176,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last(
/**
* @brief Does this Chain have only One Node
*
- * This function returns TRUE if there is only one node on @a the_chain and
- * FALSE otherwise.
+ * This function returns true if there is only one node on @a the_chain and
+ * false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
*
- * @return This function returns TRUE if there is only one node on
- * @a the_chain and FALSE otherwise.
+ * @return This function returns true if there is only one node on
+ * @a the_chain and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node(
+RTEMS_INLINE_ROUTINE bool rtems_chain_has_only_one_node(
const rtems_chain_control *the_chain
)
{
@@ -194,16 +194,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node(
/**
* @brief Is this Node the Chain Head
*
- * This function returns TRUE if @a the_node is the head of the_chain and
- * FALSE otherwise.
+ * This function returns true if @a the_node is the head of the_chain and
+ * false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
* @param[in] the_node is the node to check for being the Chain Head.
*
- * @return This function returns TRUE if @a the_node is the head of
- * @a the_chain and FALSE otherwise.
+ * @return This function returns true if @a the_node is the head of
+ * @a the_chain and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head(
+RTEMS_INLINE_ROUTINE bool rtems_chain_is_head(
rtems_chain_control *the_chain,
const rtems_chain_node *the_node
)
@@ -214,13 +214,13 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head(
/**
* @brief Is this Node the Chail Tail
*
- * This function returns TRUE if the_node is the tail of the_chain and
- * FALSE otherwise.
+ * This function returns true if the_node is the tail of the_chain and
+ * false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
* @param[in] the_node is the node to check for being the Chain Tail.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_chain_is_tail(
+RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail(
rtems_chain_control *the_chain,
const rtems_chain_node *the_node
)
diff --git a/cpukit/sapi/inline/rtems/extension.inl b/cpukit/sapi/inline/rtems/extension.inl
index c989acea48..5b516b9f56 100644
--- a/cpukit/sapi/inline/rtems/extension.inl
+++ b/cpukit/sapi/inline/rtems/extension.inl
@@ -82,7 +82,7 @@ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get (
* This function returns TRUE if the_extension is NULL and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Extension_Is_null (
+RTEMS_INLINE_ROUTINE bool _Extension_Is_null (
Extension_Control *the_extension
)
{
diff --git a/cpukit/sapi/src/debug.c b/cpukit/sapi/src/debug.c
index 6cd6dba801..38e05c9982 100644
--- a/cpukit/sapi/src/debug.c
+++ b/cpukit/sapi/src/debug.c
@@ -57,9 +57,9 @@ void rtems_debug_disable (
* _Debug_Is_enabled
*/
-boolean _Debug_Is_enabled(
+bool _Debug_Is_enabled(
rtems_debug_control level
)
{
- return (_Debug_Level & level) ? TRUE : FALSE;
+ return (_Debug_Level & level) ? true : false;
}
diff --git a/cpukit/sapi/src/extension.c b/cpukit/sapi/src/extension.c
index d1e91a64a5..1a85cddf3a 100644
--- a/cpukit/sapi/src/extension.c
+++ b/cpukit/sapi/src/extension.c
@@ -43,11 +43,11 @@ void _Extension_Manager_initialization(
OBJECTS_RTEMS_EXTENSIONS,
maximum_extensions,
sizeof( Extension_Control ),
- FALSE, /* TRUE if the name is a string */
+ false, /* true if the name is a string */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
+ false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/sapi/src/ioregisterdriver.c b/cpukit/sapi/src/ioregisterdriver.c
index 7322d77d62..d8a3deae17 100644
--- a/cpukit/sapi/src/ioregisterdriver.c
+++ b/cpukit/sapi/src/ioregisterdriver.c
@@ -67,11 +67,11 @@ rtems_status_code rtems_io_register_driver(
*/
if ( major == 0 ) {
- boolean found = FALSE;
+ bool found = false;
for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) {
if ( !_IO_Driver_address_table[major].initialization_entry &&
!_IO_Driver_address_table[major].open_entry ) {
- found = TRUE;
+ found = true;
break;
}
}