summaryrefslogtreecommitdiffstats
path: root/battlestar/globals.c
Commit message (Collapse)AuthorAgeFilesLines
* speed limit 80dholland2020-12-061-9/+24
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.jsm2000-09-251-10/+18
|
* Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately injsm2000-09-251-10/+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-4/+2
|
* Use NULL instead of 0 (from OpenBSD). Also add or adjust comments.jsm2000-09-241-18/+18
|
* Use a lookup table to identify whether objects are plural or singular,jsm2000-09-231-2/+13
| | | | 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-3/+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-2/+3
| | | | | 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-3/+3
| | | buffer. Also make initialization functions and arrays static.
* Spelling and punctuation corrections or improvements from OpenBSD.jsm2000-09-081-9/+9
|
* Declare variables in extern.h as extern, and add non-externjsm1999-09-141-2/+38
| | | declarations to globals.c.
* From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:hubertf1999-07-141-4/+4
| | | | More battlestar(6) spelling and punctuation fixes for battlestar(6). These ones come from OpenBSD.
* Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-02-101-7/+7
|
* KNFify (with indent)lukem1997-10-111-60/+60
|
* WARNSifylukem1997-10-101-2/+3
|
* Sync to 4.4BSD-Lite2tls1997-01-071-4/+4
|
* clean up importcgd1995-03-211-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+219