-/* $OpenBSD: hack.c,v 1.11 2016/01/10 15:12:20 mestre Exp $ */
+/* $OpenBSD: hack.c,v 1.12 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include "hack.h"
extern char *nomovemsg;
-extern char *exclam();
static void movobj(struct obj *, int, int);
#ifdef QUEST
-/* $OpenBSD: hack.do_name.c,v 1.11 2016/01/09 18:33:15 mestre Exp $ */
+/* $OpenBSD: hack.do_name.c,v 1.12 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
coord cc;
int cx,cy,lth,i;
struct monst *mtmp, *mtmp2;
- extern char *lmonnam();
cc = getpos(0, "the monster you want to name");
cx = cc.x;
-/* $OpenBSD: hack.main.c,v 1.25 2023/06/03 15:19:38 op Exp $ */
+/* $OpenBSD: hack.main.c,v 1.26 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
if(moves%2 == 0 ||
(!(Fast & ~INTRINSIC) && (!Fast || rn2(3)))) {
- extern struct monst *makemon();
movemon();
if(!rn2(70))
(void) makemon((struct permonst *)0, 0, 0);
-/* $OpenBSD: hack.makemon.c,v 1.8 2016/01/09 18:33:15 mestre Exp $ */
+/* $OpenBSD: hack.makemon.c,v 1.9 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include "hack.h"
extern char fut_geno[];
-extern struct obj *mkobj_at();
struct monst zeromonst;
/*
-/* $OpenBSD: hack.objnam.c,v 1.11 2016/01/09 18:33:15 mestre Exp $ */
+/* $OpenBSD: hack.objnam.c,v 1.12 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
typ = probtype(let);
typfnd:
{ struct obj *otmp;
- extern struct obj *mksobj();
let = objects[typ].oc_olet;
otmp = mksobj(typ);
if(heavy)
-/* $OpenBSD: hack.unix.c,v 1.22 2023/06/03 15:19:38 op Exp $ */
+/* $OpenBSD: hack.unix.c,v 1.23 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
getlt(void)
{
time_t date;
- struct tm *localtime();
(void) time(&date);
return(localtime(&date));