summaryrefslogtreecommitdiffstats
path: root/battlestar/getcom.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-5/+5
|
* PR/45842: Henning Petersen: compare fgets with NULL not 0christos2012-01-161-3/+3
|
* KNF and WARNS=3jmc2005-07-011-14/+12
|
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-11/+11
|
* 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.
* Discard any part of a line of input that goes beyond our buffer ratherjsm2000-09-241-2/+8
| | | than treating it as our next line of input. From OpenBSD.
* Various improvements to parsing in battlestar, mostly from OpenBSD.jsm2000-09-211-10/+24
| | | | | | | | | | | | | | | | | | | | 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.
* die() on EOF; based on OpenBSD.jsm2000-09-211-2/+4
|
* Clean up formatting; partly from OpenBSD.jsm2000-09-171-9/+8
|
* Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-02-101-3/+3
|
* KNFify (with indent)lukem1997-10-111-16/+17
|
* WARNSifylukem1997-10-101-6/+6
|
* 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/+99