X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fspline.h;h=a5a366cbd977e50c7d7e70edbda224661a29b71a;hp=998c049d5af5834a0a6d2cddaa0838e457acb0b7;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b diff --git a/utils/spline.h b/utils/spline.h index 998c049d..a5a366cb 100644 --- a/utils/spline.h +++ b/utils/spline.h @@ -27,34 +27,25 @@ #ifndef _SPLINE_H_ #define _SPLINE_H_ -#ifdef VMS -# ifndef __DECC - typedef unsigned int u_int; -# else -# if __DECC_VER < 50200000 - typedef unsigned int u_int; -# endif -# endif -#endif - typedef struct _spline { /* input */ - u_int n_controls; + unsigned int n_controls; double* control_x; double* control_y; /* output */ - u_int n_points; + unsigned int n_points; XPoint* points; - u_int allocated_points; + unsigned int allocated_points; } spline; -spline* make_spline (u_int size); +spline* make_spline (unsigned int size); void compute_spline (spline* s); void compute_closed_spline (spline* s); void just_fill_spline (spline* s); void append_spline_points (spline* s1, spline* s2); void spline_bounding_box (spline* s, XRectangle* rectangle_out); +void free_spline(spline *s); #endif /* _SPLINE_H_ */