]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
14 years agoSpell "versus" right.
dholland [Mon, 29 Mar 2010 02:48:17 +0000 (02:48 +0000)]
Spell "versus" right.

14 years agoAllow saved game filenames up to PATH_MAX. From OpenBSD.
dholland [Mon, 29 Mar 2010 02:46:05 +0000 (02:46 +0000)]
Allow saved game filenames up to PATH_MAX. From OpenBSD.

14 years agofix quote markup, spotted in openbsd diffs
dholland [Mon, 29 Mar 2010 02:34:50 +0000 (02:34 +0000)]
fix quote markup, spotted in openbsd diffs

14 years agoFix typo. From OpenBSD.
dholland [Mon, 29 Mar 2010 02:32:45 +0000 (02:32 +0000)]
Fix typo. From OpenBSD.

14 years agoDon't exit(0) on failure. Use errx() instead of fprintf.
dholland [Mon, 29 Mar 2010 02:21:04 +0000 (02:21 +0000)]
Don't exit(0) on failure. Use errx() instead of fprintf.

14 years agorename text() to wrtext(), aligning it with most other output routines,
mrg [Mon, 22 Mar 2010 05:10:19 +0000 (05:10 +0000)]
rename text() to wrtext(), aligning it with most other output routines,
and avoiding a compile error on powerpc64.

XXX: this tries to make a ".text" symbol, which already exists...

14 years agoLatin police: use proper conjugation.
dholland [Tue, 16 Feb 2010 09:53:51 +0000 (09:53 +0000)]
Latin police: use proper conjugation.
(whether the rest of the affected fortune is valid either is debatable)

14 years agoWhen using -lcurses, you also need -lterminfo.
he [Sat, 6 Feb 2010 23:45:24 +0000 (23:45 +0000)]
When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.

14 years agoUserland now builds and uses terminfo instead of termcap.
roy [Wed, 3 Feb 2010 15:34:37 +0000 (15:34 +0000)]
Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@

15 years agoClose file when finished with it. Found by cppcheck.
wiz [Sun, 17 Jan 2010 22:56:32 +0000 (22:56 +0000)]
Close file when finished with it. Found by cppcheck.

15 years agoSimplify alloc() to avoid ifdef(LINT) workaround.
wiz [Sun, 17 Jan 2010 22:55:20 +0000 (22:55 +0000)]
Simplify alloc() to avoid ifdef(LINT) workaround.

15 years agoClose two file descriptors after using them. Found by cppcheck.
wiz [Sun, 17 Jan 2010 22:52:00 +0000 (22:52 +0000)]
Close two file descriptors after using them. Found by cppcheck.

15 years agoThe default output file extension is '.dat', not '.out'.
mbalmer [Sun, 17 Jan 2010 13:35:00 +0000 (13:35 +0000)]
The default output file extension is '.dat', not '.out'.
From Lars Nooden via OpenBSD.

15 years agoUse .%U instead of .%O for URLs.
joerg [Fri, 15 Jan 2010 19:39:10 +0000 (19:39 +0000)]
Use .%U instead of .%O for URLs.

15 years agoChristos points out that usage should not use errx, but should use
dholland [Sun, 3 Jan 2010 17:08:45 +0000 (17:08 +0000)]
Christos points out that usage should not use errx, but should use
getprogname.

15 years agoNew sentence, new line.
wiz [Fri, 1 Jan 2010 11:45:34 +0000 (11:45 +0000)]
New sentence, new line.

15 years agoAdjust SYNOPSIS for cfscores to better match reality. Note in BUGS
dholland [Fri, 1 Jan 2010 07:35:09 +0000 (07:35 +0000)]
Adjust SYNOPSIS for cfscores to better match reality. Note in BUGS
that the score file isn't portable. Bump date (first time since 1993,
and first in 2010...)

15 years agoSplit struct betinfo into its own header file so it can be shared
dholland [Fri, 1 Jan 2010 06:37:15 +0000 (06:37 +0000)]
Split struct betinfo into its own header file so it can be shared
between canfield and cfscores, instead of copy-pasted.

