Blame view

build4/epsilon-master/liba/include/private/memconfig.h 622 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #ifndef LIBA_MEMCONFIG_H
  #define LIBA_MEMCONFIG_H
  
  /* This structure contains all the configuration data for the mem5 allocator.
   * Before using mem5, the HeapConfig global variable should be created
   * and initialized. */
  
  typedef struct {
    int nHeap;                        /* Size of pHeap[] */
    void *pHeap;                      /* Heap storage space */
    int mnReq;                        /* Min heap requests sizes */
    int bMemstat;                     /* True to enable memory status */
    void (*xLog)(void*,int,const char*); /* Function for logging */
  } heap_config_t;
  
  extern heap_config_t HeapConfig;
  
  #endif