diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-03-06 21:34:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-03-06 21:34:57 +0000 |
commit | 1a8fde6ca27afea19faf9bf6487d8aa20b4a8d41 (patch) | |
tree | 209ab42fa9bc98774d5290d670af14886390d269 /c/src/exec/score/inline/sysstate.inl | |
parent | Removed prototyes for static inline rgutines and moved the comments into (diff) | |
download | rtems-1a8fde6ca27afea19faf9bf6487d8aa20b4a8d41.tar.bz2 |
Removed prototyes for static inline routines and moved the comments into
the inline implementation. The impetus for this was twofold. First,
it is incorrect to have static inline prototypes when using the macro
implementation. Second, this reduced the number of lines in the include
files seen by rtems.h by about 2000 lines.
Next we restricted visibility for the inline routines to inside the
executive itself EXCEPT for a handful of objects. This reduced the
number of include files included by rtems.h by 40 files and reduced
the lines in the include files seen by rtems.h by about 6000 lines.
In total, these reduced the compile time of the entire RTEMS tree by 20%.
This results in about 8 minutes savings on the SparcStation 10 morgana.
Diffstat (limited to 'c/src/exec/score/inline/sysstate.inl')
-rw-r--r-- | c/src/exec/score/inline/sysstate.inl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/c/src/exec/score/inline/sysstate.inl b/c/src/exec/score/inline/sysstate.inl index 180e6abe54..08f8b9c513 100644 --- a/c/src/exec/score/inline/sysstate.inl +++ b/c/src/exec/score/inline/sysstate.inl @@ -20,6 +20,10 @@ /*PAGE * * _System_state_Handler_initialization + * + * DESCRIPTION: + * + * This routine initializes the system state handler. */ STATIC INLINE void _System_state_Handler_initialization ( @@ -33,6 +37,11 @@ STATIC INLINE void _System_state_Handler_initialization ( /*PAGE * * _System_state_Set + * + * DESCRIPTION: + * + * This routine sets the current system state to that specified by + * the called. */ STATIC INLINE void _System_state_Set ( @@ -45,6 +54,10 @@ STATIC INLINE void _System_state_Set ( /*PAGE * * _System_state_Get + * + * DESCRIPTION: + * + * This function returns the current system state. */ STATIC INLINE System_state_Codes _System_state_Get ( void ) @@ -55,6 +68,11 @@ STATIC INLINE System_state_Codes _System_state_Get ( void ) /*PAGE * * _System_state_Is_before_initialization + * + * DESCRIPTION: + * + * This function returns TRUE if the state is equal to the + * "before initialization" state, and FALSE otherwise. */ STATIC INLINE boolean _System_state_Is_before_initialization ( @@ -67,6 +85,11 @@ STATIC INLINE boolean _System_state_Is_before_initialization ( /*PAGE * * _System_state_Is_before_multitasking + * + * DESCRIPTION: + * + * This function returns TRUE if the state is equal to the + * "before multitasking" state, and FALSE otherwise. */ STATIC INLINE boolean _System_state_Is_before_multitasking ( @@ -79,6 +102,11 @@ STATIC INLINE boolean _System_state_Is_before_multitasking ( /*PAGE * * _System_state_Is_begin_multitasking + * + * DESCRIPTION: + * + * This function returns TRUE if the state is equal to the + * "begin multitasking" state, and FALSE otherwise. */ STATIC INLINE boolean _System_state_Is_begin_multitasking ( @@ -91,6 +119,11 @@ STATIC INLINE boolean _System_state_Is_begin_multitasking ( /*PAGE * * _System_state_Is_up + * + * DESCRIPTION: + * + * This function returns TRUE if the state is equal to the + * "up" state, and FALSE otherwise. */ STATIC INLINE boolean _System_state_Is_up ( @@ -103,6 +136,11 @@ STATIC INLINE boolean _System_state_Is_up ( /*PAGE * * _System_state_Is_failed + * + * DESCRIPTION: + * + * This function returns TRUE if the state is equal to the + * "failed" state, and FALSE otherwise. */ STATIC INLINE boolean _System_state_Is_failed ( |