summaryrefslogtreecommitdiffstats
path: root/battlestar/extern.h
Commit message (Collapse)AuthorAgeFilesLines
* Use random(), not rand().dholland2014-03-221-2/+2
|
* avoid signed left-shiftdholland2014-03-221-5/+5
|
* Use CHAR_BIT, not 8.dholland2014-03-221-2/+3
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-4/+4
|
* sprinkle staticdholland2009-08-121-3/+1
|
* KNF and WARNS=3jmc2005-07-011-3/+3
|
* Remove uses of __P.jsm2004-01-271-58/+58
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-6/+2
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* In cypher(), don't attempt to make sense of words other than VERBs orjsm2000-09-251-1/+2
| | | | | | | | 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>.
* Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.jsm2000-09-251-2/+11
|
* Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately injsm2000-09-251-1/+10
| | | | messages; avoids "a amulet", "a Elf". Define and use macros to use "a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
* Make hash table static in parse.c.jsm2000-09-241-5/+1
|
* Make functions local to parse.c static.jsm2000-09-241-4/+1
|
* Clean up fly.c by making local variables and functions static andjsm2000-09-241-8/+1
| | | removing abs() macro.
* Use a lookup table to identify whether objects are plural or singular,jsm2000-09-231-1/+6
| | | | instead of testing the final character against 's' in each place. Avoids oddities about "pot of jewels" and "compass".
* Various improvements to parsing in battlestar, mostly from OpenBSD.jsm2000-09-211-2/+3
| | | | | | | | | | | | | | | | | | | | 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.
* Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),jsm2000-09-171-1/+6
| | | | | and "verbose"/"brief" (in verbose mode, always show long room descriptions), and synonyms "papaya" for "papayas" and "coconut" for "coconuts".
* Store copy of username with strdup rather than using a fixed lengthjsm2000-09-091-5/+2
| | | buffer. Also make initialization functions and arrays static.
* Put prototypes in alphabetical order.jsm2000-09-091-7/+7
|
* Make code clearer; add a macro ROOMDESC for the number of times a roomjsm2000-09-081-1/+4
| | | | should be visited for the short description only to be used, and don't increment beenthere[position] beyond this value. From OpenBSD.
* Rename move() to moveplayer() to avoid clashing with libcurses.mycroft2000-07-231-2/+2
|
* Declare variables in extern.h as extern, and add non-externjsm1999-09-141-40/+40
| | | declarations to globals.c.
* Use time() instead of gettimeofday().jsm1999-09-141-3/+2
|
* Fix uses of names of library functions for other purposes.jsm1999-09-131-2/+2
|
* This patch improves the handling of save files in battlestar(6), byhubertf1999-07-281-4/+7
| | | | | | | | | | 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.
* Drop setgid privileges early. Derived from OpenBSD and sent in as PR 5970hubertf1999-07-211-1/+2
| | | by Joseph Myers <jsm28@cam.ac.uk>.
* Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-02-101-22/+22
|
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-4/+4
|
* - really make extern char's extern.mrg1998-03-291-6/+6
|
* change includes to fix compiler warningperry1998-02-031-1/+3
|
* KNFify (with indent)lukem1997-10-111-120/+121
|
* WARNSifylukem1997-10-101-6/+75
|
* sigh, fix RCS ID againtls1997-01-071-1/+1
|
* RCS ID Policetls1997-01-071-0/+2
|
* Sync to 4.4BSD-Lite2tls1997-01-071-1/+2
|
* Import from 4.4BSD-Lite2tls1996-12-281-0/+297