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