Ticket #5112: xscreensaver-5.27-comment_style-1.patch

File xscreensaver-5.27-comment_style-1.patch, 1.0 KB (added by Fernando de Oliveira, 11 years ago)

patcch to fix comments syntax

  • TabularUnified hacks/delaunay.c

    a b  
    8787  dy = yp - *yc;
    8888  drsqr = dx*dx + dy*dy;
    8989
    90   // Original
    91   //return((drsqr <= *rsqr) ? TRUE : FALSE);
    92   // Proposed by Chuck Morris
     90  /* Original
     91    return((drsqr <= *rsqr) ? TRUE : FALSE);
     92     Proposed by Chuck Morris */
    9393  return((drsqr - *rsqr) <= EPSILON ? TRUE : FALSE);
    9494}
    9595
  • TabularUnified hacks/tessellimage.c

    a b  
    507507      out[i].p = (n > 0
    508508                  ? (XPoint *) calloc (out[i].npoints + 1, sizeof (*out[i].p))
    509509                  : 0);
    510 //printf("%d: ", i);
     510/*printf("%d: ", i);*/
    511511      for (j = 0; j < out[i].npoints; j++)
    512512        {
    513513          ITRIANGLE *tt = &v[t->tri[j]];
    514514          out[i].p[j].x = (p[tt->p1].x + p[tt->p2].x + p[tt->p3].x) / 3;
    515515          out[i].p[j].y = (p[tt->p1].y + p[tt->p2].y + p[tt->p3].y) / 3;
    516 //printf(" [%d: %d %d]", j, out[i].p[j].x, out[i].p[j].y);
     516/*printf(" [%d: %d %d]", j, out[i].p[j].x, out[i].p[j].y);*/
    517517        }
    518 //printf("\n");
     518/*printf("\n");*/
    519519    }
    520520
    521521  free (vert_to_tri);