Home | History | Annotate | Download | only in battlestar
History log of /src/games/battlestar/extern.h
RevisionDateAuthorComments
 1.36  22-Mar-2014  dholland Use random(), not rand().
 1.35  22-Mar-2014  dholland avoid signed left-shift
 1.34  22-Mar-2014  dholland Use CHAR_BIT, not 8.
 1.33  26-Aug-2011  dholland branches: 1.33.2; 1.33.8;
Use __dead and __printflike instead of __attribute__.
 1.32  12-Aug-2009  dholland sprinkle static
 1.31  01-Jul-2005  jmc KNF and WARNS=3
 1.30  27-Jan-2004  jsm Remove uses of __P.
 1.29  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.28  25-Sep-2000  jsm In cypher(), don't attempt to make sense of words other than VERBs or
KNIFE when a verb is required. Add AUXVERB for "make", "move",
"climb" (as in "make love", "climb up") and ignore AUXVERB as a verb,
going on to the next word, instead of treating these words as
adjectives. When creating new verbs from "put on", "put down", "take
off", mark them as type VERB. Mostly from Paul Janzen
<pjanzen@foatdi.harvard.edu>.
 1.27  25-Sep-2000  jsm Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.
 1.26  25-Sep-2000  jsm Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately in
messages; avoids "a amulet", "a Elf". Define and use macros to use
"a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
 1.25  24-Sep-2000  jsm Make hash table static in parse.c.
 1.24  24-Sep-2000  jsm Make functions local to parse.c static.
 1.23  24-Sep-2000  jsm Clean up fly.c by making local variables and functions static and
removing abs() macro.
 1.22  23-Sep-2000  jsm Use a lookup table to identify whether objects are plural or singular,
instead of testing the final character against 's' in each place.
Avoids oddities about "pot of jewels" and "compass".
 1.21  21-Sep-2000  jsm Various improvements to parsing in battlestar, mostly from OpenBSD.

Define a constant WORDLEN. Always use this constant and NWORD where
appropriate.

Use NWORD - 1 in battlestar.c to avoid off-by-one error.

Increment wordnumber after the INVEN verb to allow it to be followed
by a comma and other actions.

Avoid overflowing elements of the words array if input words are too
long.

Parse "," as AND except when followed by a verb, to allow such
constructions as "take foo, bar, and baz". Trim AND AND which may
occur from the ", and" in such a list.

Avoid crashes from EVERYTHING in the wrong place by moving it to the
start of OBJECT AND EVERYTHING and NOUNS AND EVERYTHING sequences, and
trimming EVERYTHING AND EVERYTHING.
 1.20  17-Sep-2000  jsm Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
and "verbose"/"brief" (in verbose mode, always show long room
descriptions), and synonyms "papaya" for "papayas" and "coconut" for
"coconuts".
 1.19  09-Sep-2000  jsm Store copy of username with strdup rather than using a fixed length
buffer. Also make initialization functions and arrays static.
 1.18  09-Sep-2000  jsm Put prototypes in alphabetical order.
 1.17  08-Sep-2000  jsm Make code clearer; add a macro ROOMDESC for the number of times a room
should be visited for the short description only to be used, and don't
increment beenthere[position] beyond this value. From OpenBSD.
 1.16  23-Jul-2000  mycroft Rename move() to moveplayer() to avoid clashing with libcurses.
 1.15  14-Sep-1999  jsm branches: 1.15.8;
Declare variables in extern.h as extern, and add non-extern
declarations to globals.c.
 1.14  14-Sep-1999  jsm Use time() instead of gettimeofday().
 1.13  13-Sep-1999  jsm Fix uses of names of library functions for other purposes.
 1.12  28-Jul-1999  hubertf This patch improves the handling of save files in battlestar(6), by
allowing the user to choose the name of the save file and specify it
on the command line when restoring. It also eliminates a buffer
overrun in determining the path to the save file, and any particular
arbitrary limit on the name length. In the name of a tidier home
directory, the default name is changed from "Bstar" to ".Bstar".

Patch supplied in PR 8085 by Joseph Myers <jsm28@cam.ac.uk>
Minor modification (s/startup/filename/ in initialize()) by me.
 1.11  21-Jul-1999  hubertf Drop setgid privileges early. Derived from OpenBSD and sent in as PR 5970
by Joseph Myers <jsm28@cam.ac.uk>.
 1.10  10-Feb-1999  hubertf Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>
 1.9  13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.8  29-Mar-1998  mrg - really make extern char's extern.
 1.7  03-Feb-1998  perry change includes to fix compiler warning
 1.6  11-Oct-1997  lukem KNFify (with indent)
 1.5  10-Oct-1997  lukem WARNSify
 1.4  07-Jan-1997  tls sigh, fix RCS ID again
 1.3  07-Jan-1997  tls RCS ID Police
 1.2  07-Jan-1997  tls Sync to 4.4BSD-Lite2
 1.1  28-Dec-1996  tls branches: 1.1.1;
Initial revision
 1.1.1.1  28-Dec-1996  tls Import from 4.4BSD-Lite2
 1.15.8.1  26-Jul-2000  mycroft Approved by thorpej:
Rename move() to moveplayer() to avoid clashing with libcurses.

basesrc/games/battlestar/com1.c 1.9 -> 1.10
basesrc/games/battlestar/com7.c 1.6 -> 1.7
basesrc/games/battlestar/cypher.c 1.10 -> 1.11
basesrc/games/battlestar/extern.h 1.15 -> 1.16
 1.33.8.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.33.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed