aboutsummaryrefslogtreecommitdiffstats
path: root/cad/chipmunk/files/patch-ai
blob: a9b7a8b58a5fa28061894903e753e39212e6508a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- psys/src/mylib.c.orig   Wed Jul 21 04:06:25 1999
+++ psys/src/mylib.c    Mon Sep 20 06:58:55 1999
@@ -4162,7 +4162,7 @@
 
   if (currentmode == m_hitdet) {
     m_hitcount += hitdet_drawpoly(n, pointlist);
-    cfree(pointlist);
+    free(pointlist);
     return;
   }
 
@@ -4174,7 +4174,7 @@
   Xfprintf(stderr, "XDrawLines()\n");
   XDrawLines(m_display, m_window, gc[currentcolor], pointlist, n+1, CoordModeOrigin);
 
-  cfree(pointlist);
+  free(pointlist);
 
 #ifdef SAVECURSOR
   if (cursor_is_on)
@@ -4335,7 +4335,7 @@
    j++;
       } while (count != 0 && j < last);
       if (edges[i].curx <= m_clip_x2 && edges[j-1].curx >= m_clip_x1) {
-   cfree(edges);
+   free(edges);
    return 1;     /* Found a visible trapezoid */
       }
     }
@@ -4345,7 +4345,7 @@
   }
 
   /* No trapezoids intersect */
-  cfree(edges);
+  free(edges);
   return 0;
 }
 
@@ -4370,7 +4370,7 @@
 
   if (currentmode == m_hitdet) {
     m_hitcount += hitdet_fillpoly(n, pointlist);
-    cfree(pointlist);
+    free(pointlist);
     return;
   }
 
@@ -4382,7 +4382,7 @@
   Xfprintf(stderr, "XFillPolygon()\n");
   XFillPolygon(m_display, m_window, gc[currentcolor], pointlist, n, Complex, CoordModeOrigin);
 
-  cfree(pointlist);
+  free(pointlist);
 
 #ifdef SAVECURSOR
   if (cursor_is_on)