Changeset 3f732f0 in rtems


Ignore:
Timestamp:
Feb 13, 2020, 12:15:56 AM (6 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
5, master
Children:
33d89af
Parents:
d252e20a
git-author:
Joel Sherrill <joel@…> (02/13/20 00:15:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/14/20 06:30:38)
Message:

objectdata.h, objectimpl.h: Change structure member from free to deallocate

Without this change, rtems-libbsd does not compile. A macro turns
free into bsd_free.

Also the use of a standard library element as a program identifier
is a violation of a MISRA rule. Turns out that was a good rule. :)

Location:
cpukit/include/rtems/score
Files:
2 edited

Legend:

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

    rd252e20a r3f732f0  
    211211   * @see _Objects_Free_static(), and _Objects_Free_unlimited().
    212212   */
    213   void ( *free )( Objects_Information *, Objects_Control * );
     213  void ( *deallocate )( Objects_Information *, Objects_Control * );
    214214
    215215  /**
  • cpukit/include/rtems/score/objectimpl.h

    rd252e20a r3f732f0  
    934934{
    935935  _Assert( _Objects_Allocator_is_owner() );
    936   _Assert( information->free != NULL );
    937   ( *information->free )( information, the_object );
     936  _Assert( information->deallocate != NULL );
     937  ( *information->deallocate )( information, the_object );
    938938}
    939939
Note: See TracChangeset for help on using the changeset viewer.