diff options
Diffstat (limited to 'fake-lib.h')
-rw-r--r-- | fake-lib.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -5,12 +5,5 @@ char *ascii(const char16_t *wstr, bool translate_slashes); | |||
5 | void system_argv(const char *cmd, ...); | 5 | void system_argv(const char *cmd, ...); |
6 | void system_argv_array(char **args); | 6 | void system_argv_array(char **args); |
7 | void c16cpy(char16_t *out, uint32_t *outsize, char *s); | 7 | void c16cpy(char16_t *out, uint32_t *outsize, char *s); |
8 | void *smalloc(size_t size); | ||
9 | void *srealloc(void *ptr, size_t size); | ||
10 | char *dupcat(const char *str, ...); | 8 | char *dupcat(const char *str, ...); |
11 | unsigned le(const unsigned char *buf, size_t len, size_t off, size_t nbytes); | 9 | unsigned le(const unsigned char *buf, size_t len, size_t off, size_t nbytes); |
12 | |||
13 | #define snew(type) ((type *)smalloc(sizeof(type))) | ||
14 | #define snewn(n,type) ((type *)smalloc((n)*sizeof(type))) | ||
15 | #define sresize(ptr,n,type) ((type *)srealloc(ptr,(n)*sizeof(type))) | ||
16 | #define sfree(ptr) free(ptr) | ||