]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
19 years agoRaised WARNS to 4.
rillig [Mon, 23 May 2005 23:08:06 +0000 (23:08 +0000)]
Raised WARNS to 4.

19 years ago* fixed <ctype> bugs
rillig [Mon, 23 May 2005 23:02:30 +0000 (23:02 +0000)]
* fixed <ctype> bugs
* removed ASCII dependency
* added input data validation
* added bounds checking
* added error checking
* handle short reads (from pipes or sockets) correctly
  when trying to decode an encoded stream
* added lint(1) directives

19 years agoOtto Von Bismarck -> Otto von Bismarck.
kleink [Tue, 10 May 2005 18:41:53 +0000 (18:41 +0000)]
Otto Von Bismarck -> Otto von Bismarck.

19 years agoIt is Bismarck not Bismark.
bad [Tue, 10 May 2005 17:47:33 +0000 (17:47 +0000)]
It is Bismarck not Bismark.

19 years agoSort list, and add Nunavut, which has been a Canadian province since 1999.
jwise [Mon, 2 May 2005 15:48:58 +0000 (15:48 +0000)]
Sort list, and add Nunavut, which has been a Canadian province since 1999.

19 years agoCyprus is part of Europe, not Asia. Turkey is currently listed in both
jwise [Mon, 2 May 2005 15:39:27 +0000 (15:39 +0000)]
Cyprus is part of Europe, not Asia.  Turkey is currently listed in both
Europe and Asia, I'm leaving it that way.

19 years agoThe current President of the United States is George Walker Bush, not George
jwise [Mon, 2 May 2005 15:29:59 +0000 (15:29 +0000)]
The current President of the United States is George Walker Bush, not George
Walker Bush, Jr. (his father was George Herbert Walker Bush).

19 years agoFixed wrong use of the <ctype.h> functions by adding an explicit conversion
rillig [Tue, 19 Apr 2005 20:14:29 +0000 (20:14 +0000)]
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.

19 years agoFixed wrong use of datatypes. In wait_for(), a char was used together
rillig [Tue, 19 Apr 2005 20:12:07 +0000 (20:12 +0000)]
Fixed wrong use of datatypes. In wait_for(), a char was used together
with getchar(), in readchar(), a char was used to read input, which in
getuchar() is used as an argument to islower() and toupper(). Also removed
a condition which terminated the process if the user typed in character
255. Approved by christos.

19 years agoDon't assume /usr/games; use the same path as what rot13 was found at
atatat [Sat, 9 Apr 2005 02:02:15 +0000 (02:02 +0000)]
Don't assume /usr/games; use the same path as what rot13 was found at
to run caesar.

19 years agoA few minor spelling, grammar, and formatting fixes.
atatat [Sat, 9 Apr 2005 02:00:27 +0000 (02:00 +0000)]
A few minor spelling, grammar, and formatting fixes.

19 years agoFix a long-standing bug in wump(6) whereby hitting ^d to exit would first
jwise [Mon, 21 Mar 2005 18:45:18 +0000 (18:45 +0000)]
Fix a long-standing bug in wump(6) whereby hitting ^d to exit would first
print ``Care to play another game? (y-n)'' (but then exit anyway without
waiting for an answer).

19 years agoAdd -lcrypt where -lcrypto is specified.
christos [Wed, 9 Mar 2005 03:11:21 +0000 (03:11 +0000)]
Add -lcrypt where -lcrypto is specified.

19 years agoRemove a incorrect semicolon at the end of an if().
simonb [Fri, 25 Feb 2005 15:04:43 +0000 (15:04 +0000)]
Remove a incorrect semicolon at the end of an if().
Magic levels now appear after extensive play testing!

19 years agoDon't presume phantasia's internal bool (char) is the same as that in
jsm [Tue, 15 Feb 2005 12:58:21 +0000 (12:58 +0000)]
Don't presume phantasia's internal bool (char) is the same as that in
curses.h: define phbool and use it where necessary to avoid declaring
functions with one bool and defining them with the other.

Reviewed by <hubertf>.

19 years agoCast last argument of execl to (char *).
jsm [Tue, 15 Feb 2005 12:56:20 +0000 (12:56 +0000)]
Cast last argument of execl to (char *).

