blob: 6d867979cf4675e7a0884c74a32212b802f87fda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ai,v 1.1 2005/03/16 18:32:50 rillig Exp $
gcc-2.95.3 cannot handle declarations intermixed with code.
--- app/depth/layer.c.orig Tue Dec 28 17:22:01 2004
+++ app/depth/layer.c Wed Mar 16 17:39:33 2005
@@ -197,6 +197,7 @@ layer_new (
)
{
Layer * layer;
+ SplineTool *st;
if (width == 0 || height == 0) {
g_message ("Zero width or height layers not allowed.");
@@ -233,7 +234,6 @@ layer_new (
layer->fs.num_segs = 0;
/* spline layer variables */
- SplineTool *st;
layer->sl.splines=(DL_list*)malloc(sizeof(DL_list));
DL_init((DL_node*)layer->sl.splines);
st=(SplineTool*)malloc(sizeof(SplineTool));
|