summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-ay
blob: 1662f4cd31f71956adade649d72e60b99d94fce6 (plain)
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
$NetBSD: patch-ay,v 1.1 2007/05/24 04:46:15 rillig Exp $

PR 36383

--- tools/clock/rleClock.c.orig	1992-04-30 07:19:39.000000000 -0700
+++ tools/clock/rleClock.c
@@ -909,14 +909,14 @@ drawText()
 typedef struct {
     short x, y;
     int dir;
-} stack_t;
+} rle_clock_stack_t;
 
 #define NORTH 0
 #define WEST 1
 #define SOUTH 2
 #define EAST 3
 struct {
-	stack_t *s;
+	rle_clock_stack_t *s;
 	int	top;
 	int allocked;
 } Stack;
@@ -929,9 +929,9 @@ areaFlood(firstX, firstY, mask, match, v
 int firstX, firstY;
 int mask, match, value;
 {
-    register stack_t *sp;
+    register rle_clock_stack_t *sp;
 
-    Stack.s = (stack_t *) calloc(256, sizeof(stack_t));
+    Stack.s = (rle_clock_stack_t *) calloc(256, sizeof(rle_clock_stack_t));
     Stack.allocked = 256;
     Stack.top = -1;
     stackPush(firstX, firstY, NORTH);
@@ -964,7 +964,7 @@ int x, y, dir;
 {
     if (++Stack.top >= Stack.allocked) {
 	    Stack.allocked += 256;
-	    Stack.s = (stack_t *) realloc(Stack.s, Stack.allocked * sizeof(stack_t));
+	    Stack.s = (rle_clock_stack_t *) realloc(Stack.s, Stack.allocked * sizeof(rle_clock_stack_t));
 if(Debug)fprintf(stderr, "Stack growing to %d\n", Stack.allocked);
     }
 	Stack.s[Stack.top].x = x;