about summary refs log tree commit diff
path: root/converter/other/pamtosvg/curve.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-09-16 03:56:34 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-09-16 03:56:34 +0000
commita0202ae7310caf2ec1113b2f54c4ff4bcdac1f59 (patch)
tree80e38c3c8b096755686483069bb9856424c0f178 /converter/other/pamtosvg/curve.c
parent2d18206ae939ce1d91647b0c771beaea32818329 (diff)
downloadnetpbm-mirror-a0202ae7310caf2ec1113b2f54c4ff4bcdac1f59.tar.gz
netpbm-mirror-a0202ae7310caf2ec1113b2f54c4ff4bcdac1f59.tar.xz
netpbm-mirror-a0202ae7310caf2ec1113b2f54c4ff4bcdac1f59.zip
fix compilation failures introduced by recent changes
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4659 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pamtosvg/curve.c')
-rw-r--r--converter/other/pamtosvg/curve.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/converter/other/pamtosvg/curve.c b/converter/other/pamtosvg/curve.c
index 369a0cd3..0785dde5 100644
--- a/converter/other/pamtosvg/curve.c
+++ b/converter/other/pamtosvg/curve.c
@@ -24,17 +24,17 @@
 #include "curve.h"
 
 
-static float_coord
+static Point
 int_to_real_coord(pm_pixelcoord const int_coord) {
 /*----------------------------------------------------------------------------
   Turn an integer point into a real one.
 -----------------------------------------------------------------------------*/
-    float_coord real_coord;
+    Point real_coord;
 
     real_coord.x = int_coord.col;
     real_coord.y = int_coord.row;
     real_coord.z = 0.0;
-    
+
     return real_coord;
 }
 
@@ -76,13 +76,13 @@ void
 move_curve(curve * const dstP,
            curve * const srcP) {
 
-    /* Move ownership of dynamically allocated memory from source 
+    /* Move ownership of dynamically allocated memory from source
        to destination; destroy source.
     */
 
    if (CURVE_LENGTH(dstP) > 0)
        free(dstP->point_list);
-    
+
    *dstP = *srcP;
 
    free(srcP);
@@ -106,8 +106,8 @@ free_curve(curve * const curveP) {
 
 
 void
-append_point(curve_type  const curve,
-             float_coord const coord) {
+append_point(curve_type const curve,
+             Point      const coord) {
 
     CURVE_LENGTH(curve)++;
     REALLOCARRAY_NOFAIL(curve->point_list, CURVE_LENGTH(curve));
@@ -159,7 +159,7 @@ log_curve(curve * const curveP,
     /* If the curve is short enough, don't use ellipses.  */
     if (CURVE_LENGTH(curveP) <= NUM_TO_PRINT * 2) {
         unsigned int thisPoint;
-    
+
         for (thisPoint = 0; thisPoint < CURVE_LENGTH(curveP); ++thisPoint) {
             LOG_CURVE_POINT(curveP, thisPoint, print_t);
             LOG(" ");
@@ -276,7 +276,7 @@ new_curve_list_array (void)
 
 void
 free_curve_list_array(const curve_list_array_type * const curve_list_array,
-                      at_progress_func                    notify_progress, 
+                      at_progress_func                    notify_progress,
                       void *                        const client_data) {
 
   unsigned this_list;
@@ -290,7 +290,7 @@ free_curve_list_array(const curve_list_array_type * const curve_list_array,
                           client_data);
       free_curve_list(&CURVE_LIST_ARRAY_ELT (*curve_list_array, this_list));
   }
-  
+
   /* If the character was empty, it won't have any curves.  */
   if (curve_list_array->data != NULL)
       free(curve_list_array->data);
@@ -308,6 +308,3 @@ append_curve_list(curve_list_array_type * const curve_list_array,
                       CURVE_LIST_ARRAY_LENGTH(*curve_list_array));
   LAST_CURVE_LIST_ARRAY_ELT (*curve_list_array) = curve_list;
 }
-
-
-