source: rtems/cpukit/libdl/rtl-alloc-heap.c @ 696b9121

5
Last change on this file since 696b9121 was f59d435d, checked in by Chris Johns <chrisj@…>, on 04/12/18 at 07:46:49

libdl: Remove _t from all structures as this is reserved for the standards

  • Property mode set to 100644
File size: 694 bytes
Line 
1/*
2 *  COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.org/license/LICENSE.
7 */
8/**
9 * @file
10 *
11 * @ingroup rtems_rtl
12 *
13 * @brief RTEMS Run-Time Linker Allocator for the standard heap.
14 */
15
16#include <stdlib.h>
17
18#include "rtl-alloc-heap.h"
19
20void
21rtems_rtl_alloc_heap (bool                allocate,
22                      rtems_rtl_alloc_tag tag,
23                      void**              address,
24                      size_t              size)
25{
26  if (allocate)
27    *address = malloc (size);
28  else
29  {
30    free (*address);
31    *address = NULL;
32  }
33}
Note: See TracBrowser for help on using the repository browser.