Reviewed by <hubertf>.

19 years agoAvoid arrays of incomplete types (required to build with GCC 4).
jsm [Tue, 15 Feb 2005 12:54:50 +0000 (12:54 +0000)]
Avoid arrays of incomplete types (required to build with GCC 4).

Reviewed by <hubertf>.

19 years agoA preprocessor macro named "srand" was defined which seeded the random
perry [Thu, 3 Feb 2005 02:23:02 +0000 (02:23 +0000)]
A preprocessor macro named "srand" was defined which seeded the random
number generator.

Unfortunately, it conflicted with a function of the same defined in
stdlib.h. This was masked by the __P hack, which is now being purged.

I've renamed "srand" to "seedrand" to eliminate the conflict.

19 years agoCorrect typos in German fortune. Reported by Charles Senger, csenger at UCSD.
jsm [Sun, 30 Jan 2005 13:49:28 +0000 (13:49 +0000)]
Correct typos in German fortune.  Reported by Charles Senger, csenger at UCSD.
Reviewed by <hubertf>.

20 years agoConvert from libc/threadlib-style mutex protection to pthread style.
nathanw [Tue, 14 Dec 2004 00:21:01 +0000 (00:21 +0000)]
Convert from libc/threadlib-style mutex protection to pthread style.

(XXX this game totally does not need a thread-safe malloc)

20 years agoRedo how void gets init'd.
jmc [Thu, 9 Dec 2004 05:15:59 +0000 (05:15 +0000)]
Redo how void gets init'd.
setup now just creates an empty file. When main starts and loads it in,
it stats and if zero size init's a new location and saves it back out.
Now games.tgz can be shared among MACHINE_ARCH's

20 years agoSlimy worms are clean enough for level 3.
christos [Sat, 13 Nov 2004 10:22:13 +0000 (10:22 +0000)]
Slimy worms are clean enough for level 3.

20 years agoAdd (unsigned char) cast to ctype functions
dsl [Fri, 5 Nov 2004 21:30:31 +0000 (21:30 +0000)]
Add (unsigned char) cast to ctype functions

20 years agoDon't try to catch SIGSTOP...
christos [Sun, 12 Sep 2004 04:51:32 +0000 (04:51 +0000)]
Don't try to catch SIGSTOP...

20 years agoIndent header description (from jmc@openbsd).
wiz [Thu, 9 Sep 2004 22:03:21 +0000 (22:03 +0000)]
Indent header description (from jmc@openbsd).
Sort sections and remove a trailing space.

20 years agoSome improvements from jmc@openbsd:
wiz [Thu, 9 Sep 2004 22:01:08 +0000 (22:01 +0000)]
Some improvements from jmc@openbsd:
sort option descriptions, add argument to -m, mention strfile
and add some xrefs.

20 years agoReplaced strncpy with strlcpy. Thanks to Peter Postma who
jrf [Tue, 7 Sep 2004 13:20:39 +0000 (13:20 +0000)]
Replaced strncpy with strlcpy.  Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.

20 years ago- sleep a little in autobot mode so that we can see what is happening.
christos [Fri, 27 Aug 2004 09:07:08 +0000 (09:07 +0000)]
- sleep a little in autobot mode so that we can see what is happening.
- use refresh() instead of wrefresh()

20 years agodescribe the algorithm better.
christos [Fri, 27 Aug 2004 09:06:25 +0000 (09:06 +0000)]
describe the algorithm better.

20 years agoFix typo
mjl [Fri, 20 Aug 2004 11:23:47 +0000 (11:23 +0000)]
Fix typo

20 years agoGrammar fix, from ray at raylai org via jmc@openbsd.
wiz [Tue, 1 Jun 2004 10:10:06 +0000 (10:10 +0000)]
Grammar fix, from ray at raylai org via jmc@openbsd.

20 years agoHad fun with a spell checker.
mjl [Sat, 22 May 2004 14:33:50 +0000 (14:33 +0000)]
Had fun with a spell checker.
Also, try to canonize attributions.

