mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Backport from xs.
This commit is contained in:
parent
25ca709e48
commit
8d9289a815
2 changed files with 10 additions and 1 deletions
9
xs.h
9
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);
|
||||
|
|
|
@ -1 +1 @@
|
|||
/* 5c255b45c8cd5d6c01c983b03e635936db12da03 */
|
||||
/* bc5b36414b704fe4cd07f2be58133b82330ce435 */
|
||||
|
|
Loading…
Reference in a new issue