forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
|
||||
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.
|
||||
|
||||
2000-11-30 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* General effort to make things compile with macros not inlines
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user