Commit Graph

49 Commits

Author SHA1 Message Date
jsm
2b25de3a90 Include <time.h> in various places in the games where time() or time_t
are used.
1999-09-09 17:30:17 +00:00
jsm
b03d4fa882 Add __noreturn__' and __unused__' attributes where appropriate to
the games.

This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082.  Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
1999-09-08 21:45:25 +00:00
tron
679f4a54e3 Adapt to change of "termcap.h". 1999-08-14 16:29:22 +00:00
hubertf
c26f3e09fd This is a trivial fix to backgammon(6): '\a' is cleaner than '\007'.
Submitted in PR 8104 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-28 23:15:51 +00:00
hubertf
d29d591c01 This patch fixes a remaining relic of the backgammon(6) "execute
saved game to continue playing" problem described in bin/6077.

Patch contributed by Joseph Myers <jsm28@cam.ac.uk> in PR 8092.
1999-07-28 02:07:39 +00:00
hubertf
83d9f5b7e0 This patch adds to backgammon(6) a couple of noreturn attributes
missed in bin/6144.

Patch submitted in PR 8082 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-26 20:56:03 +00:00
hubertf
b8d8fccc22 This patch makes backgammon(6) check that, if you use the -s option to
recover a saved game, then you specify a file name.

Patch submitted in PR 8081 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-26 20:50:44 +00:00
hubertf
79705e8498 This adds a check for memory allocation failure to one place in
backgammon(6).  The use of write(2) for the message may seem odd, but
is used in another place in this game.  (Actually, a lot of
backgammon(6) could do with being substantially cleaned up.)

Patch submitted in PR 8080 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-26 18:39:06 +00:00
hubertf
420d34ff13 Hardcore const poisoning
Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8057
1999-07-25 00:06:13 +00:00
hubertf
3521abbb40 As in previously sent patches: backgammon(6) does not need setgid
games privileges from dm, so should revoke them on startup.

Patch submitteed in PR 8024 bye Joseph Myers <jsm28@cam.ac.uk>
1999-07-19 00:33:58 +00:00
hubertf
9c8243f4e2 Fix scoring, submitted in PR 7992 by Joseph Myers <jsm28@cam.ac.uk> 1999-07-14 22:46:21 +00:00
lukem
7e1c62baf8 set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp> 1999-03-13 23:17:46 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
hubertf
b0ed16a714 tgetent() handles const correctly in current 1999-02-10 17:08:06 +00:00
hubertf
92932dfcc8 The patch below makes the game backgammon(6) use `const' where
appropriate.  It also removes some obsolete, unused code to check the
number of users on the system (obsoleted by dm); removes a prototype
for an unused function that was removed earlier; and removes a control
character from one message that was I think intended to clear the
screen on some particular terminal (though I can't find the comment to
that effect in any of the BSD source trees I have handy) but no longer
serves any useful purpose.

From PR 6580 by Joseph Myers <jsm28@cam.ac.uk>.

Also contains two more patches, one in teachgammon/tutor.h (by Joseph)
and one in common_source/fancy.c (by me).
1999-02-10 12:29:47 +00:00
frueauf
ad506eb7a0 Fix args processing of backgammon and teachgammon, closes pr 5345 by
David Brownlee.
1998-09-15 13:43:34 +00:00
hubertf
6f55e2e275 remove x bit from save files (PR#6077) 1998-09-13 15:41:34 +00:00
hubertf
b0178f6b01 Remove unused function and mark non-returning ones(PR#6076, #6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:31:07 +00:00
hubertf
1c9494f62b mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:27:25 +00:00
hubertf
3f1f74edef Saved games can NOT be restored by executing the save file (PR#6077) 1998-09-13 15:21:05 +00:00
hubertf
9713f31f7c Remove unused function (PR#6076 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:19:35 +00:00
hubertf
f90c041018 fix typo, as per PR#5867 1998-09-11 13:06:30 +00:00
hubertf
767fe0a0b4 Use symbolic names for signals(!), open(2)-constants, ...
Fix applied as per PR 6058 by Joseph Myers <jsm28@cam.ac.uk>
1998-08-29 22:53:03 +00:00
mrg
7ed858277a - really make extern char's extern. 1998-03-29 04:46:40 +00:00
christos
60315cbc81 Does not need -lcompat 1998-02-02 14:10:45 +00:00
ragge
85a3b2eb8f Must have the correct library link order to be able to link
the binaries static.
1997-11-05 12:12:32 +00:00
lukem
2ce5181838 use CPPFLAGS instead of CFLAGS 1997-10-22 02:31:35 +00:00
lukem
b341d1b72e fix race condition when building libcommon with make -j 1997-10-16 05:24:23 +00:00
lukem
fafe360918 define global vars with `extern' in "back.h", and only define once in
init.c... backgammon works again...
1997-10-14 00:53:26 +00:00
lukem
f92e8f1839 use <termcap.h> 1997-10-14 00:41:15 +00:00
mycroft
709e3c2e39 common_source -> common, and GC some garbage variables. 1997-10-11 20:24:05 +00:00
veego
c02a314bcf Don't install this library, we only need this during the build. 1997-10-11 19:56:42 +00:00
lukem
16641b769f KNF & WARNSify, and only compile common_source once/* (compiles 25% faster) 1997-10-10 08:59:32 +00:00
gwr
10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
mikel
a41241b92a /etc/termcap -> /usr/share/misc/termcap. Fixes misc/1401. 1996-11-12 07:50:11 +00:00
mycroft
eab5a76524 Use POSIX tty semantics. 1995-04-29 00:44:03 +00:00
cgd
c4816c32b3 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.
1995-04-24 12:21:37 +00:00
cgd
101657d110 clean up import 1995-03-21 15:03:38 +00:00
cgd
c3290293b8 from Lite 1995-03-21 12:24:13 +00:00
cgd
c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
cgd
a218d38dc2 need -lcompat 1994-05-23 05:32:40 +00:00
mycroft
2edc4bebf1 nextfree() was not returning a value when it pulled something off the free
list.  Reported by vandys@cisco.com and Mark_Weaver@brown.edu.
1993-12-03 09:32:55 +00:00
jtc
68016bad2e Update to -mandoc macros. 1993-08-05 04:16:58 +00:00
mycroft
8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft
b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd
f620d7d9f6 got rid of unnecessary -lcompat and associated dependency 1993-03-23 02:44:38 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00