[svn:parrot] r45159 - trunk/runtime/parrot/library

fperrad at svn.parrot.org fperrad at svn.parrot.org
Wed Mar 24 19:57:22 UTC 2010


Author: fperrad
Date: Wed Mar 24 19:57:19 2010
New Revision: 45159
URL: https://trac.parrot.org/parrot/changeset/45159

Log:
[distutils] add a variant of run_step (helper for nqp)

Modified:
   trunk/runtime/parrot/library/distutils.pir

Modified: trunk/runtime/parrot/library/distutils.pir
==============================================================================
--- trunk/runtime/parrot/library/distutils.pir	Wed Mar 24 18:00:36 2010	(r45158)
+++ trunk/runtime/parrot/library/distutils.pir	Wed Mar 24 19:57:19 2010	(r45159)
@@ -392,7 +392,7 @@
 
 =cut
 
-.sub 'run_step'
+.sub 'run_step' :multi()
     .param string name
     .param pmc kv :slurpy :named
     $P0 = get_global '%step'
@@ -411,6 +411,12 @@
     .return (1)
 .end
 
+.sub 'run_step' :multi(String,Hash)
+    .param string name
+    .param pmc hash
+    .tailcall run_step(name, hash :flat :named)
+.end
+
 =item register_step
 
 Register a step by its name


More information about the parrot-commits mailing list