Commit Graph

96 Commits

Author SHA1 Message Date
rillig 1182a44c59 games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
christos bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
dholland c2f6e94e93 Double the threshold for crashing out with "too many words". 2016-06-25 23:15:41 +00:00
dholland 246baf44c7 use size_t instead of int for a length 2014-03-22 23:39:04 +00:00
christos 193b880fad fix unused variable warnings 2013-10-19 17:19:30 +00:00
dholland 8bde1deef1 Factor out some common code; pass -Wstrict-overflow. 2012-10-13 20:12:18 +00:00
plunky 9f61b80465 NULL does not need a cast 2011-08-31 16:24:54 +00:00
dholland ae56ae8f3f Use __dead and __printflike instead of __attribute__. 2011-08-26 06:18:16 +00:00
pgoyette 6688046702 Fix a few of the games to use getprogname() in their usage() functions.
Suggested by Joerg.

XXX There are probably many more that have their progname hard-coded, but
XXX I'm not up for a wholesale roto-till at the moment.
2010-12-05 04:34:22 +00:00
pgoyette 1c22c7521b Since this game is installed as 'boggle', fix the usage() text to match. 2010-12-05 04:11:51 +00:00
he 76d4444c78 When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
dholland 43e0d095a0 sprinkle static and prune some dead code 2009-08-12 05:29:40 +00:00
roy 7027866a09 Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
2009-07-13 19:05:39 +00:00
drochner 432ec04420 if initscr() fails, exit with a message rather than crash in the
next curses call
2008-08-08 16:10:47 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
jmcneill a6a54c10d8 PR# 4305: [dM] boggle uses very incomplete wordlist. 2006-09-24 01:38:57 +00:00
christos 5e676b6bff PR/34175: Zafer Aydogan: touch the window to cause a refresh after help
Also use CTRL instead of \xxx
2006-08-09 14:29:40 +00:00
rtr 969e2244d4 fclose() open FILE * even though we are returning to fail anyway.
silences coverity, CID 1590 / run 5
2006-03-18 09:40:46 +00:00
wiz d9f5a9df01 Use standard AUTHORS section header. From YOMURA Masanori in private mail
Sort sections if necessary. Use more/better markup.
2005-09-15 02:09:41 +00:00
jmc ed65ee1672 KNF and WARNS=3 2005-07-01 16:38:24 +00:00
rillig 4f6457e756 Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
2005-04-19 20:14:29 +00:00
dsl 49f7d8a9b1 Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
jsm cb5fd8342e Remove uses of __P. 2004-01-27 20:30:28 +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
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 a1cbee5c2a Fix macro order, and quote question mark. 2003-06-27 22:47:44 +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 0d22e30cd0 New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
2002-09-26 16:12:39 +00:00
mycroft 227330d532 Slight redux. 2002-09-19 21:26:56 +00:00
mycroft 4d0e87d7bb select() -> poll(), nanosleep() 2002-09-19 03:15:43 +00:00
lukem bcf4617b61 some makefile de-linting 2002-09-18 06:16:39 +00:00
lukem 58a44e7ae0 use NETBSDSRCDIR as appropriate 2002-09-18 02:51:46 +00:00
thorpej 87a37178ee There is no need to explcitly use ${.OBJDIR}; it's implied. 2002-03-05 19:17:44 +00:00
tv a2291b79c0 MKfoo=no -> NOfoo= 2001-12-12 00:07:45 +00:00
jsm d929aa8aeb Ensure trailing newline is present on error and warning messages (lost
in previous conversion from <err.h> functions to ISO C ones).
2001-08-29 18:22:56 +00:00
wiz d41deffb56 mdoc'ify, and clean up in the process. 2001-04-02 22:46:18 +00:00
christos f06735e877 fix nested extern 2001-02-05 00:27:35 +00:00
sommerfeld 83454472f9 ${PRINTOBJDIR}ify 2000-12-30 17:51:26 +00:00
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