about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-10-23 19:19:30 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-10-23 19:19:30 +0200
commit95622ca964ab37dff95e48d9d49c943df06b30d5 (patch)
treef64db50dc3659e9d1e6165138da89d63eaee915b /src/include
parent76b63de7542efe4b0bc56710eece0d0aa3b7579f (diff)
downloadbox64-95622ca964ab37dff95e48d9d49c943df06b30d5.tar.gz
box64-95622ca964ab37dff95e48d9d49c943df06b30d5.zip
Forgot a bunch of other box_ malloc/realloc/calloc/free use
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/khash.h8
-rwxr-xr-xsrc/include/wrappedlibs.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/khash.h b/src/include/khash.h
index dfce7aff..9d20a0e6 100755
--- a/src/include/khash.h
+++ b/src/include/khash.h
@@ -167,16 +167,16 @@ typedef khint_t khiter_t;
 #endif
 
 #ifndef kcalloc
-#define kcalloc(N,Z) calloc(N,Z)
+#define kcalloc(N,Z) box_calloc(N,Z)
 #endif
 #ifndef kmalloc
-#define kmalloc(Z) malloc(Z)
+#define kmalloc(Z) box_malloc(Z)
 #endif
 #ifndef krealloc
-#define krealloc(P,Z) realloc(P,Z)
+#define krealloc(P,Z) box_realloc(P,Z)
 #endif
 #ifndef kfree
-#define kfree(P) free(P)
+#define kfree(P) box_free(P)
 #endif
 
 static const double __ac_HASH_UPPER = 0.77;
diff --git a/src/include/wrappedlibs.h b/src/include/wrappedlibs.h
index 871f7af0..7bb4d5a2 100755
--- a/src/include/wrappedlibs.h
+++ b/src/include/wrappedlibs.h
@@ -10,8 +10,8 @@ typedef void (*wrappedlib_fini_t)(library_t * lib);
 typedef int (*wrappedlib_get_t)(library_t* lib, const char* name, uintptr_t *offs, uintptr_t *sz, int* weak, int version, const char* vername, int local);
 
 void setNeededLibs(library_t* lib, int n, ...);
-#define SETALT(A)       lib->w.altmy = strdup(#A)
-#define SETALTPREFIX(A) lib->w.altprefix = strdup(A)
+#define SETALT(A)       lib->w.altmy = box_strdup(#A)
+#define SETALTPREFIX(A) lib->w.altprefix = box_strdup(A)
 
 typedef struct wrappedlib_s {
     const char*         name;