1#ifndef PRISM_INTERNAL_CONSTANT_POOL_H
2#define PRISM_INTERNAL_CONSTANT_POOL_H
24typedef unsigned int pm_constant_pool_bucket_type_t;
27static const pm_constant_pool_bucket_type_t PM_CONSTANT_POOL_BUCKET_DEFAULT = 0;
30static const pm_constant_pool_bucket_type_t PM_CONSTANT_POOL_BUCKET_OWNED = 1;
33static const pm_constant_pool_bucket_type_t PM_CONSTANT_POOL_BUCKET_CONSTANT = 2;
46 pm_constant_pool_bucket_type_t type: 2;
76#define PM_CONSTANT_ID_UNSET 0
87 id = ((
id >> 16) ^ id) * 0x45d9f3b;
88 id = ((
id >> 16) ^ id) * 0x45d9f3b;
125size_t pm_constant_pool_init_size(uint32_t capacity);
A bump allocator for the prism parser.
A data structure that stores a set of strings.
uint32_t pm_constant_id_t
A constant id is a unique identifier for a constant in the constant pool.
#define PRISM_INLINE
Old Visual Studio versions do not support the inline keyword, so we need to define it to be __inline.
C99 shim for <stdbool.h>.