Permalink
Browse files

[codingstd] C-style coda needed. No cuddled elses.

  • Loading branch information...
1 parent 540a832 commit 9703ef553e93b1dae99cede20916c8a813c0fa5a @jkeenan jkeenan committed Dec 5, 2010
Showing with 16 additions and 2 deletions.
  1. +6 −0 include/parrot/api.h
  2. +10 −2 src/embed/api.c
@@ -446,3 +446,9 @@ imcc_run_api(ARGMOD(Parrot_PMC interp_pmc), ARGIN(const char *sourcefile), int a
#endif /* PARROT_API_H_GUARD */
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
+ */
View
@@ -33,7 +33,8 @@ Parrot_api_get_result(Parrot_PMC interp_pmc, ARGOUT(Parrot_Int *is_error),
if (PMC_IS_NULL(exception)) {
*is_error = 0;
*errmsg = STRINGNULL;
- } else {
+ }
+ else {
*is_error = !interp->exit_code;
*errmsg = VTABLE_get_string(interp, *exception);
}
@@ -92,7 +93,8 @@ Parrot_api_set_runcore(Parrot_PMC interp_pmc, ARGIN(const char * corename),
if (trace) {
Parrot_pcc_trace_flags_on(interp, interp->ctx, trace);
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, "slow"));
- } else {
+ }
+ else {
if (!strcmp(corename, "slow") || !strcmp(corename, "bounds"))
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, "slow"));
else if (!strcmp(corename, "fast") ||
@@ -168,6 +170,8 @@ Parrot_api_destroy_interpreter(Parrot_PMC interp_pmc)
/*
+=over 4
+
=item C<PARROT_API Parrot_Int Parrot_api_load_bytecode_file(Parrot_PMC
interp_pmc, const char *filename, Parrot_PMC * pbc)>
@@ -454,6 +458,10 @@ Parrot_api_wrap_imcc_hack(Parrot_PMC interp_pmc, const char * sourcefile,
EMBED_API_CALLOUT(interp_pmc, interp)
}
+=back
+
+=cut
+
/*
* Local variables:
* c-file-style: "parrot"

0 comments on commit 9703ef5

Please sign in to comment.