blob: 96159563508985afffc596d90fde79f29ad4f05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* zutil_p.h -- Private inline functions used internally in zlib-ng
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#ifndef ZUTIL_P_H
#define ZUTIL_P_H
#include <stdlib.h>
// Zlib-ng's default alloc/free implementation, used unless
// application supplies its own alloc/free functions.
static inline void *zng_alloc(size_t size) {
return malloc(size);
}
static inline void zng_free(void *ptr) {
free(ptr);
}
#endif
|