remove js_malloc from public

This commit is contained in:
2026-02-20 14:21:07 -06:00
parent c5ad4f0a99
commit f20fbedeea
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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;