History log of /openbsd-current/games/battlestar/getcom.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.17 07-Feb-2018 tedu

slightly reduce the difficulty of the adventure game that is reading
the battlestar code by reformatting a few lines.
special request from mlarkin so he'll go back to fixing meltdown.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 31-Dec-2015 mestre

Include only needed header files per each source file

OK tb@


# 1.15 24-Oct-2015 mmcc

Cast ctype functions' arguments to unsigned char.

ok guenther@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 10-Oct-2006 cloder

fgets(3) returns NULL on error, not 0. No functional change, but it makes
the code easier to read.
OK deraadt


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.12 10-Jul-2004 deraadt

more ansi; khalek@linuxgamers.net


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.11 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.10 26-Sep-2000 pjanzen

Improve handling of multiple commands on one line. Tidy fight parser.
Handle "all" in one place (almost). Add AUXVERB category and OBJ_PERSON/
OBJ_NONOBJ flags. Most was discussed with jsm@netbsd.org, and some is from
him.


# 1.9 24-Sep-2000 pjanzen

numerous changes from jsm@netbsd.org:
static where appropriate, add a few comments, format a bit better, and
deal with WEIGHT/CUMBER being zero (and not less).


# 1.8 23-Sep-2000 pjanzen

die() if stdin disappears, rather than just exiting; jsm@netbsd.org.
dump the end of the buffer if an input line was too long.


# 1.7 17-Sep-2000 pjanzen

Fewer segfaults ("take all and all", "wear wear"), better parsing
(e.g. disambiguation of "drop body"). Also, use "a" or "an" correctly,
don't overflow the words array, and don't kick items you're wearing.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.6 25-Sep-1999 pjanzen

Merge 4.4BSD-Lite2 and NetBSD, including improved save file handling of
jsm28@cam.ac.uk. Rename setbit() family of macros so as not to conflict
with <sys/param.h>.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 13-Sep-1998 pjanzen

NetBSD merge, numerous patches from jsm28@cam.ac.uk, spelling fixes, and
correct gid revoke.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.4 01-Sep-1997 millert

Remove trailing spaces on lines, use sane pathname sizes, and
use warn instead of perror.


# 1.3 24-Aug-1997 deraadt

various linux-based patches; from linux people; sent by jsm@octomino.demon.co.uk


# 1.2 30-Jun-1997 kstailey

tag


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 31-Dec-2015 mestre

Include only needed header files per each source file

OK tb@


# 1.15 24-Oct-2015 mmcc

Cast ctype functions' arguments to unsigned char.

ok guenther@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 10-Oct-2006 cloder

fgets(3) returns NULL on error, not 0. No functional change, but it makes
the code easier to read.
OK deraadt


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.12 10-Jul-2004 deraadt

more ansi; khalek@linuxgamers.net


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.11 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.10 26-Sep-2000 pjanzen

Improve handling of multiple commands on one line. Tidy fight parser.
Handle "all" in one place (almost). Add AUXVERB category and OBJ_PERSON/
OBJ_NONOBJ flags. Most was discussed with jsm@netbsd.org, and some is from
him.


# 1.9 24-Sep-2000 pjanzen

numerous changes from jsm@netbsd.org:
static where appropriate, add a few comments, format a bit better, and
deal with WEIGHT/CUMBER being zero (and not less).


# 1.8 23-Sep-2000 pjanzen

die() if stdin disappears, rather than just exiting; jsm@netbsd.org.
dump the end of the buffer if an input line was too long.


# 1.7 17-Sep-2000 pjanzen

Fewer segfaults ("take all and all", "wear wear"), better parsing
(e.g. disambiguation of "drop body"). Also, use "a" or "an" correctly,
don't overflow the words array, and don't kick items you're wearing.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.6 25-Sep-1999 pjanzen

Merge 4.4BSD-Lite2 and NetBSD, including improved save file handling of
jsm28@cam.ac.uk. Rename setbit() family of macros so as not to conflict
with <sys/param.h>.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 13-Sep-1998 pjanzen

NetBSD merge, numerous patches from jsm28@cam.ac.uk, spelling fixes, and
correct gid revoke.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.4 01-Sep-1997 millert

Remove trailing spaces on lines, use sane pathname sizes, and
use warn instead of perror.


# 1.3 24-Aug-1997 deraadt

various linux-based patches; from linux people; sent by jsm@octomino.demon.co.uk


# 1.2 30-Jun-1997 kstailey

tag


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision