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