diff src/xs_curve.c @ 702:b5b6b13a6d85

Renamed some types.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 25 May 2008 01:38:48 +0300
parents b0743dc9165d
children 9321ffa2ea7e
line wrap: on
line diff
--- a/src/xs_curve.c	Fri May 23 21:05:47 2008 +0300
+++ b/src/xs_curve.c	Sun May 25 01:38:48 2008 +0300
@@ -210,7 +210,7 @@
     GtkStateType state;
     GtkStyle *style;
     gint i, ox = -1, oy = -1;
-    t_xs_point *p0, *p1, *p2, *p3;
+    xs_point_t *p0, *p1, *p2, *p3;
 
     if (!curve->pixmap)
         return;
@@ -568,7 +568,7 @@
 {
     if (npoints != curve->nctlpoints) {
         curve->nctlpoints = npoints;
-        curve->ctlpoints = (t_xs_point *) g_realloc(curve->ctlpoints,
+        curve->ctlpoints = (xs_point_t *) g_realloc(curve->ctlpoints,
             curve->nctlpoints * sizeof(*curve->ctlpoints));
 
         if (curve->ctlpoints == NULL)
@@ -579,14 +579,14 @@
 }
 
 
-void xs_curve_get_data(XSCurve *curve, t_xs_point ***points, gint **npoints)
+void xs_curve_get_data(XSCurve *curve, xs_point_t ***points, gint **npoints)
 {
     *points = &(curve->ctlpoints);
     *npoints = &(curve->nctlpoints);
 }
 
 
-gboolean xs_curve_set_points(XSCurve *curve, t_xs_int_point *points, gint npoints)
+gboolean xs_curve_set_points(XSCurve *curve, xs_int_point_t *points, gint npoints)
 {
     gint i;
 
@@ -613,13 +613,13 @@
 }
 
 
-gboolean xs_curve_get_points(XSCurve *curve, t_xs_int_point **points, gint *npoints)
+gboolean xs_curve_get_points(XSCurve *curve, xs_int_point_t **points, gint *npoints)
 {
     gint i, n;
     
     n = curve->nctlpoints - 4;
     
-    *points = g_malloc(n * sizeof(t_xs_int_point));
+    *points = g_malloc(n * sizeof(xs_int_point_t));
     if (*points == NULL)
         return FALSE;