20 years ago- don't catch STOP, TSTP, QUIT; the first you cannot catch and the other two
christos [Sun, 2 May 2004 21:31:23 +0000 (21:31 +0000)]
- don't catch STOP, TSTP, QUIT; the first you cannot catch and the other two
  you should not.
- don't accept delay == 1000, because it turns to 0 and fix the number parsing
- misc KNF cleanups.

20 years agos/the the/the/ (only in sources that aren't regularly imported from
simonb [Fri, 23 Apr 2004 02:58:27 +0000 (02:58 +0000)]
s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).

20 years agoUndef bool before including <curses.h>, since it tries to typedef
he [Sun, 11 Apr 2004 13:35:06 +0000 (13:35 +0000)]
Undef bool before including <curses.h>, since it tries to typedef
bool.  Otherwise we get (at least on gcc 2.95.3) an empty declaration
warning from "typedef char char;" due to the #define of bool in
phantstruct.h.

20 years agoRework to use curses.h only on the target, not on the host.
ross [Wed, 7 Apr 2004 17:46:47 +0000 (17:46 +0000)]
Rework to use curses.h only on the target, not on the host.

20 years agoIf the current player has no cards, skip to the other player.
jdc [Tue, 6 Apr 2004 19:15:07 +0000 (19:15 +0000)]
If the current player has no cards, skip to the other player.
While we're here, make this compile with -DDEBUG.
Fixes PR bin/12530 from Thomas Klausner.

20 years agoProperly handle -d 1000, OK'd by jsm
hubertf [Mon, 29 Mar 2004 20:30:03 +0000 (20:30 +0000)]
Properly handle -d 1000, OK'd by jsm

20 years agoIt's "its".
snj [Mon, 29 Mar 2004 07:59:39 +0000 (07:59 +0000)]
It's "its".

20 years agoSpell "political" correctly and capitalize a last name.
snj [Mon, 29 Mar 2004 02:00:41 +0000 (02:00 +0000)]
Spell "political" correctly and capitalize a last name.

20 years agos/feal/feel/
snj [Sun, 28 Mar 2004 22:43:03 +0000 (22:43 +0000)]
s/feal/feel/

20 years agos/venomenous/venomous/
snj [Sun, 28 Mar 2004 22:42:39 +0000 (22:42 +0000)]
s/venomenous/venomous/

20 years agobecuase -> because. From Peter Postma.
wiz [Tue, 24 Feb 2004 15:05:53 +0000 (15:05 +0000)]
becuase -> because. From Peter Postma.

20 years agoEncode and decode more characters. Don't put commas after every
jsm [Fri, 13 Feb 2004 23:16:11 +0000 (23:16 +0000)]
Encode and decode more characters.  Don't put commas after every
character.  Don't encode whitespace as "...".  Don't fail decoding
across a 1024-byte boundary.  Mark end of message appropriately.  From
OpenBSD but with punctuation taken from ITU-T Recommendation F.1
(03/98).

20 years agoUppercase CPU, plural is CPUs.
wiz [Fri, 13 Feb 2004 11:36:08 +0000 (11:36 +0000)]
Uppercase CPU, plural is CPUs.

20 years ago|fmt; add single quotes around a plus.
wiz [Mon, 9 Feb 2004 23:25:47 +0000 (23:25 +0000)]
|fmt; add single quotes around a plus.

20 years agoMark unused parameters, nonreturning functions and format functions in
jsm [Sun, 8 Feb 2004 22:23:50 +0000 (22:23 +0000)]
Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.

20 years agoHide the cursor if possible. From OpenBSD.
jsm [Sun, 8 Feb 2004 22:21:57 +0000 (22:21 +0000)]
Hide the cursor if possible.  From OpenBSD.

20 years agoFix race in parallel make when creating multiple targets in one operation.
lukem [Sun, 8 Feb 2004 22:14:27 +0000 (22:14 +0000)]
Fix race in parallel make when creating multiple targets in one operation.

20 years agoSeparate primes manpage from that of factor. Correct DIAGNOSTICS
jsm [Sun, 8 Feb 2004 13:16:25 +0000 (13:16 +0000)]
Separate primes manpage from that of factor.  Correct DIAGNOSTICS
information.

