Skip to content

Commit

Permalink
[codingstd] Conform to linelength, C parens, C args asserts, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed Aug 10, 2012
1 parent 92d8d2b commit 81ed05e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion compilers/imcc/pbc.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1779,7 +1779,10 @@ build_key(ARGMOD(imc_info_t * imcc), ARGIN(SymReg *key_reg),
Parrot_key_set_register(imcc->interp, tail, regno, KEY_pmc_FLAG); Parrot_key_set_register(imcc->interp, tail, regno, KEY_pmc_FLAG);
break; break;
default: default:
IMCC_fatal(imcc, 1, "build_key: wrong register set '%c' (%d) in keyed access. Expects one of 'I', 'S' or 'P'\n", r->set, r->set); IMCC_fatal(imcc, 1,
"build_key: wrong register set '%c' (%d) in keyed access. "
"Expects one of 'I', 'S' or 'P'\n",
r->set, r->set);
} }


IMCC_debug(imcc, DEBUG_PBC_CONST, " keypart reg %s %c%d\n", IMCC_debug(imcc, DEBUG_PBC_CONST, " keypart reg %s %c%d\n",
Expand Down
4 changes: 2 additions & 2 deletions src/packfile/api.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ PARROT_WARN_UNUSED_RESULT
PMC * PMC *
Parrot_pf_all_tagged_pmcs(PARROT_INTERP, ARGIN(PMC * pfpmc)) Parrot_pf_all_tagged_pmcs(PARROT_INTERP, ARGIN(PMC * pfpmc))
{ {
ASSERT_ARGS(Parrot_pf_all_tags_list) ASSERT_ARGS(Parrot_pf_all_tagged_pmcs)
PackFile * const pf = (PackFile*)VTABLE_get_pointer(interp, pfpmc); PackFile * const pf = (PackFile*)VTABLE_get_pointer(interp, pfpmc);
PMC * const taghash = Parrot_pmc_new(interp, enum_class_Hash); PMC * const taghash = Parrot_pmc_new(interp, enum_class_Hash);


Expand Down Expand Up @@ -624,7 +624,7 @@ Parrot_pf_all_subs(PARROT_INTERP, ARGIN(PMC *pfpmc))
/* /*
=item C<static int sub_pragma(PARROT_INTERP, pbc_action_enum_t action, const PMC =item C<static int sub_pragma(PARROT_INTERP, pbc_action_enum_t action, const PMC
*sub_pmc) *sub_pmc)>
Checks B<sub_pmc>'s pragmas (e.g. flags like C<:load>, C<:main>, etc.) Checks B<sub_pmc>'s pragmas (e.g. flags like C<:load>, C<:main>, etc.)
returning 1 if the sub should be run for C<action>, a C<pbc_action_enum_t>. returning 1 if the sub should be run for C<action>, a C<pbc_action_enum_t>.
Expand Down
4 changes: 2 additions & 2 deletions src/pmc/packfileview.pmc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ Determine if the given tag has been marked initialized


METHOD all_tags() { METHOD all_tags() {
PMC * const array = Parrot_pf_all_tags_list(interp, SELF); PMC * const array = Parrot_pf_all_tags_list(interp, SELF);
RETURN (PMC *array); RETURN(PMC *array);
} }


METHOD all_tagged_pmcs() { METHOD all_tagged_pmcs() {
PMC * const hash = Parrot_pf_all_tagged_pmcs(INTERP, SELF); PMC * const hash = Parrot_pf_all_tagged_pmcs(INTERP, SELF);
RETURN (PMC *hash); RETURN(PMC *hash);
} }


METHOD mark_initialized(STRING *tag) { METHOD mark_initialized(STRING *tag) {
Expand Down

0 comments on commit 81ed05e

Please sign in to comment.