diff options
author | Warner Losh <imp@FreeBSD.org> | 2002-02-18 05:15:19 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2002-02-18 05:15:19 +0000 |
commit | ad64363769ccc68607fb1a7cf4559c3cc6edf59e (patch) | |
tree | 275284ba202a3acb4c5d5041be389eba1a666e3b /games/battlestar | |
parent | ab3d6ee0980a4fdd7264657107a076f92afb0e56 (diff) | |
download | src-ad64363769ccc68607fb1a7cf4559c3cc6edf59e.tar.gz src-ad64363769ccc68607fb1a7cf4559c3cc6edf59e.zip |
Remove __P
Remove __STDC__ (which means we now use stdarg rather than vararg)
Remove register
Remove main prototype
Notes
Notes:
svn path=/head/; revision=90828
Diffstat (limited to 'games/battlestar')
-rw-r--r-- | games/battlestar/com1.c | 2 | ||||
-rw-r--r-- | games/battlestar/com6.c | 2 | ||||
-rw-r--r-- | games/battlestar/externs.h | 102 | ||||
-rw-r--r-- | games/battlestar/fly.c | 14 | ||||
-rw-r--r-- | games/battlestar/init.c | 6 | ||||
-rw-r--r-- | games/battlestar/parse.c | 6 |
6 files changed, 66 insertions, 66 deletions
diff --git a/games/battlestar/com1.c b/games/battlestar/com1.c index 09fddc34ecaf..4e054f261316 100644 --- a/games/battlestar/com1.c +++ b/games/battlestar/com1.c @@ -41,7 +41,7 @@ static const char rcsid[] = #include "externs.h" -void convert __P((int)); +void convert(int); int battlestar_move(thataway, token) diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index 33fd82c52d9c..d01644317ebf 100644 --- a/games/battlestar/com6.c +++ b/games/battlestar/com6.c @@ -43,7 +43,7 @@ static const char rcsid[] = #include "externs.h" #include "pathnames.h" -static void post __P((unsigned int ch)); +static void post(unsigned int ch); int launch() diff --git a/games/battlestar/externs.h b/games/battlestar/externs.h index 6dcc0a1381ed..0755e803069b 100644 --- a/games/battlestar/externs.h +++ b/games/battlestar/externs.h @@ -254,58 +254,58 @@ int wordtype[NWORD]; int wordcount, wordnumber; -int battlestar_move __P((int, int)); -void bury __P((void)); -int card __P((const char *, int)); -void chime __P((void)); -void crash __P((void)); -int cypher __P((void)); -void die __P((int)); -void dig __P((void)); -int draw __P((void)); -void drink __P((void)); -int drive __P((void)); -int drop __P((const char *name)); -int eat __P((void)); -int fight __P((int, int)); -int follow __P((void)); -char *getcom __P((char *, int, const char *, const char *)); -char *getword __P((char *, char *, int)); -int give __P((void)); -void initialize __P((int)); -int jump __P((void)); -void kiss __P((void)); -int land __P((void)); -int launch __P((void)); -void light __P((void)); -void live __P((void)); -void love __P((void)); -void murder __P((void)); -void news __P((void)); -void newway __P((int)); -void open_score_file __P((void)); -void parse __P((void)); -void printobjs __P((void)); -int put __P((void)); -int puton __P((void)); -void ravage __P((void)); -const char *rate __P((void)); -void restore __P((void)); -int ride __P((void)); -void save __P((void)); -int shoot __P((void)); -int take __P((unsigned int from[])); +int battlestar_move(int, int); +void bury(void); +int card(const char *, int); +void chime(void); +void crash(void); +int cypher(void); +void die(int); +void dig(void); +int draw(void); +void drink(void); +int drive(void); +int drop(const char *name); +int eat(void); +int fight(int, int); +int follow(void); +char *getcom(char *, int, const char *, const char *); +char *getword(char *, char *, int); +int give(void); +void initialize(int); +int jump(void); +void kiss(void); +int land(void); +int launch(void); +void light(void); +void live(void); +void love(void); +void murder(void); +void news(void); +void newway (int); +void open_score_file(void); +void parse(void); +void printobjs(void); +int put(void); +int puton(void); +void ravage(void); +const char *rate(void); +void restore(void); +int ride(void); +void save(void); +int shoot(void); +int take(unsigned int from[]); int takeoff(void); -int throw __P((const char *name)); -const char *truedirec __P((int, unsigned int)); -int ucard __P((const unsigned int *)); -int use __P((void)); -int visual __P((void)); -int wearit __P((void)); -void whichway __P((struct room)); -void wordinit __P((void)); -void writedes __P((void)); -int zzz __P((void)); +int throw(const char *name); +const char *truedirec(int, unsigned int); +int ucard(const unsigned int *); +int use(void); +int visual(void); +int wearit(void); +void whichway(struct room); +void wordinit(void); +void writedes(void); +int zzz(void); /* state of the game */ extern int gclock; diff --git a/games/battlestar/fly.c b/games/battlestar/fly.c index 5018f73d908c..e2048073da3f 100644 --- a/games/battlestar/fly.c +++ b/games/battlestar/fly.c @@ -55,13 +55,13 @@ int gclock = 120; /* gtime for all the flights in the game */ char cross = 0; sig_t oldsig; -static void blast __P((void)); -static void endfly __P((void)); -static void moveenemy __P((int)); -static void notarget __P((void)); -static void succumb __P((int)); -static void screen __P((void)); -static void target __P((void)); +static void blast(void); +static void endfly(void); +static void moveenemy(int); +static void notarget(void); +static void succumb(int); +static void screen(void); +static void target(void); void succumb(sig) diff --git a/games/battlestar/init.c b/games/battlestar/init.c index ea7fe3d344df..85ee6f200177 100644 --- a/games/battlestar/init.c +++ b/games/battlestar/init.c @@ -44,9 +44,9 @@ static const char rcsid[] = #include <string.h> #include "externs.h" -static int checkout __P((const char *)); -static void getutmp __P((char *)); -static int wizard __P((const char *)); +static int checkout(const char *); +static void getutmp(char *); +static int wizard(const char *); void initialize(startup) diff --git a/games/battlestar/parse.c b/games/battlestar/parse.c index a5846adb137e..e705b637bd74 100644 --- a/games/battlestar/parse.c +++ b/games/battlestar/parse.c @@ -41,9 +41,9 @@ static const char rcsid[] = #include "externs.h" -static int hash __P((const char *)); -static void install __P((struct wlist *)); -struct wlist *lookup __P((const char *)); +static int hash (const char *); +static void install(struct wlist *); +struct wlist *lookup(const char *); void wordinit() |