Skip to content
This repository
Browse code

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

…ng failures in c_parens.t).
  • Loading branch information...
commit f3a9b26db0b5d69fffd59dd50ae0b020ce82d22c 1 parent 126d255
James E Keenan authored October 11, 2011
6  src/extend.c
@@ -341,9 +341,9 @@ If the function throws, the provided handler function is invoked
341 341
 PARROT_EXPORT
342 342
 void
343 343
 Parrot_ext_try(PARROT_INTERP,
344  
-                ARGIN_NULLOK(void (*cfunction)(Parrot_Interp, ARGIN_NULLOK(void *))),
345  
-                ARGIN_NULLOK(void (*chandler)(Parrot_Interp, ARGIN_NULLOK(PMC *), ARGIN_NULLOK(void *))),
346  
-                ARGIN_NULLOK(void *data))
  344
+    ARGIN_NULLOK(void (*cfunction)(Parrot_Interp, ARGIN_NULLOK(void *))),
  345
+    ARGIN_NULLOK(void (*chandler)(Parrot_Interp, ARGIN_NULLOK(PMC *), ARGIN_NULLOK(void *))),
  346
+    ARGIN_NULLOK(void *data))
347 347
 {
348 348
     ASSERT_ARGS(Parrot_ext_try)
349 349
     if (cfunction) {
12  src/runcore/subprof.c
@@ -423,9 +423,9 @@ createlines(PARROT_INTERP, ARGIN(subprofiledata *spdata), ARGIN(subprofile *sp))
423 423
         int i, lasti;
424 424
         INTVAL *xdebug = sptodebug(interp, spdata, sp);
425 425
 
426  
-        sp->nlines           = sp->subattrs->end_offs - sp->subattrs->start_offs;
427  
-        sp->lines            = (lineinfo *) mem_sys_allocate_zeroed(((sp->nlines ? sp->nlines : 1) + 1)
428  
-                                                                        * sizeof (lineinfo));
  426
+        sp->nlines  = sp->subattrs->end_offs - sp->subattrs->start_offs;
  427
+        sp->lines   = (lineinfo *) mem_sys_allocate_zeroed(
  428
+                ((sp->nlines ? sp->nlines : 1) + 1) * sizeof (lineinfo));
429 429
         sp->lines[0].op_offs = sp->subattrs->start_offs;    /* just in case */
430 430
 
431 431
         for (i = lasti = 0; i < sp->nlines; i++) {
@@ -702,7 +702,8 @@ buildcallchain(PARROT_INTERP,
702 702
             sp->rnext     = rsp;
703 703
             if (sp->nlines) {
704 704
                 int i;
705  
-                rsp->lines = (lineinfo *)mem_sys_allocate_zeroed((sp->nlines + 1) * sizeof (lineinfo));
  705
+                rsp->lines = (lineinfo *)mem_sys_allocate_zeroed(
  706
+                        (sp->nlines + 1) * sizeof (lineinfo));
706 707
                 rsp->nlines = sp->nlines;
707 708
                 for (i = 0; i < sp->nlines + 1; i++)
708 709
                     rsp->lines[i].op_offs = sp->lines[i].op_offs;
@@ -764,7 +765,8 @@ buildcallchain(PARROT_INTERP,
764 765
                 int ncalls = ci - li->calls;
765 766
 
766 767
                 if ((ncalls & 7) == 0) {
767  
-                    li->calls = (callinfo *) mem_sys_realloc(li->calls, (ncalls + (1 + 8)) * sizeof (*ci));
  768
+                    li->calls = (callinfo *) mem_sys_realloc(
  769
+                            li->calls, (ncalls + (1 + 8)) * sizeof (*ci));
768 770
                     ci = li->calls + ncalls;
769 771
                 }
770 772
             }

0 notes on commit f3a9b26

Please sign in to comment.
Something went wrong with that request. Please try again.