]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - trek/externs.c
Use .Nm instead of "arithmetic" in one place. From jmc@openbsd.
[bsdgames-darwin.git] / trek / externs.c
index bf49da8556db8f086e773620e6e7f4792c388a62..153f04474a4ae6d4be46905ad9024a3011e13adf 100644 (file)
@@ -1,6 +1,8 @@
+/*     $NetBSD: externs.c,v 1.7 2001/02/05 01:12:46 christos Exp $     */
+
 /*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
-/*static char sccsid[] = "from: @(#)externs.c  5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: externs.c,v 1.2 1993/08/01 18:50:31 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)externs.c  8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: externs.c,v 1.7 2001/02/05 01:12:46 christos Exp $");
+#endif
 #endif /* not lint */
 
 # include      "trek.h"
@@ -42,27 +48,27 @@ static char rcsid[] = "$Id: externs.c,v 1.2 1993/08/01 18:50:31 mycroft Exp $";
 **     global variable definitions
 */
 
-struct device  Device[NDEV] =
+const struct device    Device[NDEV] =
 {
-       "warp drive",           "Scotty",
-       "S.R. scanners",        "Scotty",
-       "L.R. scanners",        "Scotty",
-       "phasers",              "Sulu",
-       "photon tubes",         "Sulu",
-       "impulse engines",      "Scotty",
-       "shield control",       "Sulu",
-       "computer",             "Spock",
-       "subspace radio",       "Uhura",
-       "life support",         "Scotty",
-       "navigation system",    "Chekov",
-       "cloaking device",      "Scotty",
-       "transporter",          "Scotty",
-       "shuttlecraft",         "Scotty",
-       "*ERR 14*",             "Nobody",
-       "*ERR 15*",             "Nobody"
+       { "warp drive",         "Scotty" },
+       { "S.R. scanners",      "Scotty" },
+       { "L.R. scanners",      "Scotty" },
+       { "phasers",            "Sulu" },
+       { "photon tubes",       "Sulu" },
+       { "impulse engines",    "Scotty" },
+       { "shield control",     "Sulu" },
+       { "computer",           "Spock" },
+       { "subspace radio",     "Uhura" },
+       { "life support",       "Scotty" },
+       { "navigation system",  "Chekov" },
+       { "cloaking device",    "Scotty" },
+       { "transporter",        "Scotty" },
+       { "shuttlecraft",       "Scotty" },
+       { "*ERR 14*",           "Nobody" },
+       { "*ERR 15*",           "Nobody" }
 };
 
-char   *Systemname[NINHAB] =
+const char     *const Systemname[NINHAB] =
 {
        "ERROR",
        "Talos IV",
@@ -97,3 +103,19 @@ char        *Systemname[NINHAB] =
        "Epsilon Eridani IV",
        "Exo III"
 };
+
+struct quad    Quad[NQUADS][NQUADS];
+
+/* current sector map */
+char   Sect[NSECTS][NSECTS];
+
+struct event   Event[MAXEVENTS];       /* dynamic event list; one entry per pending event */
+
+struct Ship_struct Ship;
+struct Game_struct Game;
+struct Move_struct Move;
+struct Param_struct Param;
+struct Now_struct Now;
+struct Etc_struct Etc;
+
+int Trace;