summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-15 17:39:38 +0200
committerdefault <nobody@localhost>2023-06-15 17:39:38 +0200
commit8d9289a8151538fbf9554a2c252e2d2bf81c9456 (patch)
tree411bd49bb991cbf427fb098e3f59ebd876b72ce4
parent25ca709e48d2e728c7e147d7adac4aa8dea0b206 (diff)
Backport from xs.
-rw-r--r--xs.h9
-rw-r--r--xs_version.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/xs.h b/xs.h
index c9825b9..6344816 100644
--- a/xs.h
+++ b/xs.h
@@ -132,9 +132,18 @@ int xs_is_hex(const char *str);
#define XS_ASSERT_TYPE_NULL(v, t) (void)(0)
#endif
+extern xs_val xs_stock_null[];
+extern xs_val xs_stock_true[];
+extern xs_val xs_stock_false[];
+
#ifdef XS_IMPLEMENTATION
+xs_val xs_stock_null[] = { XSTYPE_NULL };
+xs_val xs_stock_true[] = { XSTYPE_TRUE };
+xs_val xs_stock_false[] = { XSTYPE_FALSE };
+
+
void *_xs_realloc(void *ptr, size_t size, const char *file, int line, const char *func)
{
d_char *ndata = realloc(ptr, size);
diff --git a/xs_version.h b/xs_version.h
index b589fed..8fd8e70 100644
--- a/xs_version.h
+++ b/xs_version.h
@@ -1 +1 @@
-/* 5c255b45c8cd5d6c01c983b03e635936db12da03 */
+/* bc5b36414b704fe4cd07f2be58133b82330ce435 */