Changeset 82102f in git


Ignore:
Timestamp:
Nov 22, 2011, 8:20:41 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
8fee8407b328f6852dc1ff5372e3f43552ca5fe4
Parents:
bd948cbaacc9667794c8657da135a320fe94c131
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-22 20:20:41+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-23 01:56:36+01:00
Message:
xalloc is usable instead of omalloc

ADD: xalloc is a standalone (stub) library with configure.ac and Makefile.am
ADD: added missing required macros and constants

USAGE: just replace omalloc/ with xalloc/ (or sym-link)
Location:
xalloc
Files:
7 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • xalloc/omalloc.h

    rbd948c r82102f  
    123123}
    124124
     125/* #define omSizeWOfBin(bin_ptr) ((bin_ptr)->sizeW) */
     126#define omSizeWOfBin(bin_ptr) (((bin_ptr)+sizeof(long)-1)/sizeof(long))
     127
     128/*******************************************************************
     129 *
     130 *  error codes
     131 *
     132 *******************************************************************/
     133enum omError_e
     134{
     135  omError_NoError = 0,
     136  omError_Unknown,
     137  omError_InternalBug,
     138  omError_MemoryCorrupted,
     139  omError_NullAddr,
     140  omError_InvalidRangeAddr,
     141  omError_FalseAddr,
     142  omError_FalseAddrOrMemoryCorrupted,
     143  omError_WrongSize,
     144  omError_FreedAddr,
     145  omError_FreedAddrOrMemoryCorrupted,
     146  omError_WrongBin,
     147  omError_UnknownBin,
     148  omError_NotBinAddr,
     149  omError_UnalignedAddr,
     150  omError_NullSizeAlloc,
     151  omError_ListCycleError,
     152  omError_SortedListError,
     153  omError_KeptAddrListCorrupted,
     154  omError_FreePattern,
     155  omError_BackPattern,
     156  omError_FrontPattern,
     157  omError_NotString,
     158  omError_StickyBin,
     159  omError_MaxError
     160};
     161// typedef enum omError_e omError_t;
     162   
    125163#define omSizeWOfAddr(P)         (omSizeOfAddr(P)/sizeof(long))
     164   
    126165#define omTypeAllocBin(T,P,B)    P=(T)omAlloc(B)
    127166#define omTypeAlloc(T,P,S)       P=(T)omAlloc(S)
     
    176215#define omCheckMemory()                          ((void) 0)
    177216#define omPrintCurrentBackTraceMax(A,B)          ((void) 0)
     217#define omPrintUsedTrackAddrs(F,max)             ((void) 0)
     218#define omPrintCurrentBackTrace(F)               ((void) 0)
     219#define omPrintUsedAddrs(F,max)                  ((void) 0)
    178220#define omdebugAddrSize(A,B)                     ((void) 0)
    179221#define omPrintAddrInfo(A,B,C)                   ((void) 0)
    180 #define omIsBinPageAddr(A)                       ((void) 0)
    181 #define omTestBinAddrSize(A,B,C)                 ((void) 0)
     222#define omIsBinPageAddr(A)                       (1)
     223#define omTestBinAddrSize(A,B,C)                 (omError_NoError)
     224#define omTestList(ptr, level)                   (omError_NoError)
    182225#define omInitRet_2_Info(argv0)                  ((void) 0)
    183226#define omMergeStickyBinIntoBin(A,B)             ((void) 0)
    184227
    185 
    186 
    187 char * omFindExec (const char *name, char* executable);
    188228
    189229#ifdef __cplusplus
     
    198238/* #define OM_NDEBUG */
    199239#undef OM_SING_KEEP
     240
    200241#endif
Note: See TracChangeset for help on using the changeset viewer.