From 1a8fde6ca27afea19faf9bf6487d8aa20b4a8d41 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 6 Mar 1996 21:34:57 +0000 Subject: 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. --- c/src/exec/score/include/rtems/score/coresem.h | 27 ++------------------------ 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'c/src/exec/score/include/rtems/score/coresem.h') diff --git a/c/src/exec/score/include/rtems/score/coresem.h b/c/src/exec/score/include/rtems/score/coresem.h index cf40da4783..88f712be5d 100644 --- a/c/src/exec/score/include/rtems/score/coresem.h +++ b/c/src/exec/score/include/rtems/score/coresem.h @@ -143,32 +143,9 @@ void _CORE_semaphore_Flush( unsigned32 status ); -/* - * _CORE_semaphore_Get_count - * - * DESCRIPTION: - * - * This routine returns the current count associated with the semaphore. - */ - -STATIC INLINE unsigned32 _CORE_semaphore_Get_count( - CORE_semaphore_Control *the_semaphore -); - -/* - * _CORE_semaphore_Is_priority - * - * DESCRIPTION: - * - * This function returns TRUE if the priority attribute is - * enabled in the attribute_set and FALSE otherwise. - */ - -STATIC INLINE boolean _CORE_semaphore_Is_priority( - CORE_semaphore_Attributes *the_attribute -); - +#ifndef __RTEMS_APPLICATION__ #include +#endif #ifdef __cplusplus } -- cgit v1.2.3