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 | 35.6k | static inline void *zng_alloc(size_t size) { |
13 | 35.6k | return (void *)malloc(size); |
14 | 35.6k | } Line | Count | Source | 12 | 11.8k | static inline void *zng_alloc(size_t size) { | 13 | 11.8k | return (void *)malloc(size); | 14 | 11.8k | } |
Unexecuted instantiation: gzread.c:zng_alloc Unexecuted instantiation: gzwrite.c:zng_alloc Line | Count | Source | 12 | 23.7k | static inline void *zng_alloc(size_t size) { | 13 | 23.7k | return (void *)malloc(size); | 14 | 23.7k | } |
|
15 | | |
16 | 35.6k | static inline void zng_free(void *ptr) { |
17 | 35.6k | free(ptr); |
18 | 35.6k | } Line | Count | Source | 16 | 5.95k | static inline void zng_free(void *ptr) { | 17 | 5.95k | free(ptr); | 18 | 5.95k | } |
Line | Count | Source | 16 | 5.94k | static inline void zng_free(void *ptr) { | 17 | 5.94k | free(ptr); | 18 | 5.94k | } |
Unexecuted instantiation: gzwrite.c:zng_free Line | Count | Source | 16 | 23.7k | static inline void zng_free(void *ptr) { | 17 | 23.7k | free(ptr); | 18 | 23.7k | } |
|
19 | | |
20 | | #endif |