ref: 1f927edca12d9bfcf98a03fdf1e92596b7f006e6
parent: f2182dbd066326f8dcacf70c0026e17d6bd6e90b
author: Jacob Moody <moody@posixcafe.org>
date: Wed Dec 10 22:25:02 EST 2025
libnpe: add more limits
--- a/include/npe/limits.h
+++ b/include/npe/limits.h
@@ -13,6 +13,10 @@
#define SCHAR_MAX 0x7f
#endif
+#ifndef UCHAR_MAX
+#define UCHAR_MAX 0xff
+#endif
+
#ifndef INT8_MAX
#define INT8_MAX 0x7f
#endif
@@ -87,6 +91,10 @@
#ifndef ULLONG_MAX
#define ULLONG_MAX 0xffffffffffffffffULL
+#endif
+
+#ifndef INT8_MIN
+#define INT8_MIN (-INT8_MAX-1)
#endif
#ifndef INT16_MIN
--- a/include/npe/stdlib.h
+++ b/include/npe/stdlib.h
@@ -14,6 +14,7 @@
#define RAND_MAX 32767
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
+#define MB_CUR_MAX UTFmax
int setenv(char *name, char *value, int overwrite);
char *realpath(char *path, char *buffer);
--
⑨