From c9fd602c8c0cbc73568768e2bdd8a6e8acb350d4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 1 Dec 2000 19:16:52 +0000 Subject: 2000-12-01 Joel Sherrill * macros/rtems/score/coresem.inl: Removed comments since convention calls for comments to be in inline versin. * macros/rtems/score/object.inl (Objects_Get_local_object): Fixed style to use _ prefix on variable names and use parentheses. * macros/rtems/score/object.inl (_Objects_Namespace_remove): Added. --- cpukit/score/macros/rtems/score/coresem.inl | 14 ++------------ cpukit/score/macros/rtems/score/object.inl | 14 +++++++++++--- 2 files changed, 13 insertions(+), 15 deletions(-) (limited to 'cpukit/score/macros/rtems/score') diff --git a/cpukit/score/macros/rtems/score/coresem.inl b/cpukit/score/macros/rtems/score/coresem.inl index 01590c23b4..6a22237605 100644 --- a/cpukit/score/macros/rtems/score/coresem.inl +++ b/cpukit/score/macros/rtems/score/coresem.inl @@ -27,25 +27,16 @@ /*PAGE * - * _Core_semaphore_Get_count + * _CORE_semaphore_Get_count * */ -#define _Core_semaphore_Get_count( _the_semaphore ) \ +#define _CORE_semaphore_Get_count( _the_semaphore ) \ ( (_the_semaphore)->count ) /*PAGE * * _CORE_semaphore_Seize_isr_disable - * - * DESCRIPTION: - * - * This routine attempts to receive a unit from the_semaphore. - * If a unit is available or if the wait flag is FALSE, then the routine - * returns. Otherwise, the calling task is blocked until a unit becomes - * available. - * - * NOTE: There is currently no MACRO version of this routine. */ #define _CORE_semaphore_Seize_isr_disable( \ @@ -77,6 +68,5 @@ } \ } - #endif /* end of include file */ diff --git a/cpukit/score/macros/rtems/score/object.inl b/cpukit/score/macros/rtems/score/object.inl index d303535489..bb0070f269 100644 --- a/cpukit/score/macros/rtems/score/object.inl +++ b/cpukit/score/macros/rtems/score/object.inl @@ -96,9 +96,9 @@ * */ -#define _Objects_Get_local_object( information, index ) \ - ( ( index > information->maximum) ? NULL : \ - information->local_table[ index ] ) +#define _Objects_Get_local_object( _information, _index ) \ + ( ( (_index) > (_information)->maximum) ? NULL : \ + (_information)->local_table[ (_index) ] ) /*PAGE * @@ -161,5 +161,13 @@ _Objects_Clear_name( (_the_object)->name, (_information)->name_length ); \ } +/*PAGE + * + * _Objects_Namespace_remove + */ + +#define _Objects_Namespace_remove( _information, _the_object ) \ + _Objects_Clear_name( (_the_object)->name, (_information)->name_length ) + #endif /* end of include file */ -- cgit v1.2.3