-/* $NetBSD: trek.h,v 1.14 2009/05/24 21:44:56 dholland Exp $ */
+/* $NetBSD: trek.h,v 1.18 2009/08/12 08:54:54 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
/********************* GALAXY **************************/
+#include <float.h>
+
/* galactic parameters */
#define NSECTS 10 /* dimensions of quadrant in sectors */
#define NQUADS 8 /* dimension of galazy in quadrants */
int secty; /* sector y coord */
unsigned char cond; /* condition code */
/* sinsbad is set if SINS is working but not calibrated */
- char sinsbad; /* Space Inertial Navigation System condition */
+ char sinsbad; /* Space Inertial Navigation System condition*/
const char *shipname; /* name of current starship */
char ship; /* current starship */
int distressed; /* number of distress calls */
/* Other stuff, not dumped in a snapshot */
struct Etc_struct {
- struct kling klingon[MAXKLQUAD]; /* sorted Klingon list */
- short nkling; /* number of Klingons in this sector */
- /* < 0 means automatic override mode */
- char fast; /* set if speed > 300 baud */
- struct xy starbase; /* starbase in current quadrant */
- char snapshot[sizeof Quad + sizeof Event + sizeof Now]; /* snapshot for time warp */
- char statreport; /* set to get a status report on a srscan */
+ struct kling klingon[MAXKLQUAD];/* sorted Klingon list */
+ short nkling; /* number of Klingons in this sector */
+ /* < 0 means automatic override mode */
+ char fast; /* set if speed > 300 baud */
+ struct xy starbase; /* starbase in current quadrant */
+ char snapshot[sizeof Quad + sizeof Event + sizeof Now];
+ /* snapshot for time warp */
+ char statreport; /* set to get a status report on a srscan */
};
extern struct Etc_struct Etc;
/* capture.c */
void capture(int);
-struct kling *selectklingon(void);
-
-/* cgetc.c */
-char cgetc(int);
/* check_out.c */
int check_out(int);
void klmove(int);
/* lose.c */
-void lose(int) __attribute__((__noreturn__));
+void lose(int) __dead;
/* lrscan.c */
void lrscan(int);
void phaser(int);
/* play.c */
-void myreset(int) __attribute__((__noreturn__));
-void play(void) __attribute__((__noreturn__));
+void play(void) __dead;
/* ram.c */
void ram(int, int );
void warp(int, int, double);
/* win.c */
-void win(void) __attribute__((__noreturn__));
+void win(void) __dead;