[svn:parrot] r40916 - in branches/kill_parrot_cont: include/parrot src
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Tue Sep 1 23:26:01 UTC 2009
Author: whiteknight
Date: Tue Sep 1 23:25:59 2009
New Revision: 40916
URL: https://trac.parrot.org/parrot/changeset/40916
Log:
[kill_parrot_cont] remove the new_continuation and new_ret_continuation function. Patch from jrtayloriv++
Modified:
branches/kill_parrot_cont/include/parrot/sub.h
branches/kill_parrot_cont/src/sub.c
Modified: branches/kill_parrot_cont/include/parrot/sub.h
==============================================================================
--- branches/kill_parrot_cont/include/parrot/sub.h Tue Sep 1 22:27:36 2009 (r40915)
+++ branches/kill_parrot_cont/include/parrot/sub.h Tue Sep 1 23:25:59 2009 (r40916)
@@ -223,16 +223,6 @@
FUNC_MODIFIES(* ctx);
void mark_context_start(void);
-PARROT_MALLOC
-PARROT_CANNOT_RETURN_NULL
-PMC * new_continuation(PARROT_INTERP,
- ARGIN_NULLOK(PMC *to))
- __attribute__nonnull__(1);
-
-PARROT_MALLOC
-PARROT_CANNOT_RETURN_NULL
-PMC * new_ret_continuation(PARROT_INTERP)
- __attribute__nonnull__(1);
void Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc))
__attribute__nonnull__(1)
Modified: branches/kill_parrot_cont/src/sub.c
==============================================================================
--- branches/kill_parrot_cont/src/sub.c Tue Sep 1 22:27:36 2009 (r40915)
+++ branches/kill_parrot_cont/src/sub.c Tue Sep 1 23:25:59 2009 (r40916)
@@ -127,49 +127,6 @@
/*
-=item C<PMC * new_continuation(PARROT_INTERP, const PMC *to)>
-
-Returns a new C<PMC> to the context of C<to> with its own copy of the
-current interpreter context. If C<to> is C<NULL>, then the C<to_ctx> is set
-to the current context.
-
-=cut
-
-*/
-
-PARROT_MALLOC
-PARROT_CANNOT_RETURN_NULL
-PMC *
-new_continuation(PARROT_INTERP, ARGIN_NULLOK(PMC *to))
-{
- ASSERT_ARGS(new_continuation)
-
- PMC * const cc = to ?
- constant_pmc_new_init(interp, enum_class_Continuation, to) :
- constant_pmc_new(interp, enum_class_Continuation);
- return cc;
-}
-
-/*
-
-=item C<PMC * new_ret_continuation(PARROT_INTERP)>
-
-Returns a new RetContinuation C<PMC> pointing to the current context.
-
-=cut
-
-*/
-
-PARROT_MALLOC
-PARROT_CANNOT_RETURN_NULL
-PMC *
-new_ret_continuation(PARROT_INTERP)
-{
- ASSERT_ARGS(new_ret_continuation)
- PMC * const cc = pmc_new(interp, enum_class_RetContinuation);
- return cc;
-}
-
/*
More information about the parrot-commits
mailing list