[svn:parrot] r41897 - in trunk: include/parrot src

jonathan at svn.parrot.org jonathan at svn.parrot.org
Sat Oct 17 13:26:15 UTC 2009


Author: jonathan
Date: Sat Oct 17 13:26:14 2009
New Revision: 41897
URL: https://trac.parrot.org/parrot/changeset/41897

Log:
[core] Rakudo needs to be able to control lexical/closure semantics from within its binder, meaning we need to be able to call Parrot_capture_lex. Make this possible, since it seems there's no other way to get at this functionality that's in the existing API.

Modified:
   trunk/include/parrot/sub.h
   trunk/src/sub.c

Modified: trunk/include/parrot/sub.h
==============================================================================
--- trunk/include/parrot/sub.h	Sat Oct 17 13:23:04 2009	(r41896)
+++ trunk/include/parrot/sub.h	Sat Oct 17 13:26:14 2009	(r41897)
@@ -217,6 +217,7 @@
         FUNC_MODIFIES(*cont);
 
 void mark_context_start(void);
+PARROT_EXPORT
 void Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc))
         __attribute__nonnull__(1)
         __attribute__nonnull__(2)

Modified: trunk/src/sub.c
==============================================================================
--- trunk/src/sub.c	Sat Oct 17 13:23:04 2009	(r41896)
+++ trunk/src/sub.c	Sat Oct 17 13:26:14 2009	(r41897)
@@ -462,6 +462,7 @@
 
 */
 
+PARROT_EXPORT
 void
 Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc))
 {


More information about the parrot-commits mailing list