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 /c/src/exec/score/macros/rtems/score/object.inl | |
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 '')
-rw-r--r-- | c/src/exec/score/macros/rtems/score/object.inl | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/c/src/exec/score/macros/rtems/score/object.inl b/c/src/exec/score/macros/rtems/score/object.inl index d303535489..bb0070f269 100644 --- a/c/src/exec/score/macros/rtems/score/object.inl +++ b/c/src/exec/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 */ |