2016-09-23 14:11:02 +02:00
|
|
|
---
|
2023-09-19 15:54:09 +02:00
|
|
|
fig2dev-3.2.9/fig2dev/alloc.h | 20 ++++++++++----------
|
2018-05-07 12:32:51 +02:00
|
|
|
1 file changed, 10 insertions(+), 10 deletions(-)
|
2016-09-23 14:11:02 +02:00
|
|
|
|
2023-09-19 15:54:09 +02:00
|
|
|
--- fig2dev-3.2.9/fig2dev/alloc.h
|
|
|
|
+++ fig2dev-3.2.9/fig2dev/alloc.h 2023-09-15 06:57:41.669499853 +0000
|
2021-02-12 11:22:10 +01:00
|
|
|
@@ -19,15 +19,15 @@
|
2019-10-29 12:12:25 +01:00
|
|
|
#ifndef ALLOC_H
|
|
|
|
#define ALLOC_H
|
2015-04-19 21:33:35 +02:00
|
|
|
|
2023-09-19 15:54:09 +02:00
|
|
|
-#define Line_malloc(z) ((z) = malloc(LINOBJ_SIZE))
|
|
|
|
-#define Pic_malloc(z) ((z) = malloc(PIC_SIZE))
|
|
|
|
-#define Spline_malloc(z) ((z) = malloc(SPLOBJ_SIZE))
|
|
|
|
-#define Ellipse_malloc(z) ((z) = malloc(ELLOBJ_SIZE))
|
|
|
|
-#define Arc_malloc(z) ((z) = malloc(ARCOBJ_SIZE))
|
|
|
|
-#define Compound_malloc(z) ((z) = malloc(COMOBJ_SIZE))
|
|
|
|
-#define Text_malloc(z) ((z) = malloc(TEXOBJ_SIZE))
|
|
|
|
-#define Point_malloc(z) ((z) = malloc(POINT_SIZE))
|
|
|
|
-#define Control_malloc(z) ((z) = malloc(CONTROL_SIZE))
|
|
|
|
-#define Arrow_malloc(z) ((z) = malloc(ARROW_SIZE))
|
|
|
|
+#define Line_malloc(z) ((z) = calloc(LINOBJ_SIZE,1))
|
|
|
|
+#define Pic_malloc(z) ((z) = calloc(PIC_SIZE,1))
|
|
|
|
+#define Spline_malloc(z) ((z) = calloc(SPLOBJ_SIZE,1))
|
|
|
|
+#define Ellipse_malloc(z) ((z) = calloc(ELLOBJ_SIZE,1))
|
|
|
|
+#define Arc_malloc(z) ((z) = calloc(ARCOBJ_SIZE,1))
|
|
|
|
+#define Compound_malloc(z) ((z) = calloc(COMOBJ_SIZE,1))
|
|
|
|
+#define Text_malloc(z) ((z) = calloc(TEXOBJ_SIZE,1))
|
|
|
|
+#define Point_malloc(z) ((z) = calloc(POINT_SIZE,1))
|
|
|
|
+#define Control_malloc(z) ((z) = calloc(CONTROL_SIZE,1))
|
|
|
|
+#define Arrow_malloc(z) ((z) = calloc(ARROW_SIZE,1))
|
2015-04-19 21:33:35 +02:00
|
|
|
|
2021-02-12 11:22:10 +01:00
|
|
|
#endif /* ALLOC_H */
|