Permalink
Browse files

[codingstd] Quiet c_parens.t.

parrot_hash_iterate() is an edge case where an aesthetically pleasing coding
format is inconsistent with our coding standards.  However, the fix applied
here is the same we have previously applied in src/hash.c,
src/pmc/callcontext.pmc, etc.
  • Loading branch information...
1 parent 94cbd48 commit 2a71336b3dc34d9c91b16a14e6b6e9a0efaaef9c @jkeenan jkeenan committed Sep 28, 2011
Showing with 4 additions and 8 deletions.
  1. +4 −8 src/runcore/subprof.c
View
@@ -850,8 +850,7 @@ dump_profile_data(PARROT_INTERP, ARGIN(subprofiledata *spdata))
totalops += sp->lines[j].ops;
totalticks += sp->lines[j].ticks;
}
- }
- );
+ });
fprintf(stderr, "events: ops ticks\n");
fprintf(stderr, "summary: %d %lld\n", totalops, totalticks);
@@ -923,8 +922,7 @@ dump_profile_data(PARROT_INTERP, ARGIN(subprofiledata *spdata))
(unsigned long long) ci->ticks);
}
}
- }
- );
+ });
/* also dump profiling root if there are more than one callees */
if (spdata->rootline.calls
@@ -1014,8 +1012,7 @@ free_profile_data(PARROT_INTERP, ARGIN(subprofiledata *spdata))
for (; sp; sp = rsp) {
rsp = sp->rnext;
free_subprofile(interp, sp);
- }
- );
+ });
Parrot_hash_destroy(interp, spdata->sphash);
}
Parrot_pmc_gc_unregister(interp, spdata->markpmcs);
@@ -1027,8 +1024,7 @@ free_profile_data(PARROT_INTERP, ARGIN(subprofiledata *spdata))
if (spdata->seg2debug) {
parrot_hash_iterate(spdata->seg2debug,
INTVAL *xdebug = (INTVAL *)_bucket->value;
- free(xdebug);
- );
+ free(xdebug););
Parrot_hash_destroy(interp, spdata->seg2debug);
}
free(spdata);

0 comments on commit 2a71336

Please sign in to comment.