[rtems commit] score: Always declare _Objects_Get_by_name()

Sebastian Huber sebh at rtems.org
Tue Mar 22 06:44:50 UTC 2016


Module:    rtems
Branch:    master
Commit:    c61431f9349869e94f12787abea796861039054e
Changeset: http://git.rtems.org/rtems/commit/?id=c61431f9349869e94f12787abea796861039054e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 22 07:42:34 2016 +0100

score: Always declare _Objects_Get_by_name()

Still define it only if RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES is
defined.

Close #2672.

---

 cpukit/score/include/rtems/score/objectimpl.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cpukit/score/include/rtems/score/objectimpl.h b/cpukit/score/include/rtems/score/objectimpl.h
index f75ae59..3adf3a7 100644
--- a/cpukit/score/include/rtems/score/objectimpl.h
+++ b/cpukit/score/include/rtems/score/objectimpl.h
@@ -447,7 +447,6 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
   Objects_Id          *id
 );
 
-#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
 typedef enum {
   OBJECTS_GET_BY_NAME_INVALID_NAME,
   OBJECTS_GET_BY_NAME_NAME_TOO_LONG,
@@ -474,7 +473,6 @@ Objects_Control *_Objects_Get_by_name(
   size_t                    *name_length_p,
   Objects_Get_by_name_error *error
 );
-#endif
 
 /**
  *  @brief Implements the common portion of the object Id to name directives.



More information about the vc mailing list