Changeset e90ff51f in rtems for cpukit/score


Ignore:
Timestamp:
Jul 5, 2002, 6:15:41 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
05f5bf2
Parents:
485c974
Message:

2002-07-05 Joel Sherrill <joel@…>

  • macros/rtems/score/object.inl: Corrected implementation of _Objects_Open, _Objects_Close, and _Objects_Namespace_remove to be consistent with the inline implementation.
Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/ChangeLog

    r485c974 re90ff51f  
     12002-07-05      Joel Sherrill <joel@OARcorp.com>
     2
     3        * macros/rtems/score/object.inl: Corrected implementation of
     4        _Objects_Open, _Objects_Close, and _Objects_Namespace_remove
     5        to be consistent with the inline implementation.
     6
    172002-07-01    Joel Sherrill <joel@OARcorp.com>
    28
  • cpukit/score/macros/rtems/score/object.inl

    r485c974 re90ff51f  
    145145
    146146#define _Objects_Open( _information, _the_object, _name ) \
    147   { \
     147  do { \
    148148    unsigned32 _index; \
    149149    \
     
    152152    \
    153153    if ( (_information)->is_string ) \
    154       _Objects_Copy_name_string( (_name), (_the_object)->name ); \
     154      /* _Objects_Copy_name_string( (_name), (_the_object)->name ); */\
     155      (_the_object)->name = name; \
    155156    else \
    156       _Objects_Copy_name_raw( \
    157         (_name), (_the_object)->name, (_information)->name_length ); \
    158   }
     157      /* _Objects_Copy_name_raw( \
     158        (_name), (_the_object)->name, (_information)->name_length ); */ \
     159      (_the_object)->name = name; \
     160  } while (0)
    159161
    160162/*PAGE
     
    165167
    166168#define _Objects_Close( _information, _the_object ) \
    167   { \
     169  do { \
    168170    unsigned32 _index; \
    169171    \
    170172    _index = _Objects_Get_index( (_the_object)->id ); \
    171173    (_information)->local_table[ _index ] = (Objects_Control *) NULL; \
    172     _Objects_Clear_name( (_the_object)->name, (_information)->name_length ); \
    173   }
     174    /* _Objects_Clear_name( (_the_object)->name, (_information)->name_length );  */ \
     175    (_the_object)->name = 0; \
     176  } while (0)
    174177
    175178/*PAGE
     
    179182
    180183#define _Objects_Namespace_remove( _information, _the_object ) \
     184  (_the_object)->name = 0 \
    181185  _Objects_Clear_name( (_the_object)->name, (_information)->name_length )
    182186
Note: See TracChangeset for help on using the changeset viewer.