1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
/*******************************************************************
* File: omalloc.h
* Purpose: declaration of public routines for omalloc
* Author: obachman@mathematik.uni-kl.de (Olaf Bachmann)
* Created: 11/99
*******************************************************************/
#ifndef OM_ALLOC_H
#define OM_ALLOC_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "omalloc/omConfig.h"
#ifndef HAVE_OMALLOC
#include "omalloc/xalloc.h"
#else
#ifdef __cplusplus
extern "C" {
#if __cplusplus >= 201402L
/* clang 3.7, gcc 5.1 sets 201402L */
#define REGISTER
#elif defined(__clang__)
#define REGISTER
#else
#define REGISTER register
#endif
#else
#define REGISTER register
#endif
extern int om_sing_opt_show_mem;
#if defined(OM_NDEBUG) && !defined(OM_ALLOC_INTERNAL)
#if (SIZEOF_LONG == 8)
#define OM_T_FREE1
#define OM_T_FREE2
#define OM_T_FREE3
#define OM_T_STR
#define OM_T_ALLOC
#define OM_T_REALLOC
#endif
#endif
#include "omDerivedConfig.h"
#include "omError.h"
#include "omStructs.h"
#include "omAllocDecl.h"
#include "omInlineDecl.h"
#include "omBin.h"
#include "omMemOps.h"
#include "omList.h"
#include "omGetBackTrace.h"
#include "omRet2Info.h"
#include "omStats.h"
#include "omOpts.h"
#include "omBinPage.h"
#include "omAllocSystem.h"
#include "omalloc/omTables.h"
#include "omAllocPrivate.h"
#include "omDebug.h"
#include "omInline.h"
#include "omAllocFunc.h"
#ifdef __cplusplus
}
#endif
#endif /* HAVE_OMALLOC */
#endif /* OM_ALLOC_H */
|