aboutsummaryrefslogtreecommitdiff
path: root/fake-lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'fake-lib.h')
-rw-r--r--fake-lib.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fake-lib.h b/fake-lib.h
index 0b7f8f9..8f8774c 100644
--- a/fake-lib.h
+++ b/fake-lib.h
@@ -5,12 +5,5 @@ char *ascii(const char16_t *wstr, bool translate_slashes);
5void system_argv(const char *cmd, ...); 5void system_argv(const char *cmd, ...);
6void system_argv_array(char **args); 6void system_argv_array(char **args);
7void c16cpy(char16_t *out, uint32_t *outsize, char *s); 7void c16cpy(char16_t *out, uint32_t *outsize, char *s);
8void *smalloc(size_t size);
9void *srealloc(void *ptr, size_t size);
10char *dupcat(const char *str, ...); 8char *dupcat(const char *str, ...);
11unsigned le(const unsigned char *buf, size_t len, size_t off, size_t nbytes); 9unsigned 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)