[svn:parrot] r42923 - trunk/lib/Parrot
cotto at svn.parrot.org
cotto at svn.parrot.org
Mon Dec 7 07:27:43 UTC 2009
Author: cotto
Date: Mon Dec 7 07:27:43 2009
New Revision: 42923
URL: https://trac.parrot.org/parrot/changeset/42923
Log:
[vtable] don't emit the now-unused PARROT_VTABLE_FOO_METHNAME macros in vtable.h
patch courtesy of JimmyZ++
Modified:
trunk/lib/Parrot/Vtable.pm
Modified: trunk/lib/Parrot/Vtable.pm
==============================================================================
--- trunk/lib/Parrot/Vtable.pm Mon Dec 7 07:09:52 2009 (r42922)
+++ trunk/lib/Parrot/Vtable.pm Mon Dec 7 07:27:43 2009 (r42923)
@@ -224,25 +224,12 @@
(pmc)->vtable->$entry->[1]($args)
EOM
}
- $macros .= <<'EOM';
-
+ # Slot numbers
+ $macros .= <<"EOM";
/*
- * vtable method name defines for delegate
+ * vtable slot names
*/
-
EOM
- for my $entry ( @{$vtable} ) {
- my $uc_meth = uc $entry->[1];
- $macros .= <<"EOM";
-#define PARROT_VTABLE_${uc_meth}_METHNAME \"$entry->[1]\"
-EOM
-
- }
- $macros .= <<'EOM';
-
-EOM
-
- # Slot numbers
my $vtable_slot_num = 9;
for my $entry ( @{$vtable} ) {
my $uc_meth = uc $entry->[1];
@@ -254,9 +241,7 @@
# finally the name mapping
$macros .= <<'EOM';
-/*
- * vtable slot names
- */
+
#ifdef PARROT_IN_OBJECTS_C
#define PARROT_VTABLE_LOW 9
More information about the parrot-commits
mailing list