]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
22 years agoBe more verbose about teleports, and fix a minor problem in autobot mode.
christos [Thu, 31 Jan 2002 17:35:52 +0000 (17:35 +0000)]
Be more verbose about teleports, and fix a minor problem in autobot mode.

22 years agoDon't put [] around the strings passed to tr -- those can be interpreted
tv [Wed, 30 Jan 2002 19:41:39 +0000 (19:41 +0000)]
Don't put [] around the strings passed to tr -- those can be interpreted
by shells.  Just quote 'em.

22 years agoTemporarily add a "MKHIDEGAME" variable that by default blocks the
perry [Sun, 27 Jan 2002 00:35:16 +0000 (00:35 +0000)]
Temporarily add a "MKHIDEGAME" variable that by default blocks the
"install some games into /usr/games/hide" dance. This is ?='ed to "no"
at the top of the file.

XXX What we should do ultimately is either add this to bsd.own.mk or
rename it to MKDM and also have it control whether dm(8) is built at all.

22 years agoMake this work if HIDEGAME is not set but SETGIDGAME is set.
perry [Sun, 27 Jan 2002 00:08:49 +0000 (00:08 +0000)]
Make this work if HIDEGAME is not set but SETGIDGAME is set.
Also, fix SETGIDGAME -- it was breaking for anything that included
bsd.own.mk

23 years agoUse standard headers.
wiz [Sun, 20 Jan 2002 00:52:22 +0000 (00:52 +0000)]
Use standard headers.

23 years agoAllow minimum word length to be set on command line. Patch based on
jsm [Sun, 20 Jan 2002 00:42:51 +0000 (00:42 +0000)]
Allow minimum word length to be set on command line.  Patch based on
one by Joey Hess <joeyh@debian.org>.

23 years agofew entries more
pooka [Thu, 10 Jan 2002 15:31:04 +0000 (15:31 +0000)]
few entries more

23 years agoSync getopt() / man page with actual getopt options.
soren [Thu, 20 Dec 2001 20:10:33 +0000 (20:10 +0000)]
Sync getopt() / man page with actual getopt options.

23 years ago.include <bsd.own.mk> early
gmcgarry [Wed, 19 Dec 2001 06:18:25 +0000 (06:18 +0000)]
.include <bsd.own.mk> early

23 years agoMKfoo=no -> NOfoo=
tv [Wed, 12 Dec 2001 00:07:45 +0000 (00:07 +0000)]
MKfoo=no -> NOfoo=

23 years agoChange deprecated curses function to new equivalent.
blymn [Thu, 6 Dec 2001 12:24:00 +0000 (12:24 +0000)]
Change deprecated curses function to new equivalent.

23 years agoChanged deprecated curses call to new equivalent.
blymn [Thu, 6 Dec 2001 12:21:00 +0000 (12:21 +0000)]
Changed deprecated curses call to new equivalent.

23 years agoChange deprecated curses call to new equivalent.
blymn [Thu, 6 Dec 2001 12:19:44 +0000 (12:19 +0000)]
Change deprecated curses call to new equivalent.

23 years agoChange deprecated curses function to new equivalent.
blymn [Thu, 6 Dec 2001 12:17:57 +0000 (12:17 +0000)]
Change deprecated curses function to new equivalent.

23 years agoChange deprecated curses function calls to new equivalents.
blymn [Thu, 6 Dec 2001 12:15:37 +0000 (12:15 +0000)]
Change deprecated curses function calls to new equivalents.

23 years agoChange deprecated curses function to new equivalent.
blymn [Thu, 6 Dec 2001 11:59:45 +0000 (11:59 +0000)]
Change deprecated curses function to new equivalent.

23 years agoReplace some misuses of "then" with "than".
wiz [Tue, 4 Dec 2001 17:56:30 +0000 (17:56 +0000)]
Replace some misuses of "then" with "than".

23 years agoReplace deprecated curses call with supported equivalent.
blymn [Tue, 4 Dec 2001 13:12:23 +0000 (13:12 +0000)]
Replace deprecated curses call with supported equivalent.

23 years agoConvert old deprecated curses call to new equivalent.
blymn [Tue, 4 Dec 2001 13:00:24 +0000 (13:00 +0000)]
Convert old deprecated curses call to new equivalent.

23 years agoPresence looks better with a 'c' instead of an 's'.
wiz [Wed, 21 Nov 2001 19:01:31 +0000 (19:01 +0000)]
Presence looks better with a 'c' instead of an 's'.

23 years agoremove a spurious .include <bsd.own.mk>
perry [Mon, 19 Nov 2001 04:48:44 +0000 (04:48 +0000)]
remove a spurious .include <bsd.own.mk>

23 years agoUpdate to the new t_agetstr() API.
christos [Fri, 2 Nov 2001 18:27:00 +0000 (18:27 +0000)]
Update to the new t_agetstr() API.

23 years agoUndo indentation glitch in previous.
wiz [Sun, 28 Oct 2001 19:52:53 +0000 (19:52 +0000)]
Undo indentation glitch in previous.

23 years agoimprove random number seeding
proff [Sun, 28 Oct 2001 19:47:48 +0000 (19:47 +0000)]
improve random number seeding

23 years agoAdd one.
mjl [Mon, 22 Oct 2001 00:55:00 +0000 (00:55 +0000)]
Add one.

23 years agoFortune is not moribund.
proff [Sat, 20 Oct 2001 09:33:39 +0000 (09:33 +0000)]
Fortune is not moribund.

Add Farberisms from Prof. Dave Farber.

From: David Farber <dave@farber.net>
To: proff@iq.org (Julian Assange)
Date: Sat, 20 Oct 2001 03:29:08 -0400
Subject: Re: farberisms

Fine with me

At 02:27 PM 10/20/2001 +1000, you wrote:

>Hi Dave,
>
>I've just come accross your list of `Farberisms', which had me in
>stiches. As these are deliciously `fortune'esqe, I'd like to add
>them to the NetBSD distribution. Do you have any objections?
>
>Cheers,
>Julian.

23 years agoRename com#.c to command#.c to avoid conflicts with those file basenames
tv [Fri, 19 Oct 2001 03:06:09 +0000 (03:06 +0000)]
Rename com#.c to command#.c to avoid conflicts with those file basenames
on certain Microsoft host OS's.

23 years agova_{start,end} audit:
wiz [Mon, 24 Sep 2001 13:22:25 +0000 (13:22 +0000)]
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.

23 years agoif we're going to quote the movie, let's at least get it *right*
lukem [Wed, 19 Sep 2001 04:54:06 +0000 (04:54 +0000)]
if we're going to quote the movie, let's at least get it *right*

23 years agoGive initiali[sz]e all the "i"s it deserves.
wiz [Tue, 18 Sep 2001 18:15:49 +0000 (18:15 +0000)]
Give initiali[sz]e all the "i"s it deserves.

23 years agoSpell 'occurred' with two 'r's.
wiz [Sun, 16 Sep 2001 16:34:23 +0000 (16:34 +0000)]
Spell 'occurred' with two 'r's.

23 years agoMore quote cleanup. Remove a fortune that also is in -o.
mjl [Sat, 1 Sep 2001 22:30:54 +0000 (22:30 +0000)]
More quote cleanup. Remove a fortune that also is in -o.
Add a couple of fortunes I had lying around.

23 years agoSome more quotes removed. Corrected errors noticed by Andrew Brown
mjl [Sat, 1 Sep 2001 21:28:28 +0000 (21:28 +0000)]
Some more quotes removed. Corrected errors noticed by Andrew Brown
<atatat@atatdot.net>.

23 years agoFix typos and spelos. Add and correct some attributions. Add a
mjl [Sat, 1 Sep 2001 19:35:32 +0000 (19:35 +0000)]
Fix typos and spelos. Add and correct some attributions. Add a
couple of fortunes. Canonize quotes. Remove duplicate fortunes.
Correct author names.
Mostly from FreeBSD and OpenBSD.

23 years agoAlways lseek back to the beginning of the file in post(), which may be
jsm [Fri, 31 Aug 2001 07:17:02 +0000 (07:17 +0000)]
Always lseek back to the beginning of the file in post(), which may be
called twice in a game if a bonus occurs.  Patch from Malcolm Parsons
<malcolm@ivywell.screaming.net>.

23 years agoEnsure that the random hop delta does make the cave connected. Based
jsm [Fri, 31 Aug 2001 07:16:22 +0000 (07:16 +0000)]
Ensure that the random hop delta does make the cave connected.  Based
on bug report and patch from <afghan@afghanhound.org.uk>.

23 years agoKeep track of visible worm length. If nowhere is available for the
jsm [Fri, 31 Aug 2001 07:15:44 +0000 (07:15 +0000)]
Keep track of visible worm length.  If nowhere is available for the
new prize, have the player win rather than hanging.  Bug reported by
Malcolm Parsons <malcolm@ivywell.screaming.net>.

23 years agoMatch quotes.
simonb [Fri, 31 Aug 2001 00:17:45 +0000 (00:17 +0000)]
Match quotes.

23 years agoRemove duplicate fortunes.
mjl [Fri, 31 Aug 2001 00:10:17 +0000 (00:10 +0000)]
Remove duplicate fortunes.

23 years agoCheck for screen sizes that are too small. Fix off-by-one error in
jsm [Thu, 30 Aug 2001 10:49:50 +0000 (10:49 +0000)]
Check for screen sizes that are too small.  Fix off-by-one error in
trying to place the prize.  Position the score appropriately for
screens that may not be 80 columns wide.

23 years agoRemove documented bug with long worm lengths, and improve handling of
jsm [Wed, 29 Aug 2001 23:25:58 +0000 (23:25 +0000)]
Remove documented bug with long worm lengths, and improve handling of
non-standard screen sizes.  From OpenBSD.

23 years agoInclude <time.h> for declarations the Single Unix Specification says
jsm [Wed, 29 Aug 2001 18:23:44 +0000 (18:23 +0000)]
Include <time.h> for declarations the Single Unix Specification says
are there but not in <sys/time.h>.

23 years agoEnsure trailing newline is present on error and warning messages (lost
jsm [Wed, 29 Aug 2001 18:22:56 +0000 (18:22 +0000)]
Ensure trailing newline is present on error and warning messages (lost
in previous conversion from <err.h> functions to ISO C ones).

23 years ago"wierd" is weird.
wiz [Mon, 20 Aug 2001 12:20:01 +0000 (12:20 +0000)]
"wierd" is weird.

23 years agoChange -a to mean all files, as opposed to just a few more files.
atatat [Wed, 15 Aug 2001 17:25:42 +0000 (17:25 +0000)]
Change -a to mean all files, as opposed to just a few more files.

Modify the regex handling so that we can match fortunes in rot13'ed
databases (rot13 the pattern and maintain a second compiled pattern)
and rot13 the rot13'ed fortune before output.

Move the rot13 code to a function since it's now used in three places
instead of just one.

Initialize posfile in one place since it appears to get used without
being initialized when using debugging.

Make a *slight* improvement to the random seeding by squaring the pid
and then xor'ing against the current time, since just xor'ing the time
with the pid will not change if they both advance by one from "odd" to
"even".

23 years agoFix pasto. From FreeBSD.
wiz [Thu, 9 Aug 2001 13:09:59 +0000 (13:09 +0000)]
Fix pasto. From FreeBSD.

23 years agoFix for FreeBSD/13278, from FreeBSD:
wiz [Thu, 9 Aug 2001 13:02:49 +0000 (13:02 +0000)]
Fix for FreeBSD/13278, from FreeBSD:
When a game ends that makes the top 10, the function insert_score in
score.c is called to make the new score file.  But the case for KFIRE
(killed by fire) incorrectly uses strcpy instead of strcat (all the
other cases use strcat).  This puts the string in the wrong place and
corrupts the score file.

23 years agoseperate -> separate
wiz [Sun, 22 Jul 2001 13:33:58 +0000 (13:33 +0000)]
seperate -> separate

23 years agoFormatting improvements (from OpenBSD)
wiz [Wed, 11 Jul 2001 16:11:36 +0000 (16:11 +0000)]
Formatting improvements (from OpenBSD)

23 years agoTypo fixes. From OpenBSD.
wiz [Tue, 10 Jul 2001 16:56:39 +0000 (16:56 +0000)]
Typo fixes. From OpenBSD.

23 years agos/Upon you knees if you appear/Upon your knees if you appear/
mason [Sun, 24 Jun 2001 23:25:19 +0000 (23:25 +0000)]
s/Upon you knees if you appear/Upon your knees if you appear/

Confirmed against <http://www.alcyone.com/max/lit/devils/>.

23 years ago`existent', not `existant'
wiz [Tue, 19 Jun 2001 13:42:07 +0000 (13:42 +0000)]
`existent', not `existant'

23 years agoreceive, not recieve
wiz [Tue, 12 Jun 2001 15:17:10 +0000 (15:17 +0000)]
receive, not recieve

23 years agofix building of phantasia ($FILES dependency on $PROG broke things)
lukem [Wed, 6 Jun 2001 17:34:19 +0000 (17:34 +0000)]
fix building of phantasia ($FILES dependency on $PROG broke things)

23 years agofix building of cards.pck
lukem [Wed, 6 Jun 2001 17:31:28 +0000 (17:31 +0000)]
fix building of cards.pck

23 years agoRemove unnecessary quotes in Dt.
wiz [Tue, 5 Jun 2001 12:41:04 +0000 (12:41 +0000)]
Remove unnecessary quotes in Dt.

23 years agoNo argument for .Os.
wiz [Tue, 5 Jun 2001 11:11:07 +0000 (11:11 +0000)]
No argument for .Os.

23 years agoOverhaul error handling and reporting for regular expressions.
christos [Mon, 4 Jun 2001 21:21:42 +0000 (21:21 +0000)]
Overhaul error handling and reporting for regular expressions.
Provide a RE_OK() macro that tests if the current compiled pattern
works and a RE_ERROR() macro that prints what went wrong as well
as the particular RE implementation can handle.

23 years agoBail out when regex pattern is invalid if using regcomp or regcmp.
aymeric [Mon, 4 Jun 2001 20:56:56 +0000 (20:56 +0000)]
Bail out when regex pattern is invalid if using regcomp or regcmp.
Remove trailing \n's also.

Addresses PR#13109

23 years agodon't deref -1.
christos [Sat, 2 Jun 2001 17:30:28 +0000 (17:30 +0000)]
don't deref -1.

23 years agoIts is Dr. Elizabeth Dehner, not Dehaver.
abs [Wed, 2 May 2001 10:42:34 +0000 (10:42 +0000)]
Its is Dr. Elizabeth Dehner, not Dehaver.
From the vast and bewildering trek trivia of norm@sandbox.org.uk

23 years agoSpell occurred correctly.
simonb [Wed, 25 Apr 2001 02:33:08 +0000 (02:33 +0000)]
Spell occurred correctly.

23 years agoNetBSD: You choose the hardware, we'll bring the OS.
pooka [Sat, 21 Apr 2001 23:11:30 +0000 (23:11 +0000)]
NetBSD: You choose the hardware, we'll bring the OS.
from David Brownlee on netbsd-advocacy

While I'm in here, sort the file using tools/do_sort to get the recently
added fortunes into order.

23 years agoSome entries from Richard Rauch, posted on netbsd-advocacy.
hubertf [Sat, 21 Apr 2001 14:49:08 +0000 (14:49 +0000)]
Some entries from Richard Rauch, posted on netbsd-advocacy.

23 years agoNegative exit code cleanup: Replace exit(-x) with exit(x).
wiz [Fri, 6 Apr 2001 11:13:45 +0000 (11:13 +0000)]
Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.

23 years agomdoc'ify.
wiz [Wed, 4 Apr 2001 11:41:01 +0000 (11:41 +0000)]
mdoc'ify.

23 years agoWhitespace and/or punctuation fixes.
wiz [Mon, 2 Apr 2001 22:47:29 +0000 (22:47 +0000)]
Whitespace and/or punctuation fixes.

23 years agomdoc'ify, and clean up in the process.
wiz [Mon, 2 Apr 2001 22:46:18 +0000 (22:46 +0000)]
mdoc'ify, and clean up in the process.

23 years agoWhitespace and/or punctuation fixes.
wiz [Mon, 2 Apr 2001 22:42:37 +0000 (22:42 +0000)]
Whitespace and/or punctuation fixes.

23 years agoConvert to mdoc. Still needs tbl for two tables that have more than 6
wiz [Mon, 2 Apr 2001 22:41:43 +0000 (22:41 +0000)]
Convert to mdoc. Still needs tbl for two tables that have more than 6
columns, but looks much nicer now.

23 years agoBuild the data files in the obj/compile directory and install them with
simonb [Tue, 27 Mar 2001 02:23:28 +0000 (02:23 +0000)]
Build the data files in the obj/compile directory and install them with
FILES and FILESDIR.
"Problem" reported by David Querbach on current-users.

23 years agoMake mostly gcc -W clean, and other cleanup:
jsm [Sun, 25 Mar 2001 20:43:58 +0000 (20:43 +0000)]
Make mostly gcc -W clean, and other cleanup:
Use const.
Add __noreturn__ attributes.
Add a __format__ attribute.
Add __unused__ attributes.
Use symbolic constants for open() and lseek().
Declare types of all function parameters; convert some function
definitions to ISO C form.
Ensure standard file descriptors are open on startup.
Check for errors writing output of makedefs.
Avoid duplicate definitions of variables.

23 years agoFix problem noted in PR 6649 (trailing whitespace on .Nm)
garbled [Wed, 7 Mar 2001 22:30:38 +0000 (22:30 +0000)]
Fix problem noted in PR 6649 (trailing whitespace on .Nm)

23 years agoconvert to use getprogname()
cgd [Mon, 19 Feb 2001 22:39:39 +0000 (22:39 +0000)]
convert to use getprogname()

23 years agokill dupe
pooka [Sat, 10 Feb 2001 18:14:13 +0000 (18:14 +0000)]
kill dupe

23 years agoFix simple typo. From bdc@world.std.com in PR misc/12150.
simonb [Wed, 7 Feb 2001 22:59:19 +0000 (22:59 +0000)]
Fix simple typo.  From bdc@world.std.com in PR misc/12150.

23 years agofix redundant decls and nested externs
christos [Mon, 5 Feb 2001 01:12:46 +0000 (01:12 +0000)]
fix redundant decls and nested externs

23 years agoremove redundant decls.
christos [Mon, 5 Feb 2001 01:10:08 +0000 (01:10 +0000)]
remove redundant decls.

23 years agoremove duplicate decls
christos [Mon, 5 Feb 2001 01:04:25 +0000 (01:04 +0000)]
remove duplicate decls

23 years agofix nested externs
christos [Mon, 5 Feb 2001 01:02:45 +0000 (01:02 +0000)]
fix nested externs

23 years agoremove redundant decls
christos [Mon, 5 Feb 2001 01:01:27 +0000 (01:01 +0000)]
remove redundant decls

23 years ago- rename getchar to lgetchar to avoid conflicts with the stdio getchar
christos [Mon, 5 Feb 2001 00:57:32 +0000 (00:57 +0000)]
- rename getchar to lgetchar to avoid conflicts with the stdio getchar
- fix redundant decls and nested externs
- use snprintf instead of sprintf

23 years agoremove redundant decls
christos [Mon, 5 Feb 2001 00:42:14 +0000 (00:42 +0000)]
remove redundant decls

23 years agoeliminate nested externs
christos [Mon, 5 Feb 2001 00:40:45 +0000 (00:40 +0000)]
eliminate nested externs

23 years agofix redundant decls and nested externs. while I am here change my copyright
christos [Mon, 5 Feb 2001 00:37:43 +0000 (00:37 +0000)]
fix redundant decls and nested externs. while I am here change my copyright
to TNF.

23 years agofix nested externs
christos [Mon, 5 Feb 2001 00:30:38 +0000 (00:30 +0000)]
fix nested externs

23 years agofix nested extern and usage message
christos [Mon, 5 Feb 2001 00:29:44 +0000 (00:29 +0000)]
fix nested extern and usage message

23 years agoremove redundant decl
christos [Mon, 5 Feb 2001 00:28:30 +0000 (00:28 +0000)]
remove redundant decl

23 years agofix nested extern
christos [Mon, 5 Feb 2001 00:27:35 +0000 (00:27 +0000)]
fix nested extern

23 years agoremove redundant decl
christos [Mon, 5 Feb 2001 00:23:59 +0000 (00:23 +0000)]
remove redundant decl

23 years agofix redundant decls and nested externs
christos [Mon, 5 Feb 2001 00:22:52 +0000 (00:22 +0000)]
fix redundant decls and nested externs

23 years agofix nested extern
christos [Mon, 5 Feb 2001 00:20:58 +0000 (00:20 +0000)]
fix nested extern

23 years agoeliminate redundant decls
christos [Mon, 5 Feb 2001 00:20:05 +0000 (00:20 +0000)]
eliminate redundant decls

23 years agoTyop: foresight, not forsight (FreeBSD PR/24637)
mjl [Tue, 30 Jan 2001 00:25:30 +0000 (00:25 +0000)]
Tyop: foresight, not forsight (FreeBSD PR/24637)

23 years agoplay(): use snprintf() instead of hard-to-parse strncpy() calls
jdolecek [Thu, 25 Jan 2001 20:41:41 +0000 (20:41 +0000)]
play(): use snprintf() instead of hard-to-parse strncpy() calls

24 years agoavoid strange typcast.
itojun [Sat, 20 Jan 2001 15:06:34 +0000 (15:06 +0000)]
avoid strange typcast.

24 years agocomment or delete text after CPP directives.
cgd [Tue, 16 Jan 2001 02:50:27 +0000 (02:50 +0000)]
comment or delete text after CPP directives.

24 years agoinclude stdlib.h for prototypes (typically for exit()).
cgd [Tue, 16 Jan 2001 02:44:43 +0000 (02:44 +0000)]
include stdlib.h for prototypes (typically for exit()).

24 years agoavoid C sequence point issues warned about by development version of gcc.
cgd [Tue, 16 Jan 2001 02:41:17 +0000 (02:41 +0000)]
avoid C sequence point issues warned about by development version of gcc.

24 years agoThe capital of Mordor is _not_ Minas Morgul.
jwise [Fri, 12 Jan 2001 04:33:51 +0000 (04:33 +0000)]
The capital of Mordor is _not_ Minas Morgul.