Commit Graph

11 Commits

Author SHA1 Message Date
dholland aa19a9d0a5 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.
2009-08-25 06:56:52 +00:00
dholland c62bf84c55 sprinkle static 2009-08-12 04:28:27 +00:00
jmc 243d04ef01 KNF and WARNS=3 2005-07-01 00:03:36 +00:00
agc e5aeb4ea46 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
hubertf aac1ec24ab 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
1999-07-17 20:02:48 +00:00
hubertf adf74b1e92 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>
1999-07-16 01:38:20 +00:00
hubertf 4e1357c739 constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk> 1998-09-13 00:07:24 +00:00
lukem 84f80fd691 KNFify 1997-10-11 01:53:21 +00:00
christos 690bee1083 PR/3964: Eric Fischer: Remove dependencies to traditional cpp...
While I was there add WARNS?= too.
1997-08-11 14:06:10 +00:00
cgd 43b952514b clean up RCS ids 1995-03-21 12:04:53 +00:00
jtc 107c0a28c5 adventure(6), from 44lite 1994-10-21 20:51:44 +00:00