Ignore:
Timestamp:
Oct 25, 2018, 10:05:53 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
55b69ed
Parents:
5090a71b
git-author:
Sebastian Huber <sebastian.huber@…> (10/25/18 10:05:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/29/18 09:33:33)
Message:

Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES

Enable support for string objects names unconditionally. Add const
qualifier throughout. Split _Objects_Namespace_remove() into
_Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string()
to avoid an unnecessary dependency on _Workspace_Free().

Update #2514.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/object.h

    r5090a71b r7038271  
    3737/**@{*/
    3838
    39 #if defined(RTEMS_POSIX_API)
    40   /**
    41    *  This macro is defined when an API is enabled that requires the
    42    *  use of strings for object names.  Since the Classic API uses
    43    *  32-bit unsigned integers and not strings, this allows us to
    44    *  disable this in the smallest RTEMS configuratinos.
    45    */
    46   #define RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES
    47 #endif
    48 
    4939/**
    5040 * @defgroup ScoreCPU CPU Architecture Support
     
    6858 */
    6959typedef union {
    70   #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
    71     /** This is a pointer to a string name. */
    72     const char *name_p;
    73   #endif
     60  /** This is a pointer to a string name. */
     61  const char *name_p;
    7462  /** This is the actual 32-bit "raw" integer name. */
    7563  uint32_t    name_u32;
Note: See TracChangeset for help on using the changeset viewer.