Constify function tables
This commit is contained in:
parent
39511b8b23
commit
5889cbd7de
Notes:
git
2023-03-08 04:59:39 +00:00
@ -12848,7 +12848,7 @@ ibf_load_object_symbol(const struct ibf_load *load, const struct ibf_object_head
|
||||
}
|
||||
|
||||
typedef void (*ibf_dump_object_function)(struct ibf_dump *dump, VALUE obj);
|
||||
static ibf_dump_object_function dump_object_functions[RUBY_T_MASK+1] = {
|
||||
static const ibf_dump_object_function dump_object_functions[RUBY_T_MASK+1] = {
|
||||
ibf_dump_object_unsupported, /* T_NONE */
|
||||
ibf_dump_object_unsupported, /* T_OBJECT */
|
||||
ibf_dump_object_class, /* T_CLASS */
|
||||
@ -12941,7 +12941,7 @@ ibf_dump_object_object(struct ibf_dump *dump, VALUE obj)
|
||||
}
|
||||
|
||||
typedef VALUE (*ibf_load_object_function)(const struct ibf_load *load, const struct ibf_object_header *header, ibf_offset_t offset);
|
||||
static ibf_load_object_function load_object_functions[RUBY_T_MASK+1] = {
|
||||
static const ibf_load_object_function load_object_functions[RUBY_T_MASK+1] = {
|
||||
ibf_load_object_unsupported, /* T_NONE */
|
||||
ibf_load_object_unsupported, /* T_OBJECT */
|
||||
ibf_load_object_class, /* T_CLASS */
|
||||
|
Loading…
x
Reference in New Issue
Block a user