aboutsummaryrefslogtreecommitdiff
path: root/fake-lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'fake-lib.h')
-rw-r--r--fake-lib.h9
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 @@
1char *ascii(const char16_t *wstr, bool translate_slashes);
2void system_argv(const char *cmd, ...);
3void c16cpy(char16_t *out, uint32_t *outsize, char *s);
4void *smalloc(size_t size);
5char *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)