15 years agoUse NULL instead of 0 for pointer tests. Remove an unnecessary cast.
dholland [Fri, 1 Jan 2010 06:31:18 +0000 (06:31 +0000)]
Use NULL instead of 0 for pointer tests. Remove an unnecessary cast.

15 years agoSend error messages to stderr. Use errx/warnx, not printf.
dholland [Fri, 1 Jan 2010 06:20:45 +0000 (06:20 +0000)]
Send error messages to stderr. Use errx/warnx, not printf.

15 years agoCorrect usage message.
dholland [Fri, 1 Jan 2010 06:16:36 +0000 (06:16 +0000)]
Correct usage message.

15 years agoFix math notation, from PR 41547. While here, fix some potential tab
dholland [Fri, 1 Jan 2010 00:16:54 +0000 (00:16 +0000)]
Fix math notation, from PR 41547. While here, fix some potential tab
damage in the same fortune.

15 years agoHide the cursor during the game.
ahoka [Sat, 19 Dec 2009 19:27:53 +0000 (19:27 +0000)]
Hide the cursor during the game.

15 years agoFix bad merge. (SUBDIR= != SUBDIR +=)
matt [Mon, 14 Dec 2009 20:47:23 +0000 (20:47 +0000)]
Fix bad merge.  (SUBDIR= != SUBDIR +=)

15 years agoConditionalize some build directories by ${MKCXX}.
uebayasi [Mon, 14 Dec 2009 12:43:48 +0000 (12:43 +0000)]
Conditionalize some build directories by ${MKCXX}.

15 years ago was disappointed that someone wrote disappointed with one 'p', so I fixed it.
wiz [Tue, 8 Dec 2009 10:13:39 +0000 (10:13 +0000)]
 was disappointed that someone wrote disappointed with one 'p', so I fixed it.

15 years agoI was disappointed that someone wrote disappointed with two 's', so I fixed it.
mbalmer [Tue, 8 Dec 2009 10:04:27 +0000 (10:04 +0000)]
I was disappointed that someone wrote disappointed with two 's', so I fixed it.

15 years agouse %option noinput nounput
christos [Thu, 29 Oct 2009 14:27:26 +0000 (14:27 +0000)]
use %option noinput nounput

15 years agoAnother spelling mistake.
dholland [Thu, 29 Oct 2009 08:53:31 +0000 (08:53 +0000)]
Another spelling mistake.

15 years agoWhitespace.
dholland [Thu, 29 Oct 2009 08:47:07 +0000 (08:47 +0000)]
Whitespace.

15 years agoFix a bunch of typos and spelling errors.
snj [Wed, 28 Oct 2009 19:18:15 +0000 (19:18 +0000)]
Fix a bunch of typos and spelling errors.

15 years agoKill two duplicates.
snj [Wed, 28 Oct 2009 15:56:26 +0000 (15:56 +0000)]
Kill two duplicates.

15 years ago"Ghandi" -> "Gandhi"
dholland [Wed, 28 Oct 2009 06:23:29 +0000 (06:23 +0000)]
"Ghandi" -> "Gandhi"

15 years agoRemove 3rd and 4th clauses in christos' license. OK christos.
snj [Wed, 21 Oct 2009 01:07:44 +0000 (01:07 +0000)]
Remove 3rd and 4th clauses in christos' license.  OK christos.

15 years agoFix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177.
dholland [Mon, 19 Oct 2009 02:34:40 +0000 (02:34 +0000)]
Fix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177.

15 years agoDisable writing scores when built for /rescue. PR 42009
dholland [Tue, 8 Sep 2009 13:38:01 +0000 (13:38 +0000)]
Disable writing scores when built for /rescue. PR 42009

15 years agoDumping all system includes anything uses in one big header file is so 1986.
dholland [Mon, 31 Aug 2009 08:27:16 +0000 (08:27 +0000)]
Dumping all system includes anything uses in one big header file is so 1986.

