IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2015, 10:41:05 PM (11 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/ipp-20150616

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/ohana_allocate.h

    r38441 r38553  
    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 {
     
    2944void  real_free (void *in);
    3045
    31 # define ohana_memcheck(X) ohana_memcheck_func (X);
     46# define ohana_memcheck(X) ohana_memcheck_func (X)
    3247# define ohana_memdump(X) ohana_memdump_func (X);
    3348
     
    5671# else  /* below: not OHANA_MEMORY */
    5772
    58 # define ohana_memcheck(X) TRUE
     73int   ohana_memcheck_noop (int mode);
     74
     75# define ohana_memcheck(X) ohana_memcheck_noop (X)
    5976# define ohana_memdump(X) /* NOP */
    6077void  real_free (void *in);
Note: See TracChangeset for help on using the changeset viewer.