| History log of /src/games/adventure |
| Revision | Date | Author | Comments |
| 1.14 | 16-Feb-2013 |
jmcneill | Workaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make UAC happy when building with Cygwin. As described here -- http://msdn.microsoft.com/en-us/library/windows/desktop/bb756960.aspx -- 32-bit executables whose filenames include the strings 'install', 'setup', 'update', 'patch', etc. by default will request admin privileges unless an application manifest is provided.
|
| 1.13 | 16-Nov-2003 |
lukem | branches: 1.13.54; 1.13.60; Improve how various "simple" host tools are built and invoked.
|
| 1.12 | 21-Oct-2003 |
lukem | 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.
|
| 1.11 | 19-Oct-2003 |
lukem | rework to use the newer _MKMSGCREATE (et al) macros
|
| 1.10 | 19-Oct-2003 |
lukem | Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)
|
| 1.9 | 05-Mar-2002 |
thorpej | No need to reference .OBJDIR here.
|
| 1.8 | 24-Apr-2000 |
pk | HOST_CC -> HOST_LINK.c
|
| 1.7 | 01-Aug-1998 |
hubertf | Find setup-program even w/ obj dirs.
|
| 1.6 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.5 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.4 | 19-Apr-1997 |
thorpej | Allow this to be cross-compiled.
|
| 1.3 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.2 | 22-Dec-1994 |
cgd | specify man pages the new way.
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.13.60.1 | 25-Feb-2013 |
tls | resync with head
|
| 1.13.54.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.4 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.3 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.13 | 08-Jan-2012 |
dholland | Oops, I forgot to actually implement the checksumming code for the new savefile format, so any savefiles generated yesterday can be tampered with. Oh well. While here, tidy up the crc code.
|
| 1.12 | 07-Jan-2012 |
dholland | Make this not crash on machines that are (a) 64 bit, or (b) have signed chars by default (i.e., almost all machines). Makes it possible to save the game. This has been broken since 4.4 and probably ever since the FORTRAN -> C translation.
Crash reported by Petri Laakso in private mail.
|
| 1.11 | 25-Aug-2009 |
dholland | branches: 1.11.6; ANSIfy a leftover function. Also note some unportable code with a comment. Can't change it because it'd break save files, though.
|
| 1.10 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.9 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.8 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.7 | 10-Feb-1999 |
hubertf | The patch below does some minor cleanup of adventure(6): an additional use of const I missed in bin/6041; avoiding a signed/unsigned warning; marking an unused parameter as such; revoking setgid privileges (including the saved gid) rather than setuid ones; includes and function prototypes in setup.c; the string passed to err() should not end with a `.'. Together with the patch sent concerning adventure's EOF handling, this synchronises adventure(6) in NetBSD with the Linux port of the NetBSD games.
Via PR 6557 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.6 | 13-Sep-1998 |
hubertf | constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.5 | 11-Oct-1997 |
lukem | KNFify
|
| 1.4 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.3 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.11.6.1 | 17-Apr-2012 |
yamt | sync with head
|
| 1.10 | 25-Aug-2009 |
dholland | 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.
|
| 1.9 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.8 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.7 | 03-Jul-2000 |
matt | More include additions for exit, abs, strcmp, etc.
|
| 1.6 | 13-Sep-1998 |
hubertf | remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.5 | 11-Oct-1997 |
lukem | KNFify
|
| 1.4 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.3 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.16 | 08-Jan-2012 |
dholland | grumble.
|
| 1.15 | 08-Jan-2012 |
dholland | Oops, I forgot to actually implement the checksumming code for the new savefile format, so any savefiles generated yesterday can be tampered with. Oh well. While here, tidy up the crc code.
|
| 1.14 | 21-Oct-2009 |
snj | branches: 1.14.6; Remove 3rd and 4th clauses in christos' license. OK christos.
|
| 1.13 | 25-Aug-2009 |
dholland | Use __dead.
|
| 1.12 | 25-Aug-2009 |
dholland | 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.
|
| 1.11 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.10 | 27-Jan-2004 |
jsm | Remove uses of __P.
|
| 1.9 | 13-Sep-1998 |
hubertf | remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.8 | 13-Sep-1998 |
hubertf | constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.7 | 11-Sep-1998 |
hubertf | remove main() prototype, as per PR 6867
|
| 1.6 | 29-Aug-1998 |
hubertf | Remove unused function and unnecessary prototypes, as per PR 6050 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.5 | 24-Aug-1998 |
hubertf | Replace some homegrown string-functions with standard-<string.h>-macros. Reported by Joseph Myers <jsm28@cam.ac.uk> in PR 6028.
|
| 1.4 | 24-Aug-1998 |
hubertf | Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.3 | 11-Oct-1997 |
lukem | KNFify again
|
| 1.2 | 11-Oct-1997 |
lukem | KNFify
|
| 1.1 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.14.6.1 | 17-Apr-2012 |
yamt | sync with head
|
| 1.2 | 01-Jan-2004 |
jsm | Fix capitalisation of compass directions.
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.13 | 25-Aug-2009 |
dholland | 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.
|
| 1.12 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.11 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.10 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.9 | 05-Feb-2001 |
christos | eliminate redundant decls
|
| 1.8 | 28-Jul-1999 |
hubertf | This patch fixes adventure(6) to use `extern' on declarations of objects in its header file, and to add corresponding definitions to init.c accordingly. (See the C standard - relying on linker commons where there are multiple uninitialised declarations of an object in the program traditionally works on Unix, but is not standard C.)
The patch also removes a bit-rotten code fragment under #ifdef OLDSTUFF.
Patch submitted in PR 8105 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.7 | 16-Jul-1999 |
hubertf | This patch cleans up the handling of the variable `saved' in adventure(6). The handling of this variable is somewhat confusing, since it is used for two different purposes (controlling the time required before a saved game can be restored, and controlling various aspects of dwarf behaviour); in fact, it is also declared twice in hdr.h. Except possibly when saving a game fails, these uses can never interfere; when used for controlling dwarf behaviour, we always have saved == -1. This can be better understood with reference to the original PDP-10 FORTRAN source (URL in patch, since hdr.h references the comments of the FORTRAN as still relevant to this version) of which the C version is a direct translation: the wrong value for `saved' meant that someone was cheating and had bypassed normal initialisation. Saving was done by halting and telling the user to save their core image, so the question of carrying on after saving failed to open the output file did not arise.
This patch separates the uses of `saved' into uses of two separate variables.
Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.6 | 10-Feb-1999 |
hubertf | The game adventure(6) handles EOF on standard input rather ungracefully. The patch, derived from OpenBSD, improves this handling.
Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.5 | 29-Aug-1998 |
hubertf | Improved signal handling as per PR 6051 by Joseph Myers <jsm@octomino.demon.co.uk>
|
| 1.4 | 11-Oct-1997 |
lukem | KNFify
|
| 1.3 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.22 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.21 | 22-Mar-2014 |
dholland | tag decl() __noinline, as inlining it would defeat its purpose (which is to not have interesting string literals appear in the compiled binary)
|
| 1.20 | 31-Aug-2011 |
plunky | branches: 1.20.2; 1.20.8; NULL does not need a cast
|
| 1.19 | 25-Aug-2009 |
dholland | 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.
|
| 1.18 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.17 | 15-Dec-2007 |
perry | convert __attribute__s to applicable cdefs.h macros
|
| 1.16 | 18-Mar-2006 |
rtr | branches: 1.16.10; don't access out of bounds element of static alloc array. found by Coverity, CID 1519 / Run 5
XXX possible that intention was to start with i = 0.
|
| 1.15 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.14 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.13 | 05-Feb-2001 |
christos | eliminate redundant decls
|
| 1.12 | 28-Jul-1999 |
hubertf | This patch fixes adventure(6) to use `extern' on declarations of objects in its header file, and to add corresponding definitions to init.c accordingly. (See the C standard - relying on linker commons where there are multiple uninitialised declarations of an object in the program traditionally works on Unix, but is not standard C.)
The patch also removes a bit-rotten code fragment under #ifdef OLDSTUFF.
Patch submitted in PR 8105 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.11 | 10-Feb-1999 |
hubertf | Add __attribute__() to a variable. From PR 6557, after discussion with Joseph S. Myers <jsm28@cam.ac.uk>
|
| 1.10 | 29-Aug-1998 |
hubertf | Improved signal handling as per PR 6051 by Joseph Myers <jsm@octomino.demon.co.uk>
|
| 1.9 | 24-Aug-1998 |
hubertf | Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.8 | 03-Feb-1998 |
perry | change includes to fix compiler warning
|
| 1.7 | 11-Oct-1997 |
lukem | KNFify
|
| 1.6 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.5 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.4 | 21-May-1996 |
mrg | oops, use <signal.h> not <sys/signal.h> (tholo@sigmasoft.com)
|
| 1.3 | 21-May-1996 |
mrg | give up setuid-ness. we don't need it. while i'm here, include <sys/signal.h> and use SIGINT rather than 2.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.16.10.1 | 09-Jan-2008 |
matt | sync with HEAD
|
| 1.20.8.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.20.2.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.23 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.22 | 25-Aug-2009 |
dholland | 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.
|
| 1.21 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.20 | 18-May-2006 |
mrg | don't try to switch a char and have a case of EOF - use an int.
|
| 1.19 | 21-Mar-2006 |
christos | Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc so that we don't end up storing garbage accidentally and the next pointer is initialized. If there is an inconsistency in the file abort instead of dereferencing NULL.
|
| 1.18 | 18-Mar-2006 |
christos | Coverity CID 1195: Check for possible negative index.
|
| 1.17 | 18-Mar-2006 |
christos | Coverity CID 777: Fix NULL pointer deref and de-obfuscate code.
|
| 1.16 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.15 | 19-Sep-2003 |
itojun | off-by-one. aaron@openbsd
|
| 1.14 | 19-Sep-2003 |
itojun | off-by-one. aaron@openbsd
|
| 1.13 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.12 | 09-Jan-2000 |
jsm | Use err(1, NULL) and warn(NULL) for `out of memory' error messages.
|
| 1.11 | 10-Feb-1999 |
hubertf | The game adventure(6) handles EOF on standard input rather ungracefully. The patch, derived from OpenBSD, improves this handling.
Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.10 | 14-Sep-1998 |
hubertf | return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.9 | 13-Sep-1998 |
hubertf | check for malloc failures (PR#6136 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.8 | 13-Sep-1998 |
hubertf | constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.7 | 29-Aug-1998 |
hubertf | Remove unused function and unnecessary prototypes, as per PR 6050 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.6 | 11-Oct-1997 |
lukem | KNFify
|
| 1.5 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.4 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.3 | 24-Apr-1995 |
cgd | Various changes to make games compile w/o warnings on the alpha: Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.22 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.21 | 25-Aug-2009 |
dholland | 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.
|
| 1.20 | 20-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings.
|
| 1.19 | 01-Jul-2005 |
jmc | branches: 1.19.20; KNF and WARNS=3
|
| 1.18 | 27-Jan-2004 |
jsm | Remove uses of __P.
|
| 1.17 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.16 | 03-Jul-2000 |
matt | More include additions for exit, abs, strcmp, etc.
|
| 1.15 | 08-May-2000 |
mycroft | Use setgid(), not setregid().
|
| 1.14 | 16-Jul-1999 |
hubertf | This patch cleans up the handling of the variable `saved' in adventure(6). The handling of this variable is somewhat confusing, since it is used for two different purposes (controlling the time required before a saved game can be restored, and controlling various aspects of dwarf behaviour); in fact, it is also declared twice in hdr.h. Except possibly when saving a game fails, these uses can never interfere; when used for controlling dwarf behaviour, we always have saved == -1. This can be better understood with reference to the original PDP-10 FORTRAN source (URL in patch, since hdr.h references the comments of the FORTRAN as still relevant to this version) of which the C version is a direct translation: the wrong value for `saved' meant that someone was cheating and had bypassed normal initialisation. Saving was done by halting and telling the user to save their core image, so the question of carrying on after saving failed to open the output file did not arise.
This patch separates the uses of `saved' into uses of two separate variables.
Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.13 | 10-Feb-1999 |
hubertf | The patch below does some minor cleanup of adventure(6): an additional use of const I missed in bin/6041; avoiding a signed/unsigned warning; marking an unused parameter as such; revoking setgid privileges (including the saved gid) rather than setuid ones; includes and function prototypes in setup.c; the string passed to err() should not end with a `.'. Together with the patch sent concerning adventure's EOF handling, this synchronises adventure(6) in NetBSD with the Linux port of the NetBSD games.
Via PR 6557 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.12 | 14-Sep-1998 |
hubertf | return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.11 | 13-Sep-1998 |
hubertf | remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.10 | 11-Sep-1998 |
hubertf | add main() prototype
|
| 1.9 | 24-Aug-1998 |
hubertf | Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.8 | 11-Oct-1997 |
lukem | KNFify
|
| 1.7 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.6 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.5 | 21-May-1996 |
mrg | oops, use <signal.h> not <sys/signal.h> (tholo@sigmasoft.com)
|
| 1.4 | 21-May-1996 |
mrg | give up setuid-ness. we don't need it. while i'm here, include <sys/signal.h> and use SIGINT rather than 2.
|
| 1.3 | 06-Feb-1996 |
jtc | Removed "extern int errno"; Added #include <errno.h> if not already present.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.19.20.1 | 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.15 | 12-Apr-2021 |
mrg | avoid leaving off the trailing nul in a literal string.
|
| 1.14 | 22-Mar-2014 |
dholland | Minor tidyup.
|
| 1.13 | 08-Jan-2012 |
dholland | branches: 1.13.6; Oops, I forgot to actually implement the checksumming code for the new savefile format, so any savefiles generated yesterday can be tampered with. Oh well. While here, tidy up the crc code.
|
| 1.12 | 07-Jan-2012 |
dholland | Redo save file handling. The old save files were unportable, had no magic number or versioning, relied on random(3) never changing to a different implementation, and were also saving pointers to disk and reading them back again. It *looks* as if the pointers thus loaded were reset before being used, but it's not particularly clear as the main loop of this thing is goto-based FORTRAN translated lightly to C. I've changed the logic to null these pointers instead of saving and loading them, and things seem to still work.
The new save files have a header, support versioning, write only sized types in network byte order, and for the toy encryption to discourage cheating do something self-contained instead of using random(3) as a stream cipher.
Because between the original import from 4.4 until earlier today trying to save would result in SIGSEGV on most platforms, it's unlikely anyone has a save file, but just in case (since the pointer issue appears to be nonlethal) I've kept compat code for old save files.
|
| 1.11 | 25-Aug-2009 |
dholland | branches: 1.11.6; 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.
|
| 1.10 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.9 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.8 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.7 | 17-Jul-1999 |
hubertf | Adventure(6) should check for errors (e.g. disk full or quota exceeded) when writing out saved games. Do so!
Patch supplied by Joseph Myers <jsm28@cam.ac.uk> in PR 8016
|
| 1.6 | 16-Jul-1999 |
hubertf | This patch cleans up the handling of the variable `saved' in adventure(6). The handling of this variable is somewhat confusing, since it is used for two different purposes (controlling the time required before a saved game can be restored, and controlling various aspects of dwarf behaviour); in fact, it is also declared twice in hdr.h. Except possibly when saving a game fails, these uses can never interfere; when used for controlling dwarf behaviour, we always have saved == -1. This can be better understood with reference to the original PDP-10 FORTRAN source (URL in patch, since hdr.h references the comments of the FORTRAN as still relevant to this version) of which the C version is a direct translation: the wrong value for `saved' meant that someone was cheating and had bypassed normal initialisation. Saving was done by halting and telling the user to save their core image, so the question of carrying on after saving failed to open the output file did not arise.
This patch separates the uses of `saved' into uses of two separate variables.
Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.5 | 13-Sep-1998 |
hubertf | constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.4 | 11-Oct-1997 |
lukem | KNFify
|
| 1.3 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.11.6.2 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.11.6.1 | 17-Apr-2012 |
yamt | sync with head
|
| 1.13.6.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.12 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.11 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.10 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.9 | 29-Aug-2001 |
jsm | Ensure trailing newline is present on error and warning messages (lost in previous conversion from <err.h> functions to ISO C ones).
|
| 1.8 | 31-Jul-2000 |
simonb | 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.
|
| 1.7 | 14-Jul-1999 |
hubertf | From PR 7985 by Joseph Myers <jsm28@cam.ac.uk>:
games/adventure/setup.c fails to check for errors when writing its output. This means that, if the disk fills up at this point during a build, it would nevertheless fail to return an error status.
|
| 1.6 | 10-Feb-1999 |
hubertf | The patch below does some minor cleanup of adventure(6): an additional use of const I missed in bin/6041; avoiding a signed/unsigned warning; marking an unused parameter as such; revoking setgid privileges (including the saved gid) rather than setuid ones; includes and function prototypes in setup.c; the string passed to err() should not end with a `.'. Together with the patch sent concerning adventure's EOF handling, this synchronises adventure(6) in NetBSD with the Linux port of the NetBSD games.
Via PR 6557 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.5 | 13-Sep-1998 |
hubertf | some cleanups as per PR#6082 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.4 | 11-Oct-1997 |
lukem | KNFify again
|
| 1.3 | 11-Oct-1997 |
lukem | KNFify
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.14 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.13 | 25-Aug-2009 |
dholland | 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.
|
| 1.12 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.11 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.10 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.9 | 03-Jul-2000 |
matt | More include additions for exit, abs, strcmp, etc.
|
| 1.8 | 14-Sep-1998 |
hubertf | return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.7 | 13-Sep-1998 |
hubertf | remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.6 | 24-Aug-1998 |
hubertf | Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.5 | 11-Oct-1997 |
lukem | KNFify
|
| 1.4 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.3 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.16 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.15 | 25-Aug-2009 |
dholland | 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.
|
| 1.14 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.13 | 18-Mar-2006 |
christos | Coverity CID 570: Remove impossible check.
|
| 1.12 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.11 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.10 | 09-Jan-2000 |
jsm | Use err(1, NULL) and warn(NULL) for `out of memory' error messages.
|
| 1.9 | 14-Sep-1998 |
hubertf | return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.8 | 13-Sep-1998 |
hubertf | check for malloc failures (PR#6136 by Joseph Myers <jsm28@cam.ac.uk>)
|
| 1.7 | 13-Sep-1998 |
hubertf | constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.6 | 24-Aug-1998 |
hubertf | Replace some homegrown string-functions with standard-<string.h>-macros. Reported by Joseph Myers <jsm28@cam.ac.uk> in PR 6028.
|
| 1.5 | 11-Oct-1997 |
lukem | KNFify
|
| 1.4 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.3 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.17 | 02-May-2021 |
rillig | games: remove trailing whitespace in *.c and *.h
|
| 1.16 | 12-Oct-2012 |
dholland | fix previous, thanks asau@
|
| 1.15 | 12-Oct-2012 |
dholland | Pass -Wstrict-overflow.
|
| 1.14 | 25-Aug-2009 |
dholland | branches: 1.14.6; 1.14.12; 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.
|
| 1.13 | 12-Aug-2009 |
dholland | sprinkle static
|
| 1.12 | 01-Jul-2005 |
jmc | KNF and WARNS=3
|
| 1.11 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.10 | 16-Jul-1999 |
hubertf | This patch cleans up the handling of the variable `saved' in adventure(6). The handling of this variable is somewhat confusing, since it is used for two different purposes (controlling the time required before a saved game can be restored, and controlling various aspects of dwarf behaviour); in fact, it is also declared twice in hdr.h. Except possibly when saving a game fails, these uses can never interfere; when used for controlling dwarf behaviour, we always have saved == -1. This can be better understood with reference to the original PDP-10 FORTRAN source (URL in patch, since hdr.h references the comments of the FORTRAN as still relevant to this version) of which the C version is a direct translation: the wrong value for `saved' meant that someone was cheating and had bypassed normal initialisation. Saving was done by halting and telling the user to save their core image, so the question of carrying on after saving failed to open the output file did not arise.
This patch separates the uses of `saved' into uses of two separate variables.
Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.9 | 10-Feb-1999 |
hubertf | The game adventure(6) handles EOF on standard input rather ungracefully. The patch, derived from OpenBSD, improves this handling.
Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.8 | 24-Aug-1998 |
hubertf | Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.
|
| 1.7 | 24-Jul-1998 |
hubertf | Consider leap years, as per PR 5830 by Joseph Myers <jsm28@cam.ac.uk>
|
| 1.6 | 11-Oct-1997 |
lukem | KNFify
|
| 1.5 | 10-Oct-1997 |
lukem | deprecate register, fixup .Nm usage
|
| 1.4 | 11-Aug-1997 |
christos | PR/3964: Eric Fischer: Remove dependencies to traditional cpp... While I was there add WARNS?= too.
|
| 1.3 | 24-Apr-1995 |
cgd | Various changes to make games compile w/o warnings on the alpha: Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
|
| 1.2 | 21-Mar-1995 |
cgd | clean up RCS ids
|
| 1.1 | 21-Oct-1994 |
jtc | branches: 1.1.1; Initial revision
|
| 1.1.1.1 | 21-Oct-1994 |
jtc | adventure(6), from 44lite
|
| 1.14.12.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
| 1.14.6.1 | 30-Oct-2012 |
yamt | sync with head
|