irep.h: rename mrb_pool_value to mrb_irep_pool

mrb_pool_value is a structure that represents a value in the irep
literal pool and is unrelated to mrb_pool, which performs region-based
memory management. It has been renamed mrb_irep_pool to avoid confusion.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-10-28 17:25:40 +09:00
parent 2436b32f1f
commit 62ef5db13e
5 changed files with 51 additions and 51 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ enum irep_pool_type {
#define IREP_TT_NFLAG 1 /* number (non string) flag */
#define IREP_TT_SFLAG 2 /* static string flag */
typedef struct mrb_pool_value {
typedef struct mrb_irep_pool {
uint32_t tt; /* packed type and length (for string) */
union {
const char *str;
@@ -37,7 +37,7 @@ typedef struct mrb_pool_value {
mrb_float f;
#endif
} u;
} mrb_pool_value;
} mrb_irep_pool;
enum mrb_catch_type {
MRB_CATCH_RESCUE = 0,
@@ -65,7 +65,7 @@ struct mrb_irep {
* structure from bloating. The catch handler table can be obtained with
* `mrb_irep_catch_handler_table(irep)`.
*/
const mrb_pool_value *pool;
const mrb_irep_pool *pool;
const mrb_sym *syms;
const struct mrb_irep *const *reps;