1 | /* omConfig.h. Generated automatically by configure. */ |
---|
2 | /* -*-c++-*- */ |
---|
3 | /******************************************************************* |
---|
4 | * File: omConfig.h.in |
---|
5 | * Purpose: configuration for omalloc |
---|
6 | * Author: obachman (Olaf Bachmann) |
---|
7 | * Created: 11/99 |
---|
8 | * Version: $Id: omConfig.h,v 1.2 2000-08-14 12:37:00 obachman Exp $ |
---|
9 | *******************************************************************/ |
---|
10 | #ifndef OM_CONFIG_H |
---|
11 | #define OM_CONFIG_H |
---|
12 | |
---|
13 | /******************************************************************* |
---|
14 | * Defines which are set by configure |
---|
15 | ******************************************************************/ |
---|
16 | /* define if you provide an external config file to be included |
---|
17 | by omDefaultConfig.h */ |
---|
18 | #ifndef OM_HAVE_EXTERNAL_CONFIG_H |
---|
19 | /* #undef OM_HAVE_EXTERNAL_CONFIG_H */ |
---|
20 | #endif |
---|
21 | /* define if you can inline */ |
---|
22 | #ifndef OM_INLINE |
---|
23 | #define OM_INLINE static inline |
---|
24 | #endif |
---|
25 | /* define for inline decl in headers */ |
---|
26 | #ifndef OM_INLINE_DECL |
---|
27 | #define OM_INLINE_DECL static inline |
---|
28 | #endif |
---|
29 | /* define for inline implementation in Include*/ |
---|
30 | #ifndef OM_INLINE_IMPL |
---|
31 | #define OM_INLINE_IMPL static inline |
---|
32 | #endif |
---|
33 | /* define for local inline */ |
---|
34 | #ifndef OM_INLINE_LOCAL |
---|
35 | #define OM_INLINE_LOCAL static inline |
---|
36 | #endif |
---|
37 | /* defint to nothing if you do not understand const */ |
---|
38 | #ifndef const |
---|
39 | /* #undef const */ |
---|
40 | #endif |
---|
41 | /* define to the name of addr2line program, undef otherwise */ |
---|
42 | #ifndef OM_PROG_ADDR2LINE |
---|
43 | #define OM_PROG_ADDR2LINE "addr2line" |
---|
44 | #endif |
---|
45 | /* define to the name of nm program, undef otherwise */ |
---|
46 | #ifndef OM_PROG_NM |
---|
47 | #define OM_PROG_NM "nm" |
---|
48 | #endif |
---|
49 | /* define if you have popen */ |
---|
50 | #ifndef HAVE_POPEN |
---|
51 | #define HAVE_POPEN 1 |
---|
52 | #endif |
---|
53 | /* define if you have readlink */ |
---|
54 | #ifndef HAVE_READLINK |
---|
55 | #define HAVE_READLINK 1 |
---|
56 | #endif |
---|
57 | /* define if you have sbrk */ |
---|
58 | #ifndef HAVE_SBRK |
---|
59 | #define HAVE_SBRK 1 |
---|
60 | #endif |
---|
61 | /* define if you have getcwd */ |
---|
62 | #ifndef HAVE_GETCWD |
---|
63 | #define HAVE_GETCWD 1 |
---|
64 | #endif |
---|
65 | /* define if you have getwd */ |
---|
66 | #ifndef HAVE_GETWD |
---|
67 | #define HAVE_GETWD 1 |
---|
68 | #endif |
---|
69 | /* define if you have a working mmap */ |
---|
70 | #ifndef HAVE_WORKING_MMAP |
---|
71 | #define HAVE_WORKING_MMAP 1 |
---|
72 | #endif |
---|
73 | /* define if you have STDC_HEADERS */ |
---|
74 | #ifndef STDC_HEADERS |
---|
75 | #define STDC_HEADERS 1 |
---|
76 | #endif |
---|
77 | /* define if you have unistd.h */ |
---|
78 | #ifndef HAVE_UNISTD_H |
---|
79 | #define HAVE_UNISTD_H 1 |
---|
80 | #endif |
---|
81 | /* define if you have fcntl.h */ |
---|
82 | #ifndef HAVE_FCNTL_H |
---|
83 | #define HAVE_FCNTL_H |
---|
84 | #endif |
---|
85 | /* define if you have sys/mman.h */ |
---|
86 | #ifndef HAVE_SYS_MMAN_H |
---|
87 | #define HAVE_SYS_MMAN_H |
---|
88 | #endif |
---|
89 | /* define if GET_RETURN_ADDR works */ |
---|
90 | #ifndef OM_GET_RETURN_ADDR_WORK |
---|
91 | #define OM_GET_RETURN_ADDR_WORKS 1 |
---|
92 | #endif |
---|
93 | /* define if GET_RETURN_ADDR works */ |
---|
94 | #ifndef OM_GET_BACKTRACE_WORK |
---|
95 | #define OM_GET_BACKTRACE_WORKS 1 |
---|
96 | #endif |
---|
97 | /* Define sizeof(long) */ |
---|
98 | #ifndef SIZEOF_LONG |
---|
99 | #define SIZEOF_LONG 4 |
---|
100 | #endif |
---|
101 | /* Define sizeof(double) */ |
---|
102 | #ifndef SIZEOF_DOUBLE |
---|
103 | #define SIZEOF_DOUBLE 8 |
---|
104 | #endif |
---|
105 | /* Define sizeof(size_t) */ |
---|
106 | #ifndef SIZEOF_SIZE_T |
---|
107 | #define SIZEOF_SIZE_T 4 |
---|
108 | #endif |
---|
109 | #ifndef SIZEOF_SYSTEM_PAGE |
---|
110 | /* Define pagesize of your system */ |
---|
111 | #define SIZEOF_SYSTEM_PAGE 4096 |
---|
112 | #endif |
---|
113 | #ifndef SIZEOF_OM_PAGE |
---|
114 | /* size of page as we can use it */ |
---|
115 | #define SIZEOF_OM_PAGE SIZEOF_SYSTEM_PAGE |
---|
116 | #endif |
---|
117 | /* define if you want to use mmap for valloc */ |
---|
118 | #ifndef OM_HAVE_VALLOC_MMAP |
---|
119 | #define OM_HAVE_VALLOC_MMAP 1 |
---|
120 | #endif |
---|
121 | /* define if you want to use malloc-provided valloc */ |
---|
122 | #ifndef HAVE_VALLOC_MALLOC |
---|
123 | /* #undef OM_HAVE_VALLOC_MALLOC */ |
---|
124 | #endif |
---|
125 | #ifndef OM_MALLOC_PROVIDES_SIZEOF_ADDR |
---|
126 | /* define if your malloc provides a working OM_MALLOC_SIZEOF_ADDR */ |
---|
127 | #define OM_MALLOC_PROVIDES_SIZEOF_ADDR 1 |
---|
128 | #endif |
---|
129 | #ifndef OM_EMULATE_OMALLOC |
---|
130 | /* define if you only want to emulate omalloc, but not actually use it */ |
---|
131 | /* #undef OM_EMULATE_OMALLOC */ |
---|
132 | #endif |
---|
133 | #ifndef OM_ALIGN_8 |
---|
134 | /* define if you want your memory to be 8-aligned */ |
---|
135 | /* #undef OM_ALIGN_8 */ |
---|
136 | #endif |
---|
137 | #ifndef OM_ALIGNMENT_NEEDS_WORK |
---|
138 | /* define if you insist on AllocAligned returnes 8-aligned */ |
---|
139 | /* #undef OM_ALIGNMENT_NEEDS_WORK */ |
---|
140 | #endif |
---|
141 | /* define if you want to have a dense distribution of bins */ |
---|
142 | #ifndef OM_HAVE_DENSE_BIN_DISTRIBUTION |
---|
143 | /* #undef OM_HAVE_DENSE_BIN_DISTRIBUTION */ |
---|
144 | #endif |
---|
145 | /* define to disable all debugging stuff */ |
---|
146 | #ifndef OM_NDEBUG |
---|
147 | /* #undef OM_NDEBUG */ |
---|
148 | #endif |
---|
149 | /* define to enable debug tracking */ |
---|
150 | #ifndef OM_HAVE_TRACK |
---|
151 | #define OM_HAVE_TRACK 1 |
---|
152 | #endif |
---|
153 | /* define to enable tracking of files/line numbers */ |
---|
154 | #ifndef OM_TRACK_FILE_LINE |
---|
155 | /* #undef OM_TRACK_FILE_LINE */ |
---|
156 | #endif |
---|
157 | /* define to enable tracking of return addresses */ |
---|
158 | #ifndef OM_TRACK_RETURN |
---|
159 | #define OM_TRACK_RETURN 1 |
---|
160 | #endif |
---|
161 | /* define to enable tracking of stack backtraces */ |
---|
162 | #ifndef OM_TRACK_BACKTRACE |
---|
163 | #define OM_TRACK_BACKTRACE 1 |
---|
164 | #endif |
---|
165 | /* define to enable internal debugging */ |
---|
166 | #ifndef OM_INTERNAL_DEBUG |
---|
167 | /* #undef OM_INTERNAL_DEBUG */ |
---|
168 | #endif |
---|
169 | /* define to -1/0/1/2/3 if you want omalloc to provide |
---|
170 | "underlying malloc"/no/normal/debug ANSI-C conforming |
---|
171 | malloc/calloc/realloc/free funcs */ |
---|
172 | #ifndef OM_PROVIDE_MALLOC |
---|
173 | #define OM_PROVIDE_MALLOC 0 |
---|
174 | #endif |
---|
175 | #endif /* OM_CONFIG_H */ |
---|