XXX: Removing unused declarations (thus, unused headers can trigger
XXX: it) sometimes causes gcc to generate substantially different
XXX: code. Dunno why but it looks rather like a gcc bug.

15 years agoDon't need -DHAVE_REGCOMP any more
dholland [Thu, 27 Aug 2009 03:12:16 +0000 (03:12 +0000)]
Don't need -DHAVE_REGCOMP any more

15 years agoInstead of trying to cons up a regexp that ignores case, use REG_ICASE.
dholland [Thu, 27 Aug 2009 03:09:17 +0000 (03:09 +0000)]
Instead of trying to cons up a regexp that ignores case, use REG_ICASE.
This makes fortune -im work; it's been broken since whenever.

15 years agoTidy up regexp handling further.
dholland [Thu, 27 Aug 2009 03:04:58 +0000 (03:04 +0000)]
Tidy up regexp handling further.

15 years agoPrune conditional compilation for using obsolete regexp libraries.
dholland [Thu, 27 Aug 2009 02:21:36 +0000 (02:21 +0000)]
Prune conditional compilation for using obsolete regexp libraries.

15 years agoWhitespace.
dholland [Thu, 27 Aug 2009 02:03:22 +0000 (02:03 +0000)]
Whitespace.

15 years agoPrevent nasal demons in a case I spotted while preparing the previous.
dholland [Thu, 27 Aug 2009 01:42:08 +0000 (01:42 +0000)]
Prevent nasal demons in a case I spotted while preparing the previous.

15 years agoANSIfy function definitions.
dholland [Thu, 27 Aug 2009 01:40:27 +0000 (01:40 +0000)]
ANSIfy function definitions.

15 years agoSprinkle some size_t in places where it's better than int.
dholland [Thu, 27 Aug 2009 01:19:38 +0000 (01:19 +0000)]
Sprinkle some size_t in places where it's better than int.
(Reduces casts.)

15 years agoremove more unnecessary casts
dholland [Thu, 27 Aug 2009 00:43:31 +0000 (00:43 +0000)]
remove more unnecessary casts

15 years agoUse correct type for malloc sizes (size_t, not unsigned)
dholland [Thu, 27 Aug 2009 00:42:11 +0000 (00:42 +0000)]
Use correct type for malloc sizes (size_t, not unsigned)

15 years agoremove unnecessary casts
dholland [Thu, 27 Aug 2009 00:40:44 +0000 (00:40 +0000)]
remove unnecessary casts

15 years agou_int32_t -> uint32_t
dholland [Thu, 27 Aug 2009 00:36:32 +0000 (00:36 +0000)]
u_int32_t -> uint32_t

15 years agoANSIfy function definitions
dholland [Thu, 27 Aug 2009 00:31:12 +0000 (00:31 +0000)]
ANSIfy function definitions

15 years agoUse standard C: 'unsigned', not 'u_int'
dholland [Thu, 27 Aug 2009 00:24:11 +0000 (00:24 +0000)]
Use standard C: 'unsigned', not 'u_int'

15 years agoremove unnecessary cast
dholland [Thu, 27 Aug 2009 00:22:28 +0000 (00:22 +0000)]
remove unnecessary cast

15 years agoremove unnecessary casts
dholland [Thu, 27 Aug 2009 00:21:45 +0000 (00:21 +0000)]
remove unnecessary casts

15 years agoremove unnecessary cast
dholland [Thu, 27 Aug 2009 00:19:52 +0000 (00:19 +0000)]
remove unnecessary cast

15 years agoUse __dead.
dholland [Tue, 25 Aug 2009 06:58:04 +0000 (06:58 +0000)]
Use __dead.

15 years agoWhn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,
dholland [Tue, 25 Aug 2009 06:56:52 +0000 (06:56 +0000)]
Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,
however, we have an ample vowel budget, and bit shortages are a thing
of the past (even in a down economy) so spend a bit to improve
readability.

