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