Changeset 6c66bbb in rtems


Ignore:
Timestamp:
Apr 20, 2021, 7:58:06 AM (3 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
51defd92
Parents:
d8a5e14
git-author:
Sebastian Huber <sebastian.huber@…> (04/20/21 07:58:06)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/20/21 17:18:23)
Message:

malloc: Hide RTEMS_Malloc_Sbrk_amount

Move RTEMS_Malloc_Sbrk_amount to the only implementation file which uses
it and make it private to hide implementation-details from an API
header.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/malloc.h

    rd8a5e14 r6c66bbb  
    4949);
    5050
    51 extern ptrdiff_t RTEMS_Malloc_Sbrk_amount;
    52 
    53 static inline void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount )
    54 {
    55   RTEMS_Malloc_Sbrk_amount = sbrk_amount;
    56 }
     51void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount );
    5752
    5853typedef void *(*rtems_heap_extend_handler)(
  • cpukit/libcsupport/src/rtems_heap_extend_via_sbrk.c

    rd8a5e14 r6c66bbb  
    3030#include "malloc_p.h"
    3131
    32 ptrdiff_t RTEMS_Malloc_Sbrk_amount;
     32static ptrdiff_t RTEMS_Malloc_Sbrk_amount;
     33
     34void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount )
     35{
     36  RTEMS_Malloc_Sbrk_amount = sbrk_amount;
     37}
    3338
    3439void *rtems_heap_extend_via_sbrk(
Note: See TracChangeset for help on using the changeset viewer.