Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[codingstd] Trim lines to meet standard (without simultaneously causi…

…ng failures in c_parens.t).
  • Loading branch information...
commit f3a9b26db0b5d69fffd59dd50ae0b020ce82d22c 1 parent 126d255
@jkeenan jkeenan authored
Showing with 10 additions and 8 deletions.
  1. +3 −3 src/extend.c
  2. +7 −5 src/runcore/subprof.c
View
6 src/extend.c
@@ -341,9 +341,9 @@ If the function throws, the provided handler function is invoked
PARROT_EXPORT
void
Parrot_ext_try(PARROT_INTERP,
- ARGIN_NULLOK(void (*cfunction)(Parrot_Interp, ARGIN_NULLOK(void *))),
- ARGIN_NULLOK(void (*chandler)(Parrot_Interp, ARGIN_NULLOK(PMC *), ARGIN_NULLOK(void *))),
- ARGIN_NULLOK(void *data))
+ ARGIN_NULLOK(void (*cfunction)(Parrot_Interp, ARGIN_NULLOK(void *))),
+ ARGIN_NULLOK(void (*chandler)(Parrot_Interp, ARGIN_NULLOK(PMC *), ARGIN_NULLOK(void *))),
+ ARGIN_NULLOK(void *data))
{
ASSERT_ARGS(Parrot_ext_try)
if (cfunction) {
View
12 src/runcore/subprof.c
@@ -423,9 +423,9 @@ createlines(PARROT_INTERP, ARGIN(subprofiledata *spdata), ARGIN(subprofile *sp))
int i, lasti;
INTVAL *xdebug = sptodebug(interp, spdata, sp);
- sp->nlines = sp->subattrs->end_offs - sp->subattrs->start_offs;
- sp->lines = (lineinfo *) mem_sys_allocate_zeroed(((sp->nlines ? sp->nlines : 1) + 1)
- * sizeof (lineinfo));
+ sp->nlines = sp->subattrs->end_offs - sp->subattrs->start_offs;
+ sp->lines = (lineinfo *) mem_sys_allocate_zeroed(
+ ((sp->nlines ? sp->nlines : 1) + 1) * sizeof (lineinfo));
sp->lines[0].op_offs = sp->subattrs->start_offs; /* just in case */
for (i = lasti = 0; i < sp->nlines; i++) {
@@ -702,7 +702,8 @@ buildcallchain(PARROT_INTERP,
sp->rnext = rsp;
if (sp->nlines) {
int i;
- rsp->lines = (lineinfo *)mem_sys_allocate_zeroed((sp->nlines + 1) * sizeof (lineinfo));
+ rsp->lines = (lineinfo *)mem_sys_allocate_zeroed(
+ (sp->nlines + 1) * sizeof (lineinfo));
rsp->nlines = sp->nlines;
for (i = 0; i < sp->nlines + 1; i++)
rsp->lines[i].op_offs = sp->lines[i].op_offs;
@@ -764,7 +765,8 @@ buildcallchain(PARROT_INTERP,
int ncalls = ci - li->calls;
if ((ncalls & 7) == 0) {
- li->calls = (callinfo *) mem_sys_realloc(li->calls, (ncalls + (1 + 8)) * sizeof (*ci));
+ li->calls = (callinfo *) mem_sys_realloc(
+ li->calls, (ncalls + (1 + 8)) * sizeof (*ci));
ci = li->calls + ncalls;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.