20 years agoCheck large factor for being prime before applying Pollard's
jsm [Sun, 8 Feb 2004 11:47:36 +0000 (11:47 +0000)]
Check large factor for being prime before applying Pollard's
algorithm; fixes "factor 2147483647111311".  Correct comment;
algorithm is Pollard p-1, not Pollard rho.  Increase base if p-1
algorithm reaches 1; fixes "factor 99999999999991".  Testcases from
David A Bagley <bagleyd@tux.org>.

20 years agoControl -d by #ifdef DEBUG; adjust usage message accordingly. Bug
jsm [Sun, 8 Feb 2004 00:33:31 +0000 (00:33 +0000)]
Control -d by #ifdef DEBUG; adjust usage message accordingly.  Bug
reported by Malcolm Parsons <malcolm@ivywell.screaming.net> in Debian
bug 84852.

20 years agoUse standard C abs function rather than local macro.
jsm [Sun, 8 Feb 2004 00:32:48 +0000 (00:32 +0000)]
Use standard C abs function rather than local macro.

20 years agoMark variables changed between setjmp and longjmp as volatile rather
jsm [Sun, 8 Feb 2004 00:32:07 +0000 (00:32 +0000)]
Mark variables changed between setjmp and longjmp as volatile rather
than just taking their addresses.

