1
0
mirror of https://github.com/janet-lang/janet synced 2026-04-22 14:51:27 +00:00

refactor(c-api): Dogfooding usage of size types and limits

This commit is contained in:
GrayJack
2024-04-16 16:22:28 -03:00
parent 3f54b282dd
commit b483c9e2e4
14 changed files with 65 additions and 62 deletions

View File

@@ -380,7 +380,11 @@ typedef struct JanetOSRWLock JanetOSRWLock;
#include <stdio.h>
/* signed size */
#ifdef _SSIZE_T
typedef ssize_t ssize_t;
#else
typedef ptrdiff_t ssize_t;
#endif
/* What to do when out of memory */
#ifndef JANET_OUT_OF_MEMORY