Ticket #1354: Vtable.pm.patch
File Vtable.pm.patch, 0.9 KB (added by jimmy, 12 years ago) |
---|
-
lib/Parrot/Vtable.pm
224 224 (pmc)->vtable->$entry->[1]($args) 225 225 EOM 226 226 } 227 $macros .= <<'EOM';228 227 # Slot numbers 228 $macros .= <<"EOM"; 229 229 /* 230 * vtable method name defines for delegate230 * vtable slot names 231 231 */ 232 233 232 EOM 234 for my $entry ( @{$vtable} ) {235 my $uc_meth = uc $entry->[1];236 $macros .= <<"EOM";237 #define PARROT_VTABLE_${uc_meth}_METHNAME \"$entry->[1]\"238 EOM239 240 }241 $macros .= <<'EOM';242 243 EOM244 245 # Slot numbers246 233 my $vtable_slot_num = 9; 247 234 for my $entry ( @{$vtable} ) { 248 235 my $uc_meth = uc $entry->[1]; … … 254 241 255 242 # finally the name mapping 256 243 $macros .= <<'EOM'; 257 /* 258 * vtable slot names 259 */ 244 260 245 #ifdef PARROT_IN_OBJECTS_C 261 246 262 247 #define PARROT_VTABLE_LOW 9