UltraRogue: fix various build failures.
This commit is contained in:
parent
11c74c273d
commit
b100b40846
5 changed files with 23 additions and 20 deletions
|
|
@ -30,6 +30,7 @@ OBJS = armor.o \
|
||||||
magic.o \
|
magic.o \
|
||||||
main.o \
|
main.o \
|
||||||
maze.o \
|
maze.o \
|
||||||
|
mdport.o \
|
||||||
memory.o \
|
memory.o \
|
||||||
misc.o \
|
misc.o \
|
||||||
monsdata.o \
|
monsdata.o \
|
||||||
|
|
@ -55,7 +56,8 @@ OBJS = armor.o \
|
||||||
verify.o \
|
verify.o \
|
||||||
vers.o \
|
vers.o \
|
||||||
weapons.o \
|
weapons.o \
|
||||||
wizard.o
|
wizard.o \
|
||||||
|
xcrypt.o
|
||||||
|
|
||||||
PROGRAM = ur
|
PROGRAM = ur
|
||||||
|
|
||||||
|
|
@ -78,6 +80,7 @@ CFILES = armor.c \
|
||||||
magic.c \
|
magic.c \
|
||||||
main.c \
|
main.c \
|
||||||
maze.c \
|
maze.c \
|
||||||
|
mdport.c \
|
||||||
memory.c \
|
memory.c \
|
||||||
misc.c \
|
misc.c \
|
||||||
monsdata.c \
|
monsdata.c \
|
||||||
|
|
@ -103,7 +106,8 @@ CFILES = armor.c \
|
||||||
verify.c \
|
verify.c \
|
||||||
vers.c \
|
vers.c \
|
||||||
weapons.c \
|
weapons.c \
|
||||||
wizard.c
|
wizard.c \
|
||||||
|
xcrypt.c
|
||||||
|
|
||||||
MISC= Makefile README LICENSE.TXT history.txt TODO
|
MISC= Makefile README LICENSE.TXT history.txt TODO
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ doctor_spell_points(struct thing *tp)
|
||||||
called to roll to see if a wandering monster starts up
|
called to roll to see if a wandering monster starts up
|
||||||
*/
|
*/
|
||||||
|
|
||||||
daemon
|
void
|
||||||
rollwand(daemon_arg *arg)
|
rollwand(daemon_arg *arg)
|
||||||
{
|
{
|
||||||
NOOP(arg);
|
NOOP(arg);
|
||||||
|
|
@ -246,7 +246,7 @@ rollwand(daemon_arg *arg)
|
||||||
digest the hero's food
|
digest the hero's food
|
||||||
*/
|
*/
|
||||||
|
|
||||||
daemon
|
void
|
||||||
stomach(daemon_arg *arg)
|
stomach(daemon_arg *arg)
|
||||||
{
|
{
|
||||||
int oldfood, old_hunger;
|
int oldfood, old_hunger;
|
||||||
|
|
@ -322,7 +322,7 @@ stomach(daemon_arg *arg)
|
||||||
each other, this routine have been enhanced and may need more work yet
|
each other, this routine have been enhanced and may need more work yet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
daemon
|
void
|
||||||
runners(daemon_arg *arg)
|
runners(daemon_arg *arg)
|
||||||
{
|
{
|
||||||
struct linked_list *item;
|
struct linked_list *item;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ static char sccsid[] = "%W% %G%";
|
||||||
#include "dictutil.h"
|
#include "dictutil.h"
|
||||||
#include "rogue.h"
|
#include "rogue.h"
|
||||||
|
|
||||||
int trace;
|
int dict_trace;
|
||||||
FILE *ft;
|
FILE *ft;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -83,13 +83,13 @@ void *dict_load_block( DICTIONARY *dict , char *toc_id ,
|
||||||
|
|
||||||
if ( block == NULL ) {
|
if ( block == NULL ) {
|
||||||
ptr = malloc( dt_entry->size );
|
ptr = malloc( dt_entry->size );
|
||||||
if ( trace > 3 ) {
|
if ( dict_trace > 3 ) {
|
||||||
fprintf( ft , "\ndict_load_block allocates %lx bytes at location %p\n" ,
|
fprintf( ft , "\ndict_load_block allocates %lx bytes at location %p\n" ,
|
||||||
dt_entry->size , ptr );
|
dt_entry->size , ptr );
|
||||||
} /* endif */
|
} /* endif */
|
||||||
} else {
|
} else {
|
||||||
ptr = block;
|
ptr = block;
|
||||||
if ( trace > 3 ) {
|
if ( dict_trace > 3 ) {
|
||||||
fprintf( ft , "\ndict_load_block uses memory at location %p\n" , ptr );
|
fprintf( ft , "\ndict_load_block uses memory at location %p\n" , ptr );
|
||||||
} /* endif */
|
} /* endif */
|
||||||
} /* endif */
|
} /* endif */
|
||||||
|
|
@ -113,7 +113,7 @@ void *dict_load_block( DICTIONARY *dict , char *toc_id ,
|
||||||
|
|
||||||
dt_entry->ptr = ptr;
|
dt_entry->ptr = ptr;
|
||||||
|
|
||||||
if ( trace > 3 ) {
|
if ( dict_trace > 3 ) {
|
||||||
fprintf( ft , "\nLoaded block\nTOC entry: id:%s offset:%lx size:%lx ptr:%p checksum:%lx type:%d\n" ,
|
fprintf( ft , "\nLoaded block\nTOC entry: id:%s offset:%lx size:%lx ptr:%p checksum:%lx type:%d\n" ,
|
||||||
dict->toc[index].id , dict->toc[index].offset ,
|
dict->toc[index].id , dict->toc[index].offset ,
|
||||||
dict->toc[index].size , dict->toc[index].ptr ,
|
dict->toc[index].size , dict->toc[index].ptr ,
|
||||||
|
|
@ -160,7 +160,7 @@ BOOLEANC dict_save_block( DICTIONARY *dict , char *toc_id , FILE *fo )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
} /* endif */
|
} /* endif */
|
||||||
|
|
||||||
if ( trace > 3 ) {
|
if ( dict_trace > 3 ) {
|
||||||
fprintf( ft , "\nStored block\nTOC entry: id:%s offset:%lx size:%lx ptr:%p checksum:%lx type:%d\n" ,
|
fprintf( ft , "\nStored block\nTOC entry: id:%s offset:%lx size:%lx ptr:%p checksum:%lx type:%d\n" ,
|
||||||
dict->toc[index].id , dict->toc[index].offset ,
|
dict->toc[index].id , dict->toc[index].offset ,
|
||||||
dict->toc[index].size , dict->toc[index].ptr ,
|
dict->toc[index].size , dict->toc[index].ptr ,
|
||||||
|
|
@ -418,7 +418,7 @@ BOOLEANC dict_set_parm_variables( DICTIONARY *dict )
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********
|
/***********
|
||||||
** If trace (global) > 0 , signal an error
|
** If dict_trace (global) > 0 , signal an error
|
||||||
** If severity > 0 , abort
|
** If severity > 0 , abort
|
||||||
***********/
|
***********/
|
||||||
|
|
||||||
|
|
@ -426,7 +426,7 @@ void signal_error( char *header , char *message , int severity )
|
||||||
{
|
{
|
||||||
FILE *fpe;
|
FILE *fpe;
|
||||||
|
|
||||||
if ( trace > 0 ) {
|
if ( dict_trace > 0 ) {
|
||||||
printf( "%s: %s\n" , header , message );
|
printf( "%s: %s\n" , header , message );
|
||||||
fpe = fopen( "ERROR.FIL" , "a" );
|
fpe = fopen( "ERROR.FIL" , "a" );
|
||||||
fprintf( fpe , "\n%s: %s\n" , header , message );
|
fprintf( fpe , "\n%s: %s\n" , header , message );
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,7 @@ void *mem_realloc(const void *ptr, const size_t new_size)
|
||||||
/* check a pointer to be sure all check bytes are OK. abort if not */
|
/* check a pointer to be sure all check bytes are OK. abort if not */
|
||||||
/* always returns 1 if not aborting so that it can be included in */
|
/* always returns 1 if not aborting so that it can be included in */
|
||||||
/* if statement boolean expressions */
|
/* if statement boolean expressions */
|
||||||
int mem_validate(void *ptr)
|
int mem_validate(const void *ptr)
|
||||||
{
|
{
|
||||||
unsigned char *mem_temp = (unsigned char *)ptr;
|
unsigned char *mem_temp = (unsigned char *)ptr;
|
||||||
size_t mem_size;
|
size_t mem_size;
|
||||||
|
|
|
||||||
|
|
@ -1062,7 +1062,6 @@ struct delayed_action
|
||||||
#define FUSE 2
|
#define FUSE 2
|
||||||
|
|
||||||
typedef void fuse;
|
typedef void fuse;
|
||||||
typedef void daemon;
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
|
@ -1087,7 +1086,7 @@ struct fuse
|
||||||
struct daemon
|
struct daemon
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
daemon (*func)(daemon_arg *arg);
|
void (*func)(daemon_arg *arg);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAXDAEMONS 60
|
#define MAXDAEMONS 60
|
||||||
|
|
@ -1156,10 +1155,10 @@ extern void activity(void);
|
||||||
/* daemons.c */
|
/* daemons.c */
|
||||||
|
|
||||||
extern void doctor_spell_points(struct thing *tp);
|
extern void doctor_spell_points(struct thing *tp);
|
||||||
extern daemon runners(daemon_arg *arg);
|
extern void runners(daemon_arg *arg);
|
||||||
extern daemon doctor(daemon_arg *tp);
|
extern void doctor(daemon_arg *tp);
|
||||||
extern daemon rollwand(daemon_arg *arg);
|
extern void rollwand(daemon_arg *arg);
|
||||||
extern daemon stomach(daemon_arg *arg);
|
extern void stomach(daemon_arg *arg);
|
||||||
extern fuse swander(fuse_arg *arg);
|
extern fuse swander(fuse_arg *arg);
|
||||||
extern fuse unconfuse(fuse_arg *arg);
|
extern fuse unconfuse(fuse_arg *arg);
|
||||||
extern fuse unscent(fuse_arg *arg);
|
extern fuse unscent(fuse_arg *arg);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue