diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-07-11 15:38:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-07-11 15:38:42 -0400 |
| commit | a51d48201b5245dc2cc2bfb00e0ac8e7b52203d9 (patch) | |
| tree | 4fd950f4d9c6611aef3a48712857b004a7843c3c /src/stdlib/stdlib.c | |
| parent | 4c84fbdee185a63e60bc93798c0fc149bcd945fd (diff) | |
Use _Decimal64 instead of mpdecimal
Diffstat (limited to 'src/stdlib/stdlib.c')
| -rw-r--r-- | src/stdlib/stdlib.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 472be526..82470c41 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -5,7 +5,6 @@ #include <fcntl.h> #include <gc.h> #include <locale.h> -#include <mpdecimal.h> #include <signal.h> #include <stdbool.h> #include <stdint.h> @@ -71,12 +70,6 @@ static _Noreturn void fpe_handler(int sig, siginfo_t *info, void *userdata) _exit(1); } - -static void *GC_calloc(size_t n, size_t size) -{ - return GC_malloc(n*size); -} - public void tomo_init(void) { GC_INIT(); @@ -87,11 +80,6 @@ public void tomo_init(void) setlocale(LC_ALL, ""); assert(getrandom(TOMO_HASH_KEY, sizeof(TOMO_HASH_KEY), 0) == sizeof(TOMO_HASH_KEY)); - mpd_mallocfunc = GC_malloc; - mpd_callocfunc = GC_calloc; - mpd_reallocfunc = GC_realloc; - mpd_free = GC_free; - struct sigaction ill_sigaction; ill_sigaction.sa_sigaction = signal_handler; sigemptyset(&ill_sigaction.sa_mask); |
