Permalink
Browse files

[codingstds] rerun headerizer and fix some codingstd nits

git-svn-id: https://svn.parrot.org/parrot/branches/kill_parrot_cont@40943 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent db2eedf commit a42f0e1a64e0aed52038e769070043334bbc66ed cotto committed Sep 3, 2009
Showing with 8 additions and 16 deletions.
  1. +2 −10 include/parrot/sub.h
  2. +4 −4 src/pmc/continuation.pmc
  3. +2 −2 src/sub.c
View
@@ -223,20 +223,16 @@ void mark_context(PARROT_INTERP, ARGMOD(Parrot_Context* ctx))
FUNC_MODIFIES(* ctx);
void mark_context_start(void);
-
void Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
FUNC_MODIFIES(*sub_pmc);
-void Parrot_continuation_check(PARROT_INTERP,
- ARGIN(const PMC *pmc))
+void Parrot_continuation_check(PARROT_INTERP, ARGIN(const PMC *pmc))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
-
-void Parrot_continuation_rewind_environment(PARROT_INTERP,
- ARGIN(PMC *pmc))
+void Parrot_continuation_rewind_environment(PARROT_INTERP, ARGIN(PMC *pmc))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
@@ -274,10 +270,6 @@ PMC* Parrot_find_pad(PARROT_INTERP,
PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(ctx)
#define ASSERT_ARGS_mark_context_start __attribute__unused__ int _ASSERT_ARGS_CHECK = 0
-#define ASSERT_ARGS_new_continuation __attribute__unused__ int _ASSERT_ARGS_CHECK = \
- PARROT_ASSERT_ARG(interp)
-#define ASSERT_ARGS_new_ret_continuation __attribute__unused__ int _ASSERT_ARGS_CHECK = \
- PARROT_ASSERT_ARG(interp)
#define ASSERT_ARGS_Parrot_capture_lex __attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(sub_pmc)
View
@@ -92,7 +92,7 @@ Initializes the continuation.
/*if they pass in a PMC to initialize with*/
VTABLE void init_pmc(PMC *values) {
Parrot_Continuation_attributes *attrs = PARROT_CONTINUATION(SELF);
-
+
attrs->to_ctx = PARROT_CONTINUATION(values)->to_ctx;
attrs->from_ctx = Parrot_context_ref(interp, CONTEXT(interp));
attrs->runloop_id = 0;
@@ -113,7 +113,7 @@ Initializes the continuation.
invalidate_retc_context(INTERP, SELF);
}
-
+
/*
@@ -128,8 +128,8 @@ Marks the continuation as live.
VTABLE void mark() {
Parrot_Continuation_attributes *cc = PARROT_CONTINUATION(SELF);
- if(cc->seg)
- Parrot_gc_mark_PObj_alive(interp, (PObj *)cc->seg);
+ if (cc->seg)
+ Parrot_gc_mark_PObj_alive(interp, (PObj *)cc->seg);
if (cc->to_ctx)
mark_context(INTERP, cc->to_ctx);
View
@@ -528,7 +528,7 @@ parrot_new_closure(PARROT_INTERP, ARGIN(PMC *sub_pmc))
/*
-=item C<void Parrot_continuation_check(PARROT_INTERP, const PMC *pmc>
+=item C<void Parrot_continuation_check(PARROT_INTERP, const PMC *pmc)>
Verifies that the provided continuation is sane.
@@ -557,7 +557,7 @@ Parrot_continuation_check(PARROT_INTERP, ARGIN(const PMC *pmc))
/*
-=item C<void Parrot_continuation_rewind_environment(PARROT_INTERP, PMC *pmc>
+=item C<void Parrot_continuation_rewind_environment(PARROT_INTERP, PMC *pmc)>
Restores the appropriate context for the continuation.

0 comments on commit a42f0e1

Please sign in to comment.