]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
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.

24 years ago- openlog "huntd" instead of "HUNT"
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()

24 years agoconvert to using .WAIT
lukem [Tue, 9 Jan 2001 03:13:39 +0000 (03:13 +0000)]
convert to using .WAIT

24 years agouse more standard %ll_ in favour of %q_
lukem [Thu, 4 Jan 2001 17:24:35 +0000 (17:24 +0000)]
use more standard %ll_ in favour of %q_

24 years agoneed string.h for prototype (checked with alpha)
itojun [Thu, 4 Jan 2001 06:33:18 +0000 (06:33 +0000)]
need string.h for prototype (checked with alpha)

24 years agoNormalize signature of ship handling functions -- struct ship * from and
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.

24 years agoVarious stylistic nits.
jwise [Thu, 4 Jan 2001 05:34:56 +0000 (05:34 +0000)]
Various stylistic nits.

24 years agoUse License templates from localsrc for license on new files.
jwise [Thu, 4 Jan 2001 05:06:15 +0000 (05:06 +0000)]
Use License templates from localsrc for license on new files.

24 years agoBreak out curses display-related globals into a new header file, so that
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.

24 years agoMore rationalization of include files:
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.

24 years agoRationalize inclusion of header files: cut down on `include everything
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.

24 years agoSecond half of static-ization of local funcs.
jwise [Thu, 4 Jan 2001 02:43:32 +0000 (02:43 +0000)]
Second half of static-ization of local funcs.

24 years agoG/C undocumented and unimplemented `-D' (debug) option.
jwise [Thu, 4 Jan 2001 01:56:27 +0000 (01:56 +0000)]
G/C undocumented and unimplemented `-D' (debug) option.

24 years agoFirst half of static-ization of local funcs.
jwise [Thu, 4 Jan 2001 01:53:24 +0000 (01:53 +0000)]
First half of static-ization of local funcs.

24 years agoDe-`register'
jwise [Thu, 4 Jan 2001 01:13:34 +0000 (01:13 +0000)]
De-`register'

24 years agoFix getopt usage (again) in case where user does not choose a scenario on
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.

24 years agoMissed commit -- ANSIfy in preparation for further work.
jwise [Mon, 1 Jan 2001 22:23:29 +0000 (22:23 +0000)]
Missed commit -- ANSIfy in preparation for further work.

24 years agoFix getopt() usage.
jwise [Mon, 1 Jan 2001 22:05:04 +0000 (22:05 +0000)]
Fix getopt() usage.

24 years agoANSIfy in preparation for further work.
jwise [Mon, 1 Jan 2001 21:57:37 +0000 (21:57 +0000)]
ANSIfy in preparation for further work.

24 years ago${PRINTOBJDIR}ify
sommerfeld [Sat, 30 Dec 2000 17:51:26 +0000 (17:51 +0000)]
${PRINTOBJDIR}ify

24 years agoAnother one that really belongs here...
mycroft [Sun, 17 Dec 2000 10:08:08 +0000 (10:08 +0000)]
Another one that really belongs here...

24 years agoCompress the other entries vertically.
mycroft [Sun, 17 Dec 2000 09:35:21 +0000 (09:35 +0000)]
Compress the other entries vertically.

24 years agoReformat one entry for vertical space.
mycroft [Sun, 17 Dec 2000 09:25:38 +0000 (09:25 +0000)]
Reformat one entry for vertical space.

24 years agoYes, it's about damn time fortune(6) got some new material.
mycroft [Sun, 17 Dec 2000 09:17:51 +0000 (09:17 +0000)]
Yes, it's about damn time fortune(6) got some new material.

24 years agoCNN, BSD declare Bush winner.
tsarna [Thu, 14 Dec 2000 02:38:02 +0000 (02:38 +0000)]
CNN, BSD declare Bush winner.

24 years agoFix warning.
jwise [Thu, 30 Nov 2000 22:07:24 +0000 (22:07 +0000)]
Fix warning.

24 years agoUse random() instead of rand(), and seed from time(3) instead of from getpid().
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().

24 years agoChange the macro to roll a six-sided die from die() to dieroll() (for
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).

24 years agoANSIfy in preparation for changes.
jwise [Thu, 30 Nov 2000 21:50:58 +0000 (21:50 +0000)]
ANSIfy in preparation for changes.

24 years agoUse getopt(3) for flag processing.
jwise [Thu, 30 Nov 2000 21:38:57 +0000 (21:38 +0000)]
Use getopt(3) for flag processing.

24 years agoFix style nit.
jwise [Thu, 30 Nov 2000 21:31:33 +0000 (21:31 +0000)]
Fix style nit.

24 years agoANSIfy in preparation for other changes.
jwise [Thu, 30 Nov 2000 21:29:32 +0000 (21:29 +0000)]
ANSIfy in preparation for other changes.

24 years agoJust print basename in usage string.
soren [Tue, 21 Nov 2000 00:18:52 +0000 (00:18 +0000)]
Just print basename in usage string.

24 years agoremove unnecessary command name after .Nm
lukem [Tue, 7 Nov 2000 05:51:54 +0000 (05:51 +0000)]
remove unnecessary command name after .Nm

24 years agouse lowercase with .Nm to match actual command name
lukem [Tue, 7 Nov 2000 05:49:31 +0000 (05:49 +0000)]
use lowercase with .Nm to match actual command name

24 years agofix a bug in the call to srandom(): xor time() with getpid(), don't add them!
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.

24 years agoNetBSD will put hair on a UNIX admin's chest
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

24 years agoRemoved duplicate entry. Fixes FreeBSD PR/21629.
mjl [Fri, 29 Sep 2000 00:40:40 +0000 (00:40 +0000)]
Removed duplicate entry. Fixes FreeBSD PR/21629.