]>
git.cameronkatri.com Git - bsdgames-darwin.git/log
itojun [Sat, 20 Jan 2001 15:06:34 +0000 (15:06 +0000)]
avoid strange typcast.
cgd [Tue, 16 Jan 2001 02:50:27 +0000 (02:50 +0000)]
comment or delete text after CPP directives.
cgd [Tue, 16 Jan 2001 02:44:43 +0000 (02:44 +0000)]
include stdlib.h for prototypes (typically for exit()).
cgd [Tue, 16 Jan 2001 02:41:17 +0000 (02:41 +0000)]
avoid C sequence point issues warned about by development version of gcc.
jwise [Fri, 12 Jan 2001 04:33:51 +0000 (04:33 +0000)]
The capital of Mordor is _not_ Minas Morgul.
lukem [Tue, 9 Jan 2001 23:49:54 +0000 (23:49 +0000)]
- openlog "huntd" instead of "HUNT"
- consistently log non-critical errors at LOG_WARNING not LOG_ERR
- consistently use positive numbers for exit() and _exit()
- one warning was using printf() instead of syslog()
lukem [Tue, 9 Jan 2001 03:13:39 +0000 (03:13 +0000)]
convert to using .WAIT
lukem [Thu, 4 Jan 2001 17:24:35 +0000 (17:24 +0000)]
use more standard %ll_ in favour of %q_
itojun [Thu, 4 Jan 2001 06:33:18 +0000 (06:33 +0000)]
need string.h for prototype (checked with alpha)
jwise [Thu, 4 Jan 2001 06:16:51 +0000 (06:16 +0000)]
Normalize signature of ship handling functions -- struct ship * from and
struct ship * to are now always the first two args.
jwise [Thu, 4 Jan 2001 05:34:56 +0000 (05:34 +0000)]
Various stylistic nits.
jwise [Thu, 4 Jan 2001 05:06:15 +0000 (05:06 +0000)]
Use License templates from localsrc for license on new files.
jwise [Thu, 4 Jan 2001 04:41:41 +0000 (04:41 +0000)]
Break out curses display-related globals into a new header file, so that
<curses.h> doesn't have to be included all over the place.
jwise [Thu, 4 Jan 2001 03:51:23 +0000 (03:51 +0000)]
More rationalization of include files:
a.) Don't include a zillion system headers from "extern.h" (actually, don't
include any).
b.) Break a global jmp_buf variable into a new file, so <setjmp.h> doesn't
have to be pulled in everywhere (it's only used in two places).
The (one line) new file is (c) TNF with a three-clause license, FW(L)IW.
jwise [Thu, 4 Jan 2001 03:21:16 +0000 (03:21 +0000)]
Rationalize inclusion of header files: cut down on `include everything
everywhere' a little (more to go), and as per KNF, local includes after
system includes.
jwise [Thu, 4 Jan 2001 02:43:32 +0000 (02:43 +0000)]
Second half of static-ization of local funcs.
jwise [Thu, 4 Jan 2001 01:56:27 +0000 (01:56 +0000)]
G/C undocumented and unimplemented `-D' (debug) option.
jwise [Thu, 4 Jan 2001 01:53:24 +0000 (01:53 +0000)]
First half of static-ization of local funcs.
jwise [Thu, 4 Jan 2001 01:13:34 +0000 (01:13 +0000)]
De-`register'
jwise [Mon, 1 Jan 2001 22:33:01 +0000 (22:33 +0000)]
Fix getopt usage (again) in case where user does not choose a scenario on
the command line.
jwise [Mon, 1 Jan 2001 22:23:29 +0000 (22:23 +0000)]
Missed commit -- ANSIfy in preparation for further work.
jwise [Mon, 1 Jan 2001 22:05:04 +0000 (22:05 +0000)]
Fix getopt() usage.
jwise [Mon, 1 Jan 2001 21:57:37 +0000 (21:57 +0000)]
ANSIfy in preparation for further work.
sommerfeld [Sat, 30 Dec 2000 17:51:26 +0000 (17:51 +0000)]
${PRINTOBJDIR}ify
mycroft [Sun, 17 Dec 2000 10:08:08 +0000 (10:08 +0000)]
Another one that really belongs here...
mycroft [Sun, 17 Dec 2000 09:35:21 +0000 (09:35 +0000)]
Compress the other entries vertically.
mycroft [Sun, 17 Dec 2000 09:25:38 +0000 (09:25 +0000)]
Reformat one entry for vertical space.
mycroft [Sun, 17 Dec 2000 09:17:51 +0000 (09:17 +0000)]
Yes, it's about damn time fortune(6) got some new material.
tsarna [Thu, 14 Dec 2000 02:38:02 +0000 (02:38 +0000)]
CNN, BSD declare Bush winner.
jwise [Thu, 30 Nov 2000 22:07:24 +0000 (22:07 +0000)]
Fix warning.
jwise [Thu, 30 Nov 2000 22:06:04 +0000 (22:06 +0000)]
Use random() instead of rand(), and seed from time(3) instead of from getpid().
jwise [Thu, 30 Nov 2000 22:02:20 +0000 (22:02 +0000)]
Change the macro to roll a six-sided die from die() to dieroll() (for
obvious reasons of convention).
jwise [Thu, 30 Nov 2000 21:50:58 +0000 (21:50 +0000)]
ANSIfy in preparation for changes.
jwise [Thu, 30 Nov 2000 21:38:57 +0000 (21:38 +0000)]
Use getopt(3) for flag processing.
jwise [Thu, 30 Nov 2000 21:31:33 +0000 (21:31 +0000)]
Fix style nit.
jwise [Thu, 30 Nov 2000 21:29:32 +0000 (21:29 +0000)]
ANSIfy in preparation for other changes.
soren [Tue, 21 Nov 2000 00:18:52 +0000 (00:18 +0000)]
Just print basename in usage string.
lukem [Tue, 7 Nov 2000 05:51:54 +0000 (05:51 +0000)]
remove unnecessary command name after .Nm
lukem [Tue, 7 Nov 2000 05:49:31 +0000 (05:49 +0000)]
use lowercase with .Nm to match actual command name
mrg [Tue, 31 Oct 2000 13:27:56 +0000 (13:27 +0000)]
fix a bug in the call to srandom(): xor time() with getpid(), don't add them!
now fortune(6) run in an unending loop does not appear to show the same
fortunes over and over and over.
hubertf [Mon, 9 Oct 2000 00:58:16 +0000 (00:58 +0000)]
NetBSD will put hair on a UNIX admin's chest
-- Jason R. Fink
mjl [Fri, 29 Sep 2000 00:40:40 +0000 (00:40 +0000)]
Removed duplicate entry. Fixes FreeBSD PR/21629.
jsm [Mon, 25 Sep 2000 19:37:58 +0000 (19:37 +0000)]
In cypher(), don't attempt to make sense of words other than VERBs or
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>.
jsm [Mon, 25 Sep 2000 14:44:59 +0000 (14:44 +0000)]
Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.
jsm [Mon, 25 Sep 2000 14:08:08 +0000 (14:08 +0000)]
Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately in
messages; avoids "a amulet", "a Elf". Define and use macros to use
"a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
jsm [Mon, 25 Sep 2000 14:06:20 +0000 (14:06 +0000)]
Remove excess blank lines. From OpenBSD.
jsm [Mon, 25 Sep 2000 14:05:52 +0000 (14:05 +0000)]
Fix loving already loved goddess; avoid fallthrough after loving
goddess; give error on "love amulet". From OpenBSD.
jsm [Mon, 25 Sep 2000 00:33:18 +0000 (00:33 +0000)]
Use defined constant FINAL instead of hardcoded 275. From OpenBSD.
jsm [Mon, 25 Sep 2000 00:28:54 +0000 (00:28 +0000)]
Fix logic error in use of n and wordnumber in murder() when using
laser. From OpenBSD.
jsm [Sun, 24 Sep 2000 15:51:40 +0000 (15:51 +0000)]
Discard any part of a line of input that goes beyond our buffer rather
than treating it as our next line of input. From OpenBSD.
jsm [Sun, 24 Sep 2000 14:42:18 +0000 (14:42 +0000)]
Give less cryptic messages than "-1%" when WEIGHT or CUMBER are zero.
jsm [Sun, 24 Sep 2000 14:20:23 +0000 (14:20 +0000)]
Add explicit no-ops to empty loops following the NetBSD style guide.
jsm [Sun, 24 Sep 2000 14:11:09 +0000 (14:11 +0000)]
Make hash table static in parse.c.
jsm [Sun, 24 Sep 2000 09:47:22 +0000 (09:47 +0000)]
Use NULL instead of 0 (from OpenBSD). Also add or adjust comments.
jsm [Sun, 24 Sep 2000 09:46:57 +0000 (09:46 +0000)]
Correct spelling "dont" to "don't". From OpenBSD.
jsm [Sun, 24 Sep 2000 09:46:28 +0000 (09:46 +0000)]
Make functions local to parse.c static.
jsm [Sun, 24 Sep 2000 09:46:03 +0000 (09:46 +0000)]
Give a better message for trying to eat things it doesn't make sense
to eat. For something eatable, check first whether you're holding it,
then whether you have a knife, then whether you're stuffed (gives
better message for "eat coconuts" when you don't have any). From
OpenBSD.
jsm [Sun, 24 Sep 2000 09:44:28 +0000 (09:44 +0000)]
Clean up fly.c by making local variables and functions static and
removing abs() macro.
jsm [Sun, 24 Sep 2000 09:41:53 +0000 (09:41 +0000)]
Prevent CUMBER from going negative; avoid division by zero if it is
zero.
jsm [Sun, 24 Sep 2000 09:39:56 +0000 (09:39 +0000)]
Attempt to disambiguate BODY for kicking. Avoid crashing or nonsense
messages on "kick door" and "kick man". From OpenBSD.
jsm [Sat, 23 Sep 2000 19:51:02 +0000 (19:51 +0000)]
Allow for bathing goddess in love(); give better message for a lover
that isn't present and for certain choices of lover. From OpenBSD.
jsm [Sat, 23 Sep 2000 19:45:07 +0000 (19:45 +0000)]
Allow for the bathing goddess in ravage(). From OpenBSD.
jsm [Sat, 23 Sep 2000 19:23:57 +0000 (19:23 +0000)]
Use a lookup table to identify whether objects are plural or singular,
instead of testing the final character against 's' in each place.
Avoids oddities about "pot of jewels" and "compass".
simonb [Sat, 23 Sep 2000 13:53:41 +0000 (13:53 +0000)]
Use ${COPY} instead of -c for ${INSTALL} commands.
jhawk [Sat, 23 Sep 2000 01:52:50 +0000 (01:52 +0000)]
Correct descriptions of "marked" vs. "ignored" -- they were swapped.
jsm [Fri, 22 Sep 2000 12:38:10 +0000 (12:38 +0000)]
Don't say "Kicked." of an object not present; give sensible messages.
From OpenBSD.
jsm [Fri, 22 Sep 2000 12:37:32 +0000 (12:37 +0000)]
Check for an object being taken not being there before checking for
whether it is too heavy or too bulky; gives a better message for "take
viper" with the viper not present.
jsm [Fri, 22 Sep 2000 08:19:57 +0000 (08:19 +0000)]
Give appropriate messages (rather than saying nothing) if an verb is
used with "all" and nothing relevant is present. From OpenBSD.
jsm [Fri, 22 Sep 2000 08:19:21 +0000 (08:19 +0000)]
Remove all adjectives in parse(), since they are nowhere used. Fixes
crash on "carry old all" shown up by fuzz testing. Patch from Paul
Janzen <pjanzen@foatdi.harvard.edu>.
jsm [Fri, 22 Sep 2000 08:18:20 +0000 (08:18 +0000)]
Give an appropriate error on "kill all" rather than a crash or
nonsense message. From OpenBSD.
jsm [Thu, 21 Sep 2000 17:44:34 +0000 (17:44 +0000)]
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.
jsm [Thu, 21 Sep 2000 10:38:50 +0000 (10:38 +0000)]
Don't try to wear anything that isn't OBJECT or NOUNS. Don't try to
wear DOOR or anything without a short description. Fixes crashes on
"wear knfo" (bug reported by Peter Maydell
<pmaydell@chiark.greenend.org.uk>), "wear wear", "wear kick", "wear
door" and "wear goddess". Partly from OpenBSD.
jsm [Thu, 21 Sep 2000 10:22:36 +0000 (10:22 +0000)]
If no hand-to-hand weapons are available, try using the laser to kill
in murder(). From OpenBSD.
jsm [Thu, 21 Sep 2000 09:49:03 +0000 (09:49 +0000)]
die() on EOF; based on OpenBSD.
jsm [Thu, 21 Sep 2000 09:48:10 +0000 (09:48 +0000)]
From OpenBSD: in kiss(), "take" the bathing goddess if required, and
give a better error message if the person to kiss is not present.
jsm [Mon, 18 Sep 2000 06:14:31 +0000 (06:14 +0000)]
Add missing initialisers (avoid gcc -W warnings) and comments giving
room numbers.
jsm [Sun, 17 Sep 2000 23:04:17 +0000 (23:04 +0000)]
Clean up formatting; partly from OpenBSD.
jsm [Sun, 17 Sep 2000 23:03:43 +0000 (23:03 +0000)]
Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
and "verbose"/"brief" (in verbose mode, always show long room
descriptions), and synonyms "papaya" for "papayas" and "coconut" for
"coconuts".
jsm [Sun, 10 Sep 2000 10:52:56 +0000 (10:52 +0000)]
Based on OpenBSD: spelling, punctuation, grammar and line length
adjustments, and support for '=' in room descriptions meaning a
literal '-'.
jsm [Sun, 10 Sep 2000 10:51:16 +0000 (10:51 +0000)]
Wording, punctuation and line length improvements. Also adjust test
for killing nonsensical things to fix crash with "kill door". From
OpenBSD.
jsm [Sat, 9 Sep 2000 18:03:58 +0000 (18:03 +0000)]
Make spacing nicer and add explicit NULL initializers.
jsm [Sat, 9 Sep 2000 09:37:58 +0000 (09:37 +0000)]
Store copy of username with strdup rather than using a fixed length
buffer. Also make initialization functions and arrays static.
jsm [Sat, 9 Sep 2000 09:36:23 +0000 (09:36 +0000)]
Put prototypes in alphabetical order.
jsm [Fri, 8 Sep 2000 17:25:31 +0000 (17:25 +0000)]
Spelling and punctuation corrections or improvements from OpenBSD.
jsm [Fri, 8 Sep 2000 17:22:01 +0000 (17:22 +0000)]
Make code clearer; add a macro ROOMDESC for the number of times a room
should be visited for the short description only to be used, and don't
increment beenthere[position] beyond this value. From OpenBSD.
jsm [Fri, 8 Sep 2000 17:18:36 +0000 (17:18 +0000)]
Manpage improvements based on OpenBSD.
abs [Thu, 17 Aug 2000 16:54:28 +0000 (16:54 +0000)]
If we install limerick-o.dat, we should also install limerick-o to make it
usable.
abs [Thu, 17 Aug 2000 16:48:52 +0000 (16:48 +0000)]
Split netbsd fortunes into offensive and non offensive.
Split could be considered somewhat arbitrary.
abs [Thu, 17 Aug 2000 16:27:38 +0000 (16:27 +0000)]
NetBSD: A pmap for every occasion
mason [Sat, 12 Aug 2000 23:04:15 +0000 (23:04 +0000)]
Corrected quote. It was totally missing its (well-known) equivalent of
a punch line.
simonb [Mon, 31 Jul 2000 11:39:00 +0000 (11:39 +0000)]
Use a local implementation of htonl() called h2nl(). htonl() is not
available in all cross-compile environments.
Patches from Chris Demetriou.
ad [Mon, 31 Jul 2000 11:38:21 +0000 (11:38 +0000)]
Add 3 from me.
simonb [Mon, 31 Jul 2000 11:35:03 +0000 (11:35 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros for host programs -
use portable ANSI constructs instead.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:32:33 +0000 (11:32 +0000)]
Use a local implementation of htonl() called h2nl(). htonl() is not
available in all cross-compile environments.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:29:48 +0000 (11:29 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err
function for host programs - use portable ANSI constructs instead.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:28:48 +0000 (11:28 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/warnx
functions for host programs - use portable ANSI constructs instead.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:25:50 +0000 (11:25 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/errx
functions for host programs - use portable ANSI constructs instead.
Patches from Chris Demetriou.
mycroft [Sun, 23 Jul 2000 23:57:23 +0000 (23:57 +0000)]
Rename move() to moveplayer() to avoid clashing with libcurses.
itojun [Mon, 10 Jul 2000 10:19:25 +0000 (10:19 +0000)]
printf() pedant - do not pass variable alone, use %s.
idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
msaitoh [Wed, 5 Jul 2000 15:45:28 +0000 (15:45 +0000)]
remove extra period in SEE ALL section