#include "snobol/c23_compat.h"
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
◆ snobol_calloc
| #define snobol_calloc calloc |
◆ snobol_check_alloc
| #define snobol_check_alloc |
( |
| ptr | ) |
|
Value:snobol_check_alloc(ptr) — NULL-check a heap allocation.
In STANDALONE builds this returns false and the pointer is null. In PHP builds the allocator never returns NULL, so this is a no-op that always returns true.
Usage: char *buf = snobol_malloc(n); if (!snobol_check_alloc(buf)) return ERROR_NOMEM;
Definition at line 60 of file snobol_internal.h.
◆ snobol_free
◆ SNOBOL_LOG
| #define SNOBOL_LOG |
( |
| fmt, |
|
|
| ... ) |
◆ snobol_malloc
| #define snobol_malloc malloc |
◆ snobol_realloc
| #define snobol_realloc realloc |
◆ STANDALONE_BUILD
| #define STANDALONE_BUILD 1 |
◆ anonymous enum
| Enumerator |
|---|
| SNBL_REG_NONE | |
| SNBL_REG_CAPTURE | |
| SNBL_REG_VARS | |
| SNBL_REG_COUNTERS | |
Definition at line 105 of file snobol_internal.h.
◆ snobol_bc_body_len()
| size_t snobol_bc_body_len |
( |
const uint8_t * | bc, |
|
|
size_t | bc_len ) |
◆ snobol_bc_register_classes()
| uint8_t snobol_bc_register_classes |
( |
const uint8_t * | bc, |
|
|
size_t | bc_len ) |