diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-12-01 19:16:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-12-01 19:16:52 +0000 |
commit | c9fd602c8c0cbc73568768e2bdd8a6e8acb350d4 (patch) | |
tree | 7b60d3da2f778d7c0e7bf8ab5a430f366a52b4d3 /cpukit/score/macros/rtems/score | |
parent | 2000-12-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-c9fd602c8c0cbc73568768e2bdd8a6e8acb350d4.tar.bz2 |
2000-12-01 Joel Sherrill <joel@OARcorp.com>
* 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.
Diffstat (limited to 'cpukit/score/macros/rtems/score')
-rw-r--r-- | cpukit/score/macros/rtems/score/coresem.inl | 14 | ||||
-rw-r--r-- | cpukit/score/macros/rtems/score/object.inl | 14 |
2 files changed, 13 insertions, 15 deletions
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 */ |