Commit Graph

72 Commits

Author SHA1 Message Date
christos dad51bf4f0 Coverity CID 3508: Fix file leak. 2006-05-13 22:29:53 +00:00
jsm 58b3287ba1 Don't presume phantasia's internal bool (char) is the same as that in
curses.h: define phbool and use it where necessary to avoid declaring
functions with one bool and defining them with the other.

Reviewed by <hubertf>.
2005-02-15 12:58:21 +00:00
jsm b91a81ab9f Cast last argument of execl to (char *).
Reviewed by <hubertf>.
2005-02-15 12:56:20 +00:00
jmc 279847975e Redo how void gets init'd.
setup now just creates an empty file. When main starts and loads it in,
it stats and if zero size init's a new location and saves it back out.
Now games.tgz can be shared among MACHINE_ARCH's
2004-12-09 05:15:59 +00:00
he 9b1375ac78 Undef bool before including <curses.h>, since it tries to typedef
bool.  Otherwise we get (at least on gcc 2.95.3) an empty declaration
warning from "typedef char char;" due to the #define of bool in
phantstruct.h.
2004-04-11 13:35:06 +00:00
ross 9209ce5ad8 Rework to use curses.h only on the target, not on the host. 2004-04-07 17:46:47 +00:00
lukem 34fb5c1494 Fix race in parallel make when creating multiple targets in one operation. 2004-02-08 22:14:27 +00:00
jsm d035cfe33e Mark variables changed between setjmp and longjmp as volatile rather
than just taking their addresses.
2004-02-08 00:32:07 +00:00
wiz 0e62b72ca3 Move AUTHORS section directly before BUGS section.
Suggested by jmc@openbsd.
2004-01-03 13:32:23 +00:00
jsm 50134cf26f When cleaning up, only close files that have been opened successfully.
When reporting errors for failing to open files, give error text
rather than errno number.  Patch from Joey Hess <joey@kitenet.net> for
Debian bug 187251 from Mikael Hedin <micce@debian.org>.
2004-01-01 16:03:46 +00:00
lukem e606e2dcb2 Improve how various "simple" host tools are built and invoked. 2003-11-16 14:14:18 +00:00
lukem 130ab7336b 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.
2003-10-21 10:01:19 +00:00
lukem ddff99b7f4 rework to use the newer _MKMSGCREATE (et al) macros 2003-10-19 04:45:01 +00:00
lukem 2b8c8463a6 Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages) 2003-10-19 01:01:44 +00:00
lukem fbed1f07f7 rework to use BUILDSYMLINKS and the <bsd.sys.mk> rule for .c.lo 2003-10-18 07:40:27 +00:00
lukem 2eedde4648 remove unnecessary / 2003-09-30 09:23:19 +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
wiz 11d31abb7e Use standard section header; add nokeep to table to avoid page/line break
in table. From jmc@openbsd.
2003-05-18 09:30:08 +00:00
wiz 73a79751ed de-__P(). 2003-05-08 13:03:49 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
wiz c91d8d6b9b Lots of minor fixes resulting from reading these man pages in detail. 2002-09-26 18:31:58 +00:00
wiz 904b6b9402 Mdoc nits -- unneeded ". 2002-09-26 16:33:53 +00:00
wiz 875690e96c Ispell. 2002-09-26 16:29:25 +00:00
wiz 0d22e30cd0 New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
2002-09-26 16:12:39 +00:00
thorpej 5ab89c4a4a No need to reference .OBJDIR here. 2002-03-05 21:29:56 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
gmcgarry 996ba76090 .include <bsd.own.mk> early 2001-12-19 06:18:25 +00:00
blymn b74595a200 Change deprecated curses function calls to new equivalents. 2001-12-06 12:15:37 +00:00
perry b06530cff1 remove a spurious .include <bsd.own.mk> 2001-11-19 04:48:44 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
lukem 073b3ed1ba fix building of phantasia ($FILES dependency on $PROG broke things) 2001-06-06 17:34:19 +00:00
wiz d6a5b6cce4 Convert to mdoc. Still needs tbl for two tables that have more than 6
columns, but looks much nicer now.
2001-04-02 22:41:43 +00:00
simonb eb5ddb38e4 Build the data files in the obj/compile directory and install them with
FILES and FILESDIR.
"Problem" reported by David Querbach on current-users.
2001-03-27 02:23:28 +00:00
christos c18d8e65fc remove redundant decls 2001-02-05 01:01:27 +00:00
matt 568a487125 Make this produce local objects with .lo suffix. 2000-06-20 16:07:04 +00:00
jdc d6d7f0531f Fix arguments to *printw(). 2000-04-27 00:30:51 +00:00
pk b63c26a995 HOST_CC -> HOST_LINK.c 2000-04-24 15:15:05 +00:00
jdolecek 8c9b24b9ca Fix two ubiquitous operator precedence error of type
bar = foo + (cond) ? x : y.
Patch sent by John Darrow in bin/9698.
2000-03-30 11:01:13 +00:00
mycroft 615ac255bd More .mk file fallout. *sigh* 2000-01-23 22:10:52 +00:00
jsm ce5670f70f Fix uses of namespaces reserved by ISO C or POSIX.1. 1999-09-30 18:01:31 +00:00
jsm 8cdc3f1b7f Cleanup and warning fixes for phantasia/setup.c. 1999-09-19 18:14:52 +00:00
jsm 20e3305006 Fix -Wsign-compare warnings. 1999-09-18 19:38:46 +00:00
jsm 7dc5308d13 A couple more checks for file descriptor < 3 missed earlier. 1999-09-13 17:15:42 +00:00
jsm 5fb18dd9da Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.
1999-09-08 21:57:16 +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
simonb ba77c9abaf Don't chown installed files or directories if UNPRIVILEGED is defined.
"make build" should now work as a non-root user (tested on Alpha).
mtree spits out lots of warnings during "make distrib-dirs", but
these are non-fatal.
1999-08-21 06:30:11 +00:00
hubertf 96651fe764 Make phrase to enter password again clearer 1999-08-18 01:39:16 +00:00
tron 1c7a4fb141 Remove obsolete header file. Fixes PR bin/6700 by Joseph S. Myers. 1999-01-02 15:47:55 +00:00
dbj 16a09f01ca tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
but is not in the environment.
1998-12-06 09:06:45 +00:00