#include <nlist.h>
#include <stdio.h>
#include <ctype.h>
+#include <string.h>
#include "pathnames.h"
extern int errno;
play(args)
char **args;
{
- char pbuf[MAXPATHLEN], *strcpy(), *strerror();
+ char pbuf[MAXPATHLEN];
(void)strcpy(pbuf, _PATH_HIDE);
(void)strcpy(pbuf + sizeof(_PATH_HIDE) - 1, game);
# include <sys/dir.h>
# include <stdio.h>
# include <assert.h>
+# include <stdlib.h>
# include "strfile.h"
# include "pathnames.h"
{
register FILEDESC *fp;
register int choice;
- long random();
if (File_list->next == NULL || File_list->percent == NO_PROB)
fp = File_list;
#include "hack.h"
#include "def.edog.h"
#include "def.mkroom.h"
-extern struct monst *bchit();
+static struct monst *bchit();
extern struct obj *addinv();
extern struct trap *maketrap();
extern int (*occupation)();
extern struct obj zeroobj;
extern char morc;
extern char quitchars[];
-char *xprname();
+static char *xprname();
#ifndef NOWORM
#include "def.wseg.h"
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* hack.mkshop.c - version 1.0.3 */
+#include <stdlib.h>
#ifndef QUEST
#include "hack.h"
#include "def.mkroom.h"
#ifdef WIZARD
/* first determine shoptype */
if(wizard){
- extern char *getenv();
register char *ep = getenv("SHOPTYPE");
if(ep){
if(*ep == 'z' || *ep == 'Z'){
#include <stdio.h>
-void putppt();
+static void putppt();
main(argc, argv)
int argc;
static Rxp_t rxpbuf[RXP_LINE_SZ]; /* compiled regular expression buffer */
char rxperr[128]; /* parser error message */
-int rxp__compile __P((char *, int));
-char *rxp__expand __P((int));
-int rxp__match __P((char *, int, Rxp_t *, Rxp_t *, char *));
+static int rxp__compile __P((char *, int));
+static char *rxp__expand __P((int));
+static int rxp__match __P((char *, int, Rxp_t *, Rxp_t *, char *));
int
rxp_compile(s)
}
}
-apr(ps, fmt)
+apr(ps, fmt, ap)
struct point *ps;
char *fmt;
+ _VA_LIST_ ap;
{
struct point p;
- va_list ap;
p.line = ps->line+1; p.col = ps->col+1;
move(&p);
- va_start(ap, fmt);
(void)vsprintf(str, fmt, ap);
- va_end(ap);
pstring(str);
}
-pr(fmt)
+pr(fmt, ap)
char *fmt;
+ _VA_LIST_ ap;
{
- va_list ap;
-
- va_start(ap, fmt);
(void)vsprintf(str, fmt, ap);
- va_end(ap);
pstring(str);
}
#include <fcntl.h>
#include <pwd.h>
#include <errno.h>
+#include <stdlib.h>
+#include <time.h>
#include "snake.h"
#include "pathnames.h"
extern char *optarg;
extern int optind;
int ch, i, j, k;
- time_t time();
- long atol();
void stop();
(void)time(&tv);
*/
#include <sys/types.h>
#include <stdio.h>
+#include <stdlib.h>
#ifdef USG
#include <termio.h>
#else
short *xpos, *ypos;
} *worm;
+char *tgetstr(), *tgoto();
+
main(argc, argv)
int argc;
char **argv;
void onsig();
short **ref;
char *AL, *BC, *CM, *EI, *HO, *IC, *IM, *IP, *SR;
- char *field, tcb[100], *mp, *malloc(), *getenv(), *tgetstr(), *tgoto();
+ char *field, tcb[100], *mp;
long random();
#ifdef USG
struct termio sg;