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;
41 pm_constant_pool_bucket_type_t type: 2;
76#define PM_CONSTANT_ID_UNSET 0
90 id = ((
id >> 16) ^
id) * 0x45d9f3b;
91 id = ((
id >> 16) ^
id) * 0x45d9f3b;
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.