From 8b1c71ee649fb41155da92995044e451c39ea700 Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 12 Aug 2009 07:28:40 +0000 Subject: sprinkle static --- hack/extern.h | 120 +--------------------------------------------------------- 1 file changed, 2 insertions(+), 118 deletions(-) (limited to 'hack/extern.h') diff --git a/hack/extern.h b/hack/extern.h index cb1de38e..e2b67441 100644 --- a/hack/extern.h +++ b/hack/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.11 2009/06/07 20:13:18 dholland Exp $ */ +/* $NetBSD: extern.h,v 1.12 2009/08/12 07:28:40 dholland Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -35,7 +35,6 @@ /* alloc.c */ long *alloc(unsigned); -long *enlarge(char *, unsigned); /* hack.apply.c */ int doapply(void); @@ -50,7 +49,6 @@ int getbones(void); void unsee(void); void seeoff(int); void domove(void); -void movobj(struct obj *, int, int); int dopickup(void); void pickup(int); void lookaround(void); @@ -67,14 +65,10 @@ void losehp(int, const char *); void losehp_m(int, struct monst *); void losexp(void); int inv_weight(void); -int inv_cnt(void); long newuexp(void); /* hack.cmd.c */ void rhack(const char *); -int doextcmd(void); -char lowc(int); -char unctrl(int); int movecmd(int); int getdir(boolean); void confdir(void); @@ -85,7 +79,6 @@ int isok(int, int); /* hack.do.c */ int dodrop(void); void dropx(struct obj *); -void dropy(struct obj *); int doddrop(void); int dodown(void); int doup(void); @@ -101,24 +94,17 @@ void heal_legs(void); /* hack.do_name.c */ coord getpos(int, const char *); int do_mname(void); -void do_oname(struct obj *); int ddocall(void); void docall(struct obj *); -char *xmonnam(struct monst *, int); -char *lmonnam(struct monst *); char *monnam(struct monst *); char *Monnam(struct monst *); char *amonnam(struct monst *, const char *); char *Amonnam(struct monst *, const char *); char *Xmonnam(struct monst *); -char *visctrl(int); /* hack.do_wear.c */ -void off_msg(struct obj *); int doremarm(void); int doremring(void); -int dorr(struct obj *); -int cursed(struct obj *); int armoroff(struct obj *); int doweararm(void); int dowearring(void); @@ -130,41 +116,26 @@ void corrode_armor(void); /* hack.dog.c */ void makedog(void); -void initedog(struct monst *); void losedogs(void); void keepdogs(void); void fall_down(struct monst *); -int dogfood(struct obj *); int dog_move(struct monst *, int); int inroom(xchar, xchar); int tamedog(struct monst *, struct obj *); /* hack.eat.c */ void init_uhunger(void); -int opentin(void); -int Meatdone(void); int doeat(void); void gethungry(void); void morehungry(int); void lesshungry(int); -int unfaint(void); -void newuhs(boolean); int poisonous(struct obj *); -int eatcorpse(struct obj *); /* hack.end.c */ int dodone(void); void done1(int); -void done_intr(int); -void done_hangup(int); void done_in_by(struct monst *); void done(const char *); -void topten(void); -void outheader(void); -struct toptenentry; -int outentry(int, struct toptenentry *, int); -char *itoa(int); -const char *ordin(int); void clearlocks(void); void hangup(int) __attribute__((__noreturn__)); char *eos(char *); @@ -172,7 +143,6 @@ void charcat(char *, int); void prscore(int, char **); /* hack.engrave.c */ -struct engr *engr_at(xchar, xchar); int sengr_at(const char *, xchar, xchar); void u_wipe_engr(int); void wipe_engr_at(xchar, xchar, xchar); @@ -181,12 +151,10 @@ void make_engr_at(int, int, const char *); int doengrave(void); void save_engravings(int); void rest_engravings(int); -void del_engr(struct engr *); /* hack.fight.c */ int hitmm(struct monst *, struct monst *); void mondied(struct monst *); -void monstone(struct monst *); int fightm(struct monst *); int thitu(int, int, const char *); boolean hmon(struct monst *, struct obj *, int); @@ -208,21 +176,15 @@ int carrying(int); struct obj *o_on(unsigned int, struct obj *); struct trap *t_at(int, int); struct gold *g_at(int, int); -struct obj *mkgoldobj(long); struct obj *getobj(const char *, const char *); -int ckunpaid(struct obj *); int ggetobj(const char *, int (*fn)(struct obj *), int); int askchain(struct obj *, char *, int, int (*)(struct obj *), int (*)(struct obj *), int); -char obj_to_let(struct obj *); void prinv(struct obj *); int ddoinv(void); -void doinv(char *); int dotypeinv(void); int dolook(void); void stackobj(struct obj *); -int merged(struct obj *, struct obj *, int); -int countgold(void); int doprgold(void); int doprwep(void); int doprarm(void); @@ -239,8 +201,6 @@ void savelev(int, xchar); void bwrite(int, const void *, size_t); void saveobjchn(int, struct obj *); void savemonchn(int, struct monst *); -void savegoldchn(int, struct gold *); -void savetrapchn(int, struct trap *); void getlev(int, int, xchar); void mread(int, char *, unsigned); void mklev(void); @@ -264,29 +224,12 @@ int mhitu(struct monst *); int hitu(struct monst *, int); /* hack.mklev.c */ -void makelevel(void); -int makerooms(void); -void addrs(int, int, int, int); -void addrsx(int, int, int, int, boolean); struct mkroom; -int comp(const void *, const void *); -coord finddpos(int, int, int, int); -int okdoor(int, int); -void dodoor(int, int, struct mkroom *); -void dosdoor(int, int, struct mkroom *, int); -int maker(schar, schar, schar, schar); -void makecorridors(void); -void join(int, int); -void make_niches(void); -void makevtele(void); -void makeniche(boolean); +void makelevel(void); void mktrap(int, int, struct mkroom *); /* hack.mkmaze.c */ void makemaz(void); -void walkfrom(int, int); -void move(int *, int *, int); -int okay(int, int, int); coord mazexy(void); /* hack.mkobj.c */ @@ -301,24 +244,14 @@ void mkgold(long, int, int); /* hack.mkshop.c */ void mkshop(void); void mkzoo(int); -const struct permonst *morguemon(void); void mkswamp(void); -int nexttodoor(int, int); -int has_dnstairs(struct mkroom *); -int has_upstairs(struct mkroom *); -int isbig(struct mkroom *); -int dist2(int, int, int, int); -int sq(int); /* hack.mon.c */ void movemon(void); void justswld(struct monst *, const char *); void youswld(struct monst *, int, int, const char *); -int dochugw(struct monst *); int dochug(struct monst *); int m_move(struct monst *, int); -void mpickgold(struct monst *); -void mpickgems(struct monst *); int mfndpos(struct monst *, coord[9 ], int[9 ], int); int dist(int, int); void poisoned(const char *, const char *); @@ -326,14 +259,12 @@ void mondead(struct monst *); void replmon(struct monst *, struct monst *); void relmon(struct monst *); void monfree(struct monst *); -void dmonsfree(void); void unstuck(struct monst *); void killed(struct monst *); void kludge(const char *, const char *); void rescham(void); int newcham(struct monst *, const struct permonst *); void mnexto(struct monst *); -int ishuman(struct monst *); void setmangry(struct monst *); int canseemon(struct monst *); @@ -343,16 +274,12 @@ int canseemon(struct monst *); int letindex(int); void init_objects(void); int probtype(int); -void setgemprobs(void); void oinit(void); void savenames(int); void restnames(int); int dodiscovered(void); -int interesting_to_discover(int); /* hack.objnam.c */ -char *strprepend(char *, char *); -char *sitoa(int); char *typename(int); char *xname(struct obj *); char *doname(struct obj *); @@ -363,22 +290,17 @@ struct obj *readobjnam(char *); /* hack.options.c */ void initoptions(void); -void parseoptions(char *, boolean); int doset(void); /* hack.pager.c */ int dowhatis(void); -void intruph(int); -void page_more(FILE *, int); void set_whole_screen(void); int readnews(void); void set_pager(int); int page_line(const char *); void cornline(int, const char *); int dohelp(void); -int page_file(const char *, boolean); int dosh(void); -int child(int); /* hack.potion.c */ int dodrink(void); @@ -387,7 +309,6 @@ void strange_feeling(struct obj *, const char *); void potionhit(struct monst *, struct obj *); void potionbreathe(struct obj *); int dodip(void); -void ghost_from_bottle(void); /* hack.pri.c */ void swallowed(void); @@ -420,31 +341,22 @@ void seemons(void); void pmon(struct monst *); void unpmon(struct monst *); void nscr(void); -void cornbot(int); void bot(void); void mstatusline(struct monst *); void cls(void); /* hack.read.c */ int doread(void); -int identify(struct obj *); void litroom(boolean); -int monstersym(int); /* hack.rip.c */ void outrip(void); -void center(int, char *); /* hack.rumors.c */ -void init_rumors(FILE *); -int skipline(FILE *); -void outline(FILE *); void outrumor(void); -int used(int); /* hack.save.c */ int dosave(void); -int dosave0(int); int dorecover(int); struct obj *restobjchn(int); struct monst *restmonchn(int); @@ -465,7 +377,6 @@ void replshk(struct monst *, struct monst *); int inshop(void); int dopay(void); struct bill_x; -struct obj *bp_to_obj(struct bill_x *); void addtobill(struct obj *); void splitbill(struct obj *, struct obj *); void subfrombill(struct obj *); @@ -482,7 +393,6 @@ void findname(char *, int); /* hack.steal.c */ long somegold(void); void stealgold(struct monst *); -int stealarm(void); int steal(struct monst *); void mpickobj(struct monst *, struct obj *); int stealamulet(struct monst *); @@ -493,10 +403,6 @@ void startup(void); void start_screen(void); void end_screen(void); void curs(int, int); -void nocmov(int, int); -void cmov(int, int); -int xputc(int); -void xputs(const char *); void cl_end(void); void clear_screen(void); void home(void); @@ -509,14 +415,11 @@ void cl_eos(void); /* hack.timeout.c */ void timeout(void); -void stoned_dialogue(void); /* hack.topl.c */ int doredotopl(void); -void redotoplin(void); void remember_topl(void); void addtopl(const char *); -void xmore(const char *); void more(void); void cmore(const char *); void clrlin(void); @@ -539,10 +442,7 @@ int mintrap(struct monst *); void selftouch(const char *); void float_up(void); void float_down(void); -void vtele(void); void tele(void); -void teleds(int, int); -int teleok(int, int); int dotele(void); void placebc(int); void unplacebc(void); @@ -552,7 +452,6 @@ void drown(void); /* hack.tty.c */ void gettty(void); void settty(const char *); -void setctty(void); void setftty(void); void error(const char *, ...) __attribute__((__format__(__printf__, 1, 2),__noreturn__)); @@ -567,14 +466,10 @@ void end_of_input(void) __attribute__((__noreturn__)); /* hack.u_init.c */ void u_init(void); struct trobj; -void ini_inv(struct trobj *); -void wiz_inv(void); void plnamesuffix(void); -int role_index(int); /* hack.unix.c */ void setrandom(void); -struct tm *getlt(void); int getyear(void); char *getdatestr(void); int phase_of_the_moon(void); @@ -582,7 +477,6 @@ int night(void); int midnight(void); void gethdate(char *); int uptodate(int); -int veryold(int); void getlock(void); void getmailstatus(void); void ckmailstatus(void); @@ -611,8 +505,6 @@ int chwepon(struct obj *, int); void amulet(void); int wiz_hit(struct monst *); void inrange(struct monst *); -void aggravate(void); -void clonewiz(struct monst *); /* hack.worm.c */ #ifndef NOWORM @@ -626,7 +518,6 @@ void wormsee(unsigned); struct wseg; void pwseg(struct wseg *); void cutworm(struct monst *, xchar, xchar, uchar); -void remseg(struct wseg *); #endif /* hack.worn.c */ @@ -634,8 +525,6 @@ void setworn(struct obj *, long); void setnotworn(struct obj *); /* hack.zap.c */ -void bhitm(struct monst *, struct obj *); -int bhito(struct obj *, struct obj *); int dozap(void); const char *exclam(int); void hit(const char *, struct monst *, const char *); @@ -645,13 +534,8 @@ struct monst *bhit(int, int, int, int, int (*)(struct obj *, struct obj *), struct obj *); struct monst *boomhit(int, int); -char dirlet(int, int); void buzz(int, xchar, xchar, int, int); -int zhit(struct monst *, int); -int revive(struct obj *); -void rloco(struct obj *); void fracture_rock(struct obj *); -void burn_scrolls(void); /* rnd.c */ int rn1(int, int); -- cgit v1.2.3-56-ge451