[svn:parrot] r47831 - trunk/src/pmc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Fri Jun 25 07:58:00 UTC 2010


Author: NotFound
Date: Fri Jun 25 07:57:59 2010
New Revision: 47831
URL: https://trac.parrot.org/parrot/changeset/47831

Log:
Don't use a name that conflicts in some platform and you don't need to protect it

Modified:
   trunk/src/pmc/default.pmc

Modified: trunk/src/pmc/default.pmc
==============================================================================
--- trunk/src/pmc/default.pmc	Fri Jun 25 07:29:01 2010	(r47830)
+++ trunk/src/pmc/default.pmc	Fri Jun 25 07:57:59 2010	(r47831)
@@ -23,9 +23,6 @@
 
 #define INT2KEY(i, k) key_new_integer((i), (k))
 
-/* undef 'interface' to keep MSVC happy */
-#undef interface
-
 /* HEADERIZER HFILE: none */
 /* HEADERIZER BEGIN: static */
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
@@ -903,18 +900,18 @@
 
 /*
 
-=item C<INTVAL does(STRING *interface)>
+=item C<INTVAL does(STRING *interface_name)>
 
-Reports whether the PMC "does" perform C<interface>.
-If the interface C<interface> is found in the PMC's interface list,
+Reports whether the PMC "does" perform C<interface_name>.
+If the interface C<interface_name> is found in the PMC's interface list,
 true (1) is returned; otherwise, false (0) is returned.
 
 =cut
 
 */
 
-    VTABLE INTVAL does(STRING *_interface) {
-        return Parrot_pmc_type_does(INTERP, _interface, SELF->vtable->base_type);
+    VTABLE INTVAL does(STRING *interface_name) {
+        return Parrot_pmc_type_does(INTERP, interface_name, SELF->vtable->base_type);
     }
 
 /*


More information about the parrot-commits mailing list