[BACK]Return to interpol.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Diff for /OpenXM_contrib/gnuplot/Attic/interpol.c between version 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2000/01/22 14:15:59 version 1.1.1.3, 2003/09/15 07:09:25
Line 188  static int solve_five_diag __PROTO((five_diag m[], dou
Line 188  static int solve_five_diag __PROTO((five_diag m[], dou
 static spline_coeff *cp_approx_spline __PROTO((struct curve_points * plot, int first_point, int num_points));  static spline_coeff *cp_approx_spline __PROTO((struct curve_points * plot, int first_point, int num_points));
 static spline_coeff *cp_tridiag __PROTO((struct curve_points * plot, int first_point, int num_points));  static spline_coeff *cp_tridiag __PROTO((struct curve_points * plot, int first_point, int num_points));
 static void do_cubic __PROTO((struct curve_points * plot, spline_coeff * sc, int first_point, int num_points, struct coordinate * dest));  static void do_cubic __PROTO((struct curve_points * plot, spline_coeff * sc, int first_point, int num_points, struct coordinate * dest));
 static int compare_points __PROTO((struct coordinate * p1, struct coordinate * p2));  int compare_points __PROTO((SORTFUNC_ARGS p1, SORTFUNC_ARGS p2));
   
   
 /*  /*
Line 923  struct curve_points *plot;
Line 923  struct curve_points *plot;
  * (MGR 1992)   * (MGR 1992)
  */   */
   
 static int compare_points(p1, p2)  int compare_points(argp1, argp2)
 struct coordinate *p1;      SORTFUNC_ARGS argp1;
 struct coordinate *p2;      SORTFUNC_ARGS argp2;
 {  {
       const struct coordinate *p1 = argp1;
       const struct coordinate *p2 = argp2;
   
     if (p1->x > p2->x)      if (p1->x > p2->x)
         return (1);          return (1);
     if (p1->x < p2->x)      if (p1->x < p2->x)
Line 935  struct coordinate *p2;
Line 938  struct coordinate *p2;
 }  }
   
 void sort_points(plot)  void sort_points(plot)
 struct curve_points *plot;      struct curve_points *plot;
 {  {
     int first_point, num_points;      int first_point, num_points;
   
Line 943  struct curve_points *plot;
Line 946  struct curve_points *plot;
     while ((num_points = next_curve(plot, &first_point)) > 0) {      while ((num_points = next_curve(plot, &first_point)) > 0) {
         /* Sort this set of points, does qsort handle 1 point correctly? */          /* Sort this set of points, does qsort handle 1 point correctly? */
         qsort((char *) (plot->points + first_point), num_points,          qsort((char *) (plot->points + first_point), num_points,
               sizeof(struct coordinate), (sortfunc) compare_points);                sizeof(struct coordinate), compare_points);
         first_point += num_points;          first_point += num_points;
     }      }
     return;      return;

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>