IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2015, 1:27:10 PM (11 years ago)
Author:
eugene
Message:

expose OhanaMemblocks globally; turn off mem testing options; allow checks of realloc and free blocks if all memory is freed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616/Ohana/src/libohana/include/ohana_allocate.h

    r38491 r38504  
    11# ifndef OHANA_ALLOCATE
    22# define OHANA_ALLOCATE
     3
     4# define OHANA_MEMMAGIC (uint32_t) 0xdeadbeef
     5
     6typedef struct OhanaMemblock {
     7  uint32_t startblock;        // endpost marker
     8  struct OhanaMemblock *prevBlock; // previously allocated memory
     9  struct OhanaMemblock *nextBlock; // next allocated memory
     10  size_t size;                // size of memory
     11  const char *file;           // file (re)allocated
     12  const char *func;           // func (re)allocated
     13  int line;                   // line (re)allocated
     14  int freed;                  // memory has been freed
     15  int dummy;                  // need to put endblock on the endpost
     16  uint32_t endblock;          // endpost marker
     17} OhanaMemblock;
    318
    419typedef struct {
Note: See TracChangeset for help on using the changeset viewer.