pkgsrc/graphics/urt/patches/patch-ay

44 lines
1.2 KiB
Text

$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;