Commit Graph

55 Commits

Author SHA1 Message Date
simonb
11a429897a Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err
function for host programs - use portable ANSI constructs instead.

Patches from Chris Demetriou.
2000-07-31 11:29:48 +00:00
simonb
f221c30583 Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/warnx
functions for host programs - use portable ANSI constructs instead.

Patches from Chris Demetriou.
2000-07-31 11:28:48 +00:00
mycroft
f9eca6973d Use setgid(), not setregid(). 2000-05-08 07:55:59 +00:00
simonb
915c06c281 Greatly simplify these by using <bsd.hostprog.mk>. Should do the same
for games/hack and games/monop and a few other places, but that requires
making subdirs for the tools.  One day...
2000-04-14 04:12:18 +00:00
soren
1594850f00 Fix doubled 'the' in comment. 2000-03-13 22:46:59 +00:00
mycroft
a73ccc591a More .mk file fallout. *sigh* 2000-01-23 21:55:44 +00:00
jsm
f4d432cd46 If the dictionary for boggle does not include words beginning with
every letter, add appropriate index lines.  Problem reported by Mike
Castle <dalgoda@ix.netcom.com> against the Linux port of the NetBSD games
collection.
1999-12-07 07:47:08 +00:00
jsm
93789c3665 Further warning fix for mkdict. 1999-09-19 18:10:48 +00:00
jsm
54abf681cb Add alternative style for commands at end of game (#ifdef NEW_STYLE). 1999-09-19 09:42:38 +00:00
jsm
3e35da6e70 Warning cleanup for boggle's mkdict and mkindex. 1999-09-18 20:50:28 +00:00
jsm
20e3305006 Fix -Wsign-compare warnings. 1999-09-18 19:38:46 +00:00
jsm
ba40c8d63d Fix some uses of NULL as non-pointer and 0 for null pointer. 1999-09-17 17:07:11 +00:00
jsm
18c51c04de Check for write errors in auxiliary programs used during build of games. 1999-09-10 00:18:20 +00:00
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
jsm
092d313019 Add use of `const' 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).

Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
1999-09-08 21:17:44 +00:00
hubertf
7287839679 Drop setgid privs early. Via OpenBSD, reported in PR 5970 by
Joseph Myers <jsm28@cam.ac.uk>
1999-07-21 04:02:29 +00:00
hubertf
c1f52f97cd From PR 7988 by Joseph Myers <jsm28@cam.ac.uk>: use the symbolic
name SEEK_SET for values which end up as the third argument of
fseek(), rather than a hard-coded 0.
1999-07-14 17:23:53 +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
30b3ea8d71 make objdir-aware 1998-11-09 15:30:10 +00:00
lukem
b569ddabe9 don't install in /usr/share if NOSHARE is defined 1998-09-29 07:33:20 +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
5f5c04f636 remove unused args from main(), as per PR#5867 1998-09-11 13:16:05 +00:00
veego
04afeca685 Add braces to make the new egcs happy. 1998-08-30 09:19:36 +00:00
lukem
4a07ff4e77 use HOST_CPPFLAGS not HOST_CFLAGS 1998-04-13 14:14:39 +00:00
jtc
2065ddb3da Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:37:30 +00:00
christos
cb47578732 Use -ltermcap instead of -ltermlib 1998-02-05 12:15:51 +00:00
lukem
f984b5a5dc use CPPFLAGS instead of CFLAGS 1997-10-26 21:50:53 +00:00
cjs
3b88f2c450 time_t != long; cast it. 1997-10-13 21:09:59 +00:00
mycroft
e96e918e60 Use bsd.subdir.mk as appropriate. 1997-10-11 09:34:07 +00:00
lukem
04f410d254 minor KNFify 1997-10-11 02:12:11 +00:00
lukem
27bf0524e7 WARNSify 1997-10-10 12:04:23 +00:00
mycroft
6e0450c70f Use proginstall:: to disable installing PROG. 1997-05-07 15:59:08 +00:00
mycroft
fd8daf980e Add .MAKE to the .OBJDIR hacks, so they work with `make -n'. 1997-05-07 07:15:34 +00:00
christos
f7c41063d6 PR/3557: Dave Huang: use web2 not web2a 1997-04-30 20:07:40 +00:00
thorpej
645c59a136 Allow boggle to be cross-compiled; the mkdict and mkindex programs
are used only by the hosting system.
1997-04-28 23:46:19 +00:00
thorpej
d6aa0e4456 Yow, cvs commit in the wrong directory... Bad, Jason, no biscuit! 1997-04-19 07:13:49 +00:00
thorpej
bb38208013 Allow this to be cross-compiled. 1997-04-19 06:59:34 +00:00
christos
642195b4a8 Make sure that the dictionary and indexing programs are made. 1997-04-01 15:25:52 +00:00
christos
8504fd9f9d - Don't depend on installed ${DESTDIR}/usr/share/dict/words; pick up the
dictionary from the sources.
- Don't depend on the locally built indexing programs to build the dictionaries.
1997-04-01 11:42:34 +00:00
christos
d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
tls
34cd8f5bdf Sync to 4.4BSD-Lite2 1997-01-07 11:56:32 +00:00
thorpej
871c9c08af Use ${INSTALL}. 1996-10-18 02:37:51 +00:00
mrg
b37e459094 use words from $DESTDIR. 1996-09-26 00:04:42 +00:00
mycroft
3e4b008cce Use tcflush(). 1995-04-28 22:28:48 +00:00
mycroft
200f85f63e Use POSIX signal and tty semantics. 1995-04-27 22:06:04 +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
mycroft
a1e0e43227 Remove read-only files before trying to rewrite them. From Greg Hudson. 1995-04-20 02:04:51 +00:00
cgd
d4f96eeaff add/fix id tags 1995-03-21 12:14:18 +00:00
glass
73165ec2d0 remove extra tab 1995-03-01 09:05:20 +00:00