-/* $NetBSD: extern.h,v 1.22 2000/09/23 19:23:58 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.23 2000/09/24 09:44:28 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#define DEFAULT_SAVE_FILE ".Bstar"
-void blast __P((void));
void bury __P((void));
int card __P((const char *, int));
void chime __P((void));
int drive __P((void));
int drop __P((const char *));
int eat __P((void));
-void endfly __P((void));
int fight __P((int, int));
int follow __P((void));
char *getcom __P((char *, int, const char *, const char *));
void live __P((void)) __attribute__((__noreturn__));
struct wlist *lookup __P((const char *));
void love __P((void));
-void moveenemy __P((int));
int moveplayer __P((int, int));
void murder __P((void));
void news __P((void));
void newway __P((int));
-void notarget __P((void));
void open_score_file __P((void));
void parse __P((void));
void post __P((char));
int ride __P((void));
void save __P((const char *));
char *save_file_name __P((const char *, size_t));
-void screen __P((void));
int shoot __P((void));
-void succumb __P((int));
int take __P((unsigned int[]));
int takeoff __P((void));
-void target __P((void));
int throw __P((const char *));
const char *truedirec __P((int, char));
int ucard __P((const unsigned int *));
-/* $NetBSD: fly.c,v 1.8 1999/09/08 21:45:25 jsm Exp $ */
+/* $NetBSD: fly.c,v 1.9 2000/09/24 09:44:28 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: fly.c,v 1.8 1999/09/08 21:45:25 jsm Exp $");
+__RCSID("$NetBSD: fly.c,v 1.9 2000/09/24 09:44:28 jsm Exp $");
#endif
#endif /* not lint */
#undef UP
#include <curses.h>
-#define abs(a) ((a) < 0 ? -(a) : (a))
#define MIDR (LINES/2 - 1)
#define MIDC (COLS/2 - 1)
-int row, column;
-int dr = 0, dc = 0;
-char destroyed;
+static int row, column;
+static int dr = 0, dc = 0;
+static char destroyed;
int ourclock = 120; /* time for all the flights in the game */
-char cross = 0;
-sig_t oldsig;
+static char cross = 0;
+static sig_t oldsig;
-void
+static void blast __P((void));
+static void endfly __P((void));
+static void moveenemy __P((int));
+static void notarget __P((void));
+static void screen __P((void));
+static void succumb __P((int));
+static void target __P((void));
+
+static void
succumb(dummy)
int dummy __attribute__((__unused__));
{
}
}
-void
+static void
screen()
{
int r, c, n;
refresh();
}
-void
+static void
target()
{
int n;
}
}
-void
+static void
notarget()
{
int n;
}
}
-void
+static void
blast()
{
int n;
alarm(1);
}
-void
+static void
moveenemy(dummy)
int dummy __attribute__((__unused__));
{
alarm(1);
}
-void
+static void
endfly()
{
alarm(0);