NetBSD/games/battlestar
jsm 1fc5d09e80 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.
2000-09-21 17:44:34 +00:00
..
battlestar.6 Manpage improvements based on OpenBSD. 2000-09-08 17:18:36 +00:00
battlestar.c Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00
com1.c Clean up formatting; partly from OpenBSD. 2000-09-17 23:04:17 +00:00
com2.c Don't try to wear anything that isn't OBJECT or NOUNS. Don't try to 2000-09-21 10:38:50 +00:00
com3.c Wording, punctuation and line length improvements. Also adjust test 2000-09-10 10:51:16 +00:00
com4.c Clean up formatting; partly from OpenBSD. 2000-09-17 23:04:17 +00:00
com5.c From OpenBSD: in kiss(), "take" the bathing goddess if required, and 2000-09-21 09:48:10 +00:00
com6.c Clean up formatting; partly from OpenBSD. 2000-09-17 23:04:17 +00:00
com7.c Clean up formatting; partly from OpenBSD. 2000-09-17 23:04:17 +00:00
cypher.c Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00
dayfile.c Add missing initialisers (avoid gcc -W warnings) and comments giving 2000-09-18 06:14:31 +00:00
dayobjs.c Add missing initialisers. 1999-09-18 16:42:29 +00:00
extern.h Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00
fly.c Add __noreturn__' and __unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
getcom.c Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00
globals.c Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00
init.c Store copy of username with strdup rather than using a fixed length 2000-09-09 09:37:58 +00:00
Makefile Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:37:30 +00:00
misc.c Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk> 1999-02-10 01:36:50 +00:00
nightfile.c Add missing initialisers (avoid gcc -W warnings) and comments giving 2000-09-18 06:14:31 +00:00
nightobjs.c Add missing initialisers. 1999-09-18 16:42:29 +00:00
parse.c Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00
pathnames.h
room.c Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op), 2000-09-17 23:03:43 +00:00
save.c Use err(1, NULL) and warn(NULL) for `out of memory' error messages. 2000-01-09 17:17:19 +00:00
words.c Various improvements to parsing in battlestar, mostly from OpenBSD. 2000-09-21 17:44:34 +00:00