Ignore:
Timestamp:
Apr 20, 2021, 7:58:06 AM (2 months 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.