@@ -594,7 +594,7 @@ static void set_int(PARROT_INTERP, STable *st, void *data, INTVAL value) {
594
594
P6opaqueREPRData * repr_data = (P6opaqueREPRData * )st -> REPR_data ;
595
595
if (repr_data -> unbox_int_slot >= 0 ) {
596
596
STable * st = repr_data -> flattened_stables [repr_data -> unbox_int_slot ];
597
- st -> REPR -> set_int (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_int_slot ], value );
597
+ st -> REPR -> box_funcs -> set_int (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_int_slot ], value );
598
598
}
599
599
else {
600
600
Parrot_ex_throw_from_c_args (interp , NULL , EXCEPTION_INVALID_OPERATION ,
@@ -608,7 +608,7 @@ static INTVAL get_int(PARROT_INTERP, STable *st, void *data) {
608
608
P6opaqueREPRData * repr_data = (P6opaqueREPRData * )st -> REPR_data ;
609
609
if (repr_data -> unbox_int_slot >= 0 ) {
610
610
STable * st = repr_data -> flattened_stables [repr_data -> unbox_int_slot ];
611
- return st -> REPR -> get_int (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_int_slot ]);
611
+ return st -> REPR -> box_funcs -> get_int (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_int_slot ]);
612
612
}
613
613
else {
614
614
Parrot_ex_throw_from_c_args (interp , NULL , EXCEPTION_INVALID_OPERATION ,
@@ -622,7 +622,7 @@ static void set_num(PARROT_INTERP, STable *st, void *data, FLOATVAL value) {
622
622
P6opaqueREPRData * repr_data = (P6opaqueREPRData * )st -> REPR_data ;
623
623
if (repr_data -> unbox_num_slot >= 0 ) {
624
624
STable * st = repr_data -> flattened_stables [repr_data -> unbox_num_slot ];
625
- st -> REPR -> set_num (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_num_slot ], value );
625
+ st -> REPR -> box_funcs -> set_num (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_num_slot ], value );
626
626
}
627
627
else {
628
628
Parrot_ex_throw_from_c_args (interp , NULL , EXCEPTION_INVALID_OPERATION ,
@@ -636,7 +636,7 @@ static FLOATVAL get_num(PARROT_INTERP, STable *st, void *data) {
636
636
P6opaqueREPRData * repr_data = (P6opaqueREPRData * )st -> REPR_data ;
637
637
if (repr_data -> unbox_num_slot >= 0 ) {
638
638
STable * st = repr_data -> flattened_stables [repr_data -> unbox_num_slot ];
639
- return st -> REPR -> get_num (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_num_slot ]);
639
+ return st -> REPR -> box_funcs -> get_num (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_num_slot ]);
640
640
}
641
641
else {
642
642
Parrot_ex_throw_from_c_args (interp , NULL , EXCEPTION_INVALID_OPERATION ,
@@ -650,7 +650,7 @@ static void set_str(PARROT_INTERP, STable *st, void *data, STRING *value) {
650
650
P6opaqueREPRData * repr_data = (P6opaqueREPRData * )st -> REPR_data ;
651
651
if (repr_data -> unbox_str_slot >= 0 ) {
652
652
STable * st = repr_data -> flattened_stables [repr_data -> unbox_str_slot ];
653
- st -> REPR -> set_str (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_str_slot ], value );
653
+ st -> REPR -> box_funcs -> set_str (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_str_slot ], value );
654
654
}
655
655
else {
656
656
Parrot_ex_throw_from_c_args (interp , NULL , EXCEPTION_INVALID_OPERATION ,
@@ -664,7 +664,7 @@ static STRING * get_str(PARROT_INTERP, STable *st, void *data) {
664
664
P6opaqueREPRData * repr_data = (P6opaqueREPRData * )st -> REPR_data ;
665
665
if (repr_data -> unbox_str_slot >= 0 ) {
666
666
STable * st = repr_data -> flattened_stables [repr_data -> unbox_str_slot ];
667
- return st -> REPR -> get_str (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_str_slot ]);
667
+ return st -> REPR -> box_funcs -> get_str (interp , st , (char * )data + repr_data -> attribute_offsets [repr_data -> unbox_str_slot ]);
668
668
}
669
669
else {
670
670
Parrot_ex_throw_from_c_args (interp , NULL , EXCEPTION_INVALID_OPERATION ,
@@ -857,7 +857,7 @@ REPROps * P6opaque_initialize(PARROT_INTERP) {
857
857
this_repr -> allocate = allocate ;
858
858
this_repr -> initialize = initialize ;
859
859
this_repr -> copy_to = copy_to ;
860
- this_repr -> attr_funcs = mem_allocate_typed (REPROps_Attributes );
860
+ this_repr -> attr_funcs = mem_allocate_typed (REPROps_Attribute );
861
861
this_repr -> attr_funcs -> get_attribute_boxed = get_attribute_boxed ;
862
862
this_repr -> attr_funcs -> get_attribute_ref = get_attribute_ref ;
863
863
this_repr -> attr_funcs -> bind_attribute_boxed = bind_attribute_boxed ;
0 commit comments