split some code into separate files
new .h files: hacklib.h selvar.h stairs.h
new .c files: calendar.c, getpos.c, report.c, selvar.c, stairs.c,
strutil.c, wizcmds.c
cleanup of hacklib.c and mdlib.c
hacklib contains functions that do not have to link with the core
relocate wiz commands from cmd.c to wizcmds.c
relocate CRASHREPORT stuff to report.c
relocate getpos stuff from do_name.c to getpos.c
remove temporary struct definition from extern.h
cross-compile PRE-section split into cross-pre1.370 and cross-pre2.370
Windows sys/windows/Makefile.nmake and sys/windows/Makefile.mingw32 and
visual studio project file updates
Unix sys/unix/Makefile.src, sys/unix/Makefile.utl
populate selvar.c and selvar.h
build on MS-DOS (not cross-compile) Makefile updates
for sys/msdos/Makefile.GCC (untested)
vms updates for above (untested)
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "dlb.h"
|
||||
#include "hacklib.h"
|
||||
|
||||
#if !defined(O_WRONLY) && !defined(MAC) && !defined(AZTEC_C)
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
@@ -16,7 +18,6 @@
|
||||
|
||||
ATTRNORETURN static void xexit(int) NORETURN;
|
||||
ATTRNORETURN extern void panic(const char *, ...) NORETURN;
|
||||
char *eos(char *); /* also used by dlb.c */
|
||||
FILE *fopen_datafile(const char *, const char *);
|
||||
|
||||
#ifdef DLB
|
||||
@@ -138,14 +139,6 @@ fopen_datafile(const char *filename, const char *mode)
|
||||
return fopen(filename, mode);
|
||||
}
|
||||
|
||||
char *
|
||||
eos(char *s)
|
||||
{
|
||||
while (*s)
|
||||
s++;
|
||||
return s;
|
||||
}
|
||||
|
||||
#ifdef DLB
|
||||
#define UNUSED_if_no_DLB /*empty*/
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user