diff options
Diffstat (limited to 'fake-lib.h')
-rw-r--r-- | fake-lib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fake-lib.h b/fake-lib.h new file mode 100644 index 0000000..65fed63 --- /dev/null +++ b/fake-lib.h | |||
@@ -0,0 +1,9 @@ | |||
1 | char *ascii(const char16_t *wstr, bool translate_slashes); | ||
2 | void system_argv(const char *cmd, ...); | ||
3 | void c16cpy(char16_t *out, uint32_t *outsize, char *s); | ||
4 | void *smalloc(size_t size); | ||
5 | char *dupcat(const char *str, ...); | ||
6 | |||
7 | #define snew(type) ((type *)smalloc(sizeof(type))) | ||
8 | #define snewn(n,type) ((type *)smalloc((n)*sizeof(type))) | ||
9 | #define sfree(ptr) free(ptr) | ||