20 years agoFix grammar (bug reported by Thomas Bushnell BSG <tb@MIT.EDU> in
jsm [Sun, 8 Feb 2004 00:31:16 +0000 (00:31 +0000)]
Fix grammar (bug reported by Thomas Bushnell BSG <tb@MIT.EDU> in
Debian bug 61846).

20 years agoRemove uses of __P.
jsm [Tue, 27 Jan 2004 20:30:28 +0000 (20:30 +0000)]
Remove uses of __P.

20 years agoInclude <sys/stat.h>.
jsm [Tue, 27 Jan 2004 20:27:59 +0000 (20:27 +0000)]
Include <sys/stat.h>.

20 years agoInclude <sys/types.h>.
jsm [Tue, 27 Jan 2004 20:27:29 +0000 (20:27 +0000)]
Include <sys/types.h>.

20 years agoInclude <sys/endian.h>.
jsm [Tue, 27 Jan 2004 20:26:55 +0000 (20:26 +0000)]
Include <sys/endian.h>.

20 years agoInclude <limits.h> instead of <machine/limits.h>.
jsm [Tue, 27 Jan 2004 20:26:20 +0000 (20:26 +0000)]
Include <limits.h> instead of <machine/limits.h>.

20 years agoInclude <sys/endian.h>.
jsm [Tue, 27 Jan 2004 20:25:48 +0000 (20:25 +0000)]
Include <sys/endian.h>.

20 years agoInclude <sys/endian.h> instead of <machine/endian.h>. Include
jsm [Tue, 27 Jan 2004 20:25:07 +0000 (20:25 +0000)]
Include <sys/endian.h> instead of <machine/endian.h>.  Include
<stdlib.h>.

20 years agoInclude <sys/endian.h>.
jsm [Tue, 27 Jan 2004 20:24:32 +0000 (20:24 +0000)]
Include <sys/endian.h>.

20 years agoUse int for wait status.
jsm [Tue, 27 Jan 2004 20:23:36 +0000 (20:23 +0000)]
Use int for wait status.

20 years agoRename yn to yncoms to avoid conflict with GCC 3.4 built-in XSI
jsm [Mon, 26 Jan 2004 09:59:36 +0000 (09:59 +0000)]
Rename yn to yncoms to avoid conflict with GCC 3.4 built-in XSI
function.

20 years agoRename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99
jsm [Mon, 26 Jan 2004 09:58:35 +0000 (09:58 +0000)]
Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99
function.

21 years agoUse PROG_CXX so we don't need to include -lstdc++ explicitly. From Nick Hudson.
christos [Mon, 5 Jan 2004 15:35:59 +0000 (15:35 +0000)]
Use PROG_CXX so we don't need to include -lstdc++ explicitly. From Nick Hudson.

21 years agoMove AUTHORS section directly before BUGS section.
wiz [Sat, 3 Jan 2004 13:32:23 +0000 (13:32 +0000)]
Move AUTHORS section directly before BUGS section.
Suggested by jmc@openbsd.

21 years agoTypo fixes.
mjl [Thu, 1 Jan 2004 20:00:38 +0000 (20:00 +0000)]
Typo fixes.

21 years agoBump date for previous. Remove superfluous .Pp.
wiz [Thu, 1 Jan 2004 16:31:37 +0000 (16:31 +0000)]
Bump date for previous. Remove superfluous .Pp.

21 years agoScore is in upper right corner, not upper left corner. Patch from
jsm [Thu, 1 Jan 2004 16:06:57 +0000 (16:06 +0000)]
Score is in upper right corner, not upper left corner.  Patch from
Robert Hunter <roh@cryptocracy.hn.org> in Debian bug 209034.

21 years agoFix typo. Patch from Joey Hess <joeyh@debian.org>.
jsm [Thu, 1 Jan 2004 16:06:21 +0000 (16:06 +0000)]
Fix typo.  Patch from Joey Hess <joeyh@debian.org>.

21 years agoDon't use -fwritable-strings. Add one more const.
jsm [Thu, 1 Jan 2004 16:05:12 +0000 (16:05 +0000)]
Don't use -fwritable-strings.  Add one more const.

21 years agoWhen cleaning up, only close files that have been opened successfully.
jsm [Thu, 1 Jan 2004 16:03:46 +0000 (16:03 +0000)]
When cleaning up, only close files that have been opened successfully.
When reporting errors for failing to open files, give error text
rather than errno number.  Patch from Joey Hess <joey@kitenet.net> for
Debian bug 187251 from Mikael Hedin <micce@debian.org>.

21 years agoRefer to 'O' rather than 'o' as command to set options. Bug reported
jsm [Thu, 1 Jan 2004 16:02:51 +0000 (16:02 +0000)]
Refer to 'O' rather than 'o' as command to set options.  Bug reported
by Christian Garbs <debian@cgarbs.de> in Debian bug 191452.

21 years agoReturn proper fortune length from fortlen for fortune files without
jsm [Thu, 1 Jan 2004 16:02:07 +0000 (16:02 +0000)]
Return proper fortune length from fortlen for fortune files without
STR_RANDOM or STR_ORDERED rather than comparing it to SLEN.  Bug
reported by Simon Williams <simon@no-dns-yet.org.uk>.

21 years agoShow residual probability rather than non-residual in "No place to put
jsm [Thu, 1 Jan 2004 16:01:25 +0000 (16:01 +0000)]
Show residual probability rather than non-residual in "No place to put
residual probability" error message.  Distribute residual probability
correctly rather than all to one file.  Patch from Mike Castle
<dalgoda@ix.netcom.com>.

21 years agoMake dot and winnerdot of type double. Patch from Jan Vornberger
jsm [Thu, 1 Jan 2004 16:00:34 +0000 (16:00 +0000)]
Make dot and winnerdot of type double.  Patch from Jan Vornberger
<jan@uos.de> in Debian bug 197816.

21 years agoOnly score as a Gammon or a Backgammon if the opponent hasn't removed
jsm [Thu, 1 Jan 2004 15:59:58 +0000 (15:59 +0000)]
Only score as a Gammon or a Backgammon if the opponent hasn't removed
any pieces, not if the opponent has removed pieces but has had a piece
knocked back to the bar afterwards.  Fixes Debian bug 185101 from
Konstantin Seiler <list@kseiler.de>.

21 years agoMake tutorial text match actual moves. From FreeBSD via OpenBSD.
jsm [Thu, 1 Jan 2004 15:59:09 +0000 (15:59 +0000)]
Make tutorial text match actual moves.  From FreeBSD via OpenBSD.
Fixes Debian bug 212478 from Jim W. Jaszewski <grok@sprint.ca>.

21 years agoFix capitalisation of compass directions.
jsm [Thu, 1 Jan 2004 15:58:03 +0000 (15:58 +0000)]
Fix capitalisation of compass directions.

21 years agoDocument that pressing return allows you to "fast forward" the game
jsm [Thu, 1 Jan 2004 15:57:12 +0000 (15:57 +0000)]
Document that pressing return allows you to "fast forward" the game
clock.  Patch from Peter Maydell <pmaydell@chiark.greenend.org.uk> in
Debian bug 216980.

21 years agoConst the player type variable.
thorpej [Sun, 28 Dec 2003 17:53:48 +0000 (17:53 +0000)]
Const the player type variable.

21 years agoFix RCS IDs.
thorpej [Sun, 28 Dec 2003 17:49:10 +0000 (17:49 +0000)]
Fix RCS IDs.

21 years agoFormat size_t values using %zd instead of %d, for archs where size_t != int.
martin [Sat, 27 Dec 2003 18:24:51 +0000 (18:24 +0000)]
Format size_t values using %zd instead of %d, for archs where size_t != int.

21 years agoRename .C files to .cc
christos [Sat, 27 Dec 2003 01:16:55 +0000 (01:16 +0000)]
Rename .C files to .cc

21 years agoNetBSD rcsid.
christos [Fri, 26 Dec 2003 18:03:34 +0000 (18:03 +0000)]
NetBSD rcsid.

21 years agoAdd dots+boxes
christos [Fri, 26 Dec 2003 17:59:13 +0000 (17:59 +0000)]
Add dots+boxes

21 years agoimport dots+boxes games.
christos [Fri, 26 Dec 2003 17:57:02 +0000 (17:57 +0000)]
import dots+boxes games.

21 years agoVarious typo fixes from Jonathon Gray via jmc@openbsd.
wiz [Mon, 17 Nov 2003 11:16:10 +0000 (11:16 +0000)]
Various typo fixes from Jonathon Gray via jmc@openbsd.

21 years agoImprove how various "simple" host tools are built and invoked.
lukem [Sun, 16 Nov 2003 14:14:18 +0000 (14:14 +0000)]
Improve how various "simple" host tools are built and invoked.

21 years agoHobbes was misspelled. PR#23301
jmc [Wed, 29 Oct 2003 04:53:39 +0000 (04:53 +0000)]
Hobbes was misspelled. PR#23301

21 years agoRework how MAKEVERBOSE operates:
lukem [Tue, 21 Oct 2003 10:01:19 +0000 (10:01 +0000)]
Rework how MAKEVERBOSE operates:

    * Don't bother prefixing commands with a line of  ${_MKCMD}\
and instead rely upon "make -s".  This is less intrusive on
all the Makefiles than the former.  Idea from David Laight.

    * Rename the variables use to print messages.  The scheme now is:
    _MKMSG_FOO Run  _MKMSG 'foo'
    _MKTARGET_FOO Run  _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.

21 years agoDon't redefine NULL
agc [Tue, 21 Oct 2003 07:26:39 +0000 (07:26 +0000)]
Don't redefine NULL

21 years agorework to use the newer _MKMSGCREATE (et al) macros
lukem [Sun, 19 Oct 2003 04:45:01 +0000 (04:45 +0000)]
rework to use the newer _MKMSGCREATE (et al) macros

21 years agoSupport MAKEVERBOSE. (Some host tools still generate verbose runtime messages)
lukem [Sun, 19 Oct 2003 01:01:44 +0000 (01:01 +0000)]
Support MAKEVERBOSE.  (Some host tools still generate verbose runtime messages)

21 years agorework to use BUILDSYMLINKS and the <bsd.sys.mk> rule for .c.lo
lukem [Sat, 18 Oct 2003 07:40:27 +0000 (07:40 +0000)]
rework to use BUILDSYMLINKS and the <bsd.sys.mk> rule for .c.lo

21 years agoremove unnecessary /
lukem [Tue, 30 Sep 2003 09:23:19 +0000 (09:23 +0000)]
remove unnecessary /

21 years agosort recently added entries
jdolecek [Sat, 20 Sep 2003 18:57:28 +0000 (18:57 +0000)]
sort recently added entries
pointed out by Valeriy E. Ushakov on source-changes

21 years agoadd mine:
jdolecek [Sat, 20 Sep 2003 09:21:25 +0000 (09:21 +0000)]
add mine:
``NetBSD - no propaganda in the default system, in more than 10 years!''