15 years agoANSIfy a leftover function.
dholland [Tue, 25 Aug 2009 06:04:17 +0000 (06:04 +0000)]
ANSIfy a leftover function.
Also note some unportable code with a comment. Can't change it because
it'd break save files, though.

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 08:54:54 +0000 (08:54 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 08:44:45 +0000 (08:44 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 08:21:41 +0000 (08:21 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 08:04:05 +0000 (08:04 +0000)]
sprinkle static

15 years agosprinkle static and prune some dead code
dholland [Wed, 12 Aug 2009 07:42:11 +0000 (07:42 +0000)]
sprinkle static and prune some dead code

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 07:28:40 +0000 (07:28 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 06:19:17 +0000 (06:19 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 06:06:28 +0000 (06:06 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 05:48:04 +0000 (05:48 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 05:35:44 +0000 (05:35 +0000)]
sprinkle static

15 years agosprinkle static and prune some dead code
dholland [Wed, 12 Aug 2009 05:29:40 +0000 (05:29 +0000)]
sprinkle static and prune some dead code

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 05:17:57 +0000 (05:17 +0000)]
sprinkle static

15 years agolooks as if "ospeed" here was meant to be extern.
dholland [Wed, 12 Aug 2009 04:51:11 +0000 (04:51 +0000)]
looks as if "ospeed" here was meant to be extern.

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 04:48:03 +0000 (04:48 +0000)]
sprinkle static

15 years agosprinkle static
dholland [Wed, 12 Aug 2009 04:28:27 +0000 (04:28 +0000)]
sprinkle static

15 years agoDon't use a FILE * after fclose(). PR 41832 from Henning Petersen.
dholland [Thu, 6 Aug 2009 17:55:18 +0000 (17:55 +0000)]
Don't use a FILE * after fclose(). PR 41832 from Henning Petersen.

15 years agodon't use char values for functions that can return -1; chars are not always
christos [Wed, 5 Aug 2009 19:34:09 +0000 (19:34 +0000)]
don't use char values for functions that can return -1; chars are not always
signed.

15 years agoUse getopt instead of hand-rolled options code. Document all the arguments
dholland [Wed, 5 Aug 2009 04:03:47 +0000 (04:03 +0000)]
Use getopt instead of hand-rolled options code. Document all the arguments
and options. Don't allow the previously undocumented method to change the
maximum number of scores kept per user to be used on the system-wide high
score file. Sort options list in the man page. Bump its date.

15 years agodon't ignore errors from read(); found by lint
dholland [Mon, 3 Aug 2009 06:04:12 +0000 (06:04 +0000)]
don't ignore errors from read(); found by lint

15 years agoRemove the need for -Wno-pointer-sign. Object file unchanged.
dholland [Sun, 26 Jul 2009 03:05:52 +0000 (03:05 +0000)]
Remove the need for -Wno-pointer-sign. Object file unchanged.

15 years agoRemove the need for -Wno-pointer-sign. Object diffs checked.
dholland [Sun, 26 Jul 2009 03:02:38 +0000 (03:02 +0000)]
Remove the need for -Wno-pointer-sign. Object diffs checked.

15 years agoUse random() instead of rand(), and seed with time instead of pid.
dholland [Mon, 20 Jul 2009 06:43:18 +0000 (06:43 +0000)]
Use random() instead of rand(), and seed with time instead of pid.

15 years agoAssorted minor cleanups, no functional change:
dholland [Mon, 20 Jul 2009 06:39:06 +0000 (06:39 +0000)]
Assorted minor cleanups, no functional change:
   - u_int* -> uint*
   - don't make private typedefs of system structures
   - use curses TRUE and FALSE only with curses booleans, otherwise
     true and false;
   - includes cleanup
   - group globals in extern.c by functionality

Object file diffs inspected.

15 years agoA bit more whitespace.
dholland [Mon, 20 Jul 2009 06:09:29 +0000 (06:09 +0000)]
A bit more whitespace.

15 years agoWhitespace.
dholland [Mon, 20 Jul 2009 06:00:56 +0000 (06:00 +0000)]
Whitespace.

15 years agoANSIfy. Use __dead. Object diffs checked.
dholland [Mon, 20 Jul 2009 05:44:02 +0000 (05:44 +0000)]
ANSIfy. Use __dead. Object diffs checked.

15 years agoANSIfy. Also, we now have RANDOM_MAX; use it. Object diffs checked...
dholland [Mon, 20 Jul 2009 05:33:35 +0000 (05:33 +0000)]
ANSIfy. Also, we now have RANDOM_MAX; use it. Object diffs checked...

15 years agoRename internal getline() function to get_line() so it does
roy [Mon, 13 Jul 2009 19:05:39 +0000 (19:05 +0000)]
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.

15 years agoRemove config options for 4.2BSD and 4.3BSD, and associated code. Highly
dholland [Sat, 4 Jul 2009 07:51:34 +0000 (07:51 +0000)]
Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.

15 years agoRemove the non-curses screen handling, since it relies on knowing
dholland [Sat, 4 Jul 2009 07:10:22 +0000 (07:10 +0000)]
Remove the non-curses screen handling, since it relies on knowing
about various internals of SVR4 curses, old BSD curses, and/or other
unclean things. (Yes, the non-curses handling still used bits of
curses. Fie.)

15 years agoRemove config for the return type of signal handlers, which is also a
dholland [Sat, 4 Jul 2009 06:38:34 +0000 (06:38 +0000)]
Remove config for the return type of signal handlers, which is also a
long-dead issue.

15 years agoRemove references to config #defines for the thoroughly obsolete
dholland [Sat, 4 Jul 2009 06:31:31 +0000 (06:31 +0000)]
Remove references to config #defines for the thoroughly obsolete
4.2BSD syslog API.

15 years agomore whitespace
dholland [Sat, 4 Jul 2009 06:19:05 +0000 (06:19 +0000)]
more whitespace

15 years agoVarious minor fixes, mostly from OpenBSD.
dholland [Sat, 4 Jul 2009 06:15:27 +0000 (06:15 +0000)]
Various minor fixes, mostly from OpenBSD.

15 years agoNotes on the protocol used by hunt, from OpenBSD.
dholland [Sat, 4 Jul 2009 05:06:06 +0000 (05:06 +0000)]
Notes on the protocol used by hunt, from OpenBSD.

15 years agoWhitespace.
dholland [Sat, 4 Jul 2009 05:01:16 +0000 (05:01 +0000)]
Whitespace.

15 years agoWhitespace.
dholland [Sat, 4 Jul 2009 04:29:54 +0000 (04:29 +0000)]
Whitespace.

15 years agoSigh, more of the same (missed two)
dholland [Sat, 4 Jul 2009 03:29:20 +0000 (03:29 +0000)]
Sigh, more of the same (missed two)

15 years ago__attribute__((__noreturn__)) -> __dead
dholland [Sat, 4 Jul 2009 03:27:57 +0000 (03:27 +0000)]
__attribute__((__noreturn__)) -> __dead

15 years agoANSIfy function declarations.
dholland [Sat, 4 Jul 2009 01:58:57 +0000 (01:58 +0000)]
ANSIfy function declarations.

15 years agoRemove two more bogus casts. These *do* create object diffs on amd64,
dholland [Sat, 4 Jul 2009 01:44:28 +0000 (01:44 +0000)]
Remove two more bogus casts. These *do* create object diffs on amd64,
for no clear reason, but it looks like the diffs are harmless.

15 years agoRemove bogus casts. Two object file diffs inspected and found to be harmless.
dholland [Sat, 4 Jul 2009 01:23:55 +0000 (01:23 +0000)]
Remove bogus casts. Two object file diffs inspected and found to be harmless.

15 years agoRemove a pile of bogus casts. One object file diff, crosschecked and
dholland [Sat, 4 Jul 2009 01:01:18 +0000 (01:01 +0000)]
Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.