spielwiese
Last change
on this file since 80f8f6c was
fbb4e4,
checked in by Felix Janda <felix.janda@…>, 9 years ago
|
omalloc: Use void *memalign(size_t, size_t) unconditionally
All current systems seem to use this prototype. Some systems
such as Linux using the musl c library have memalign in
<stdlib.h>, which conflicts with the previous prototype
void *memalign(void *, size_t).
|
-
Property mode set to
100644
|
File size:
835 bytes
|
Line | |
---|
1 | /******************************************************************* |
---|
2 | * File: omAllocFunc.h |
---|
3 | * Purpose: declaration of ANSI-C conforming malloc functions |
---|
4 | * which are sure to be functions, which start with the om prefix, |
---|
5 | * and end with the Func suffix. |
---|
6 | * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) |
---|
7 | * Created: 11/99 |
---|
8 | *******************************************************************/ |
---|
9 | |
---|
10 | void* omCallocFunc(size_t nmemb, size_t size); |
---|
11 | void* omMallocFunc(size_t size); |
---|
12 | void omFreeFunc(void* addr); |
---|
13 | void* omVallocFunc(size_t size); |
---|
14 | void* omMemalignFunc(size_t size_1, size_t size_2); |
---|
15 | void* omReallocFunc(void* old_addr, size_t new_size); |
---|
16 | char* omStrdupFunc(const char* addr); |
---|
17 | void* omReallocSizeFunc(void* old_addr, size_t old_size, size_t new_size); |
---|
18 | void omFreeSizeFunc(void* addr, size_t size); |
---|
Note: See
TracBrowser
for help on using the repository browser.