X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/50b9d92da6d2a0b63fc8f263fe2736b71b3ebdd2..f8b06dd752473c66a6e6d145d601fcf3a7fa4c08:/adventure/extern.h diff --git a/adventure/extern.h b/adventure/extern.h index 28677e06..85058814 100644 --- a/adventure/extern.h +++ b/adventure/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.6 1998/08/29 22:40:07 hubertf Exp $ */ +/* $NetBSD: extern.h,v 1.9 1998/09/13 15:21:37 hubertf Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -33,12 +33,12 @@ /* crc.c */ void crc_start __P((void)); -unsigned long crc __P((char *, int)); +unsigned long crc __P((const char *, int)); /* done.c */ int score __P((void)); -void done __P((int)); -int die __P((int)); +void done __P((int)) __attribute__((__noreturn__)); +void die __P((int)); /* init.c */ void init __P((void)); @@ -67,15 +67,12 @@ void rhints __P((void)); void rspeak __P((int)); void mspeak __P((int)); struct text; -void speak __P((struct text *)); +void speak __P((const struct text *)); void pspeak __P((int, int)); -/* main.c */ -int main __P((int, char **)); - /* save.c */ -int save __P((char *)); -int restore __P((char *)); +int save __P((const char *)); +int restore __P((const char *)); /* subr.c */ int toting __P((int)); @@ -93,9 +90,9 @@ int march __P((void)); int mback __P((void)); int specials __P((void)); int trbridge __P((void)); -int badmove __P((void)); -int bug __P((int)) __attribute__((__noreturn__)); -int checkhints __P((void)); +void badmove __P((void)); +void bug __P((int)) __attribute__((__noreturn__)); +void checkhints __P((void)); int trsay __P((void)); int trtake __P((void)); int dropper __P((void)); @@ -105,8 +102,8 @@ int trkill __P((void)); int trtoss __P((void)); int trfeed __P((void)); int trfill __P((void)); -int closing __P((void)); -int caveclose __P((void)); +void closing __P((void)); +void caveclose __P((void)); /* vocab.c */ void dstroy __P((int)); @@ -115,7 +112,7 @@ void move __P((int, int)); int put __P((int, int, int)); void carry __P((int, int)); void drop __P((int, int)); -int vocab __P((char *, int, int)); +int vocab __P((const char *, int, int)); /* These three used to be functions in vocab.c */ #define copystr(src, dest) strcpy((dest), (src))