diff --git a/source/quickjs-internal.h b/source/quickjs-internal.h index ea83d804..ff7ad08a 100644 --- a/source/quickjs-internal.h +++ b/source/quickjs-internal.h @@ -55,6 +55,9 @@ #include "nota.h" #include "wota.h" +void *js_malloc (JSContext *ctx, size_t size); +void *js_mallocz (JSContext *ctx, size_t size); + #if !defined(_WIN32) /* define it if printf uses the RNDN rounding mode instead of RNDNA */ #define CONFIG_PRINTF_RNDN diff --git a/source/quickjs.h b/source/quickjs.h index c1fc5911..de64a852 100644 --- a/source/quickjs.h +++ b/source/quickjs.h @@ -1013,9 +1013,6 @@ void *js_debugger_val_address (JSContext *js, JSValue val); /* ============================================================ 12. Memory Allocation ============================================================ */ -void *js_malloc (JSContext *ctx, size_t size); -void *js_mallocz (JSContext *ctx, size_t size); - /* Runtime-level memory functions */ void *js_malloc_rt (size_t size); void *js_mallocz_rt (size_t size); @@ -1023,7 +1020,7 @@ void js_free_rt (void *ptr); /* ============================================================ 13. Compilation and Bytecode - ============================================================ */ + ============================================================ */ struct cJSON; typedef struct MachCode MachCode;