Make xkobo compile with the new egcs
This commit is contained in:
parent
6844657a0e
commit
bf1601e3ec
15
games/xkobo/patches/patch-ab
Normal file
15
games/xkobo/patches/patch-ab
Normal file
@ -0,0 +1,15 @@
|
||||
*** map.C.orig Sun Jul 11 19:02:47 1999
|
||||
--- map.C Sun Jul 11 19:05:57 1999
|
||||
***************
|
||||
*** 27,32 ****
|
||||
--- 27,36 ----
|
||||
void _map::init()
|
||||
{
|
||||
int i, j;
|
||||
+ sx_log2 = MAP_SIZEX_LOG2;
|
||||
+ sy_log2 = MAP_SIZEY_LOG2;
|
||||
+ sx = 1 << sx_log2;
|
||||
+ sy = 1 << sy_log2;
|
||||
for (i=0; i<sx; i++)
|
||||
for (j=0; j<sy; j++)
|
||||
pos(i, j) = SPACE;
|
33
games/xkobo/patches/patch-ac
Normal file
33
games/xkobo/patches/patch-ac
Normal file
@ -0,0 +1,33 @@
|
||||
*** map.h.orig Sun Jul 11 19:02:35 1999
|
||||
--- map.h Sun Jul 11 19:10:36 1999
|
||||
***************
|
||||
*** 38,51 ****
|
||||
#define HIT_MASK (CORE | U_MASK | R_MASK | D_MASK | L_MASK)
|
||||
|
||||
class _map{
|
||||
! const int sx_log2 = MAP_SIZEX_LOG2;
|
||||
! const int sy_log2 = MAP_SIZEY_LOG2;
|
||||
! const int sx = 1 << sx_log2;
|
||||
! const int sy = 1 << sy_log2;
|
||||
int sitex[SITE_MAX];
|
||||
int sitey[SITE_MAX];
|
||||
int site_max;
|
||||
! char data[1 << (sx_log2 + sy_log2)];
|
||||
int maze_pop();
|
||||
void maze_push(int x, int y);
|
||||
void maze_move_and_push(int x, int y, int d);
|
||||
--- 38,51 ----
|
||||
#define HIT_MASK (CORE | U_MASK | R_MASK | D_MASK | L_MASK)
|
||||
|
||||
class _map{
|
||||
! int sx_log2;
|
||||
! int sy_log2;
|
||||
! int sx;
|
||||
! int sy;
|
||||
int sitex[SITE_MAX];
|
||||
int sitey[SITE_MAX];
|
||||
int site_max;
|
||||
! char data[1 << (MAP_SIZEX_LOG2 + MAP_SIZEY_LOG2)];
|
||||
int maze_pop();
|
||||
void maze_push(int x, int y);
|
||||
void maze_move_and_push(int x, int y, int d);
|
36
games/xkobo/patches/patch-ad
Normal file
36
games/xkobo/patches/patch-ad
Normal file
@ -0,0 +1,36 @@
|
||||
*** file.C.orig Sun Jul 11 19:08:57 1999
|
||||
--- file.C Sun Jul 11 19:09:43 1999
|
||||
***************
|
||||
*** 42,48 ****
|
||||
ret = -2;
|
||||
break;
|
||||
}
|
||||
! t += i;
|
||||
len -= i;
|
||||
} while (len > 0);
|
||||
for (;;){
|
||||
--- 42,48 ----
|
||||
ret = -2;
|
||||
break;
|
||||
}
|
||||
! (char *) t += i;
|
||||
len -= i;
|
||||
} while (len > 0);
|
||||
for (;;){
|
||||
***************
|
||||
*** 68,74 ****
|
||||
ret = -2;
|
||||
break;
|
||||
}
|
||||
! t += i;
|
||||
len -= i;
|
||||
} while (len > 0);
|
||||
for (;;){
|
||||
--- 68,74 ----
|
||||
ret = -2;
|
||||
break;
|
||||
}
|
||||
! (char *) t += i;
|
||||
len -= i;
|
||||
} while (len > 0);
|
||||
for (;;){
|
Loading…
x
Reference in New Issue
Block a user