summaryrefslogtreecommitdiffstats
path: root/hangman
Commit message (Collapse)AuthorAgeFilesLines
* Use PREFIX nowCameron Katri2021-03-282-4/+6
|
* Get all the games compiling for iOSCameron Katri2021-02-221-4/+12
|
* Avoid messing up the display when too many letters are guessed at once.dholland2020-07-121-4/+12
| | | | | | | | The field to put them in was made 26 characters wide... but includes the string "Guessed: ". So if you get to 17 it wraps to the next line and clreol()'s it. Instead, when reaching this point step on the "Guessed:" string instead. Reported by phil@.
* Pass -Wstrict-overflowdholland2012-10-131-7/+6
|
* Pass -Wstrict-overflow; while here, use curses TRUE and FALSE only withdholland2012-10-132-11/+11
| | | curses.
* WARNS=5dholland2012-06-199-32/+29
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-2/+2
|
* When using -lcurses, you also need -lterminfo.he2010-02-061-3/+3
| | | | This fixes the build for sun2, and also builds with LDSTATIC=-static, since archive libraries don't record inter-library dependencies.
* if initscr() fails, exit with a message rather than crash in thedrochner2008-08-081-3/+4
| | | next curses call
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-3/+3
|
* Remove uses of __P.jsm2004-01-271-12/+12
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0713-88/+36
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* .Nm does not need a dummy argument ("") before punctuation orwiz2003-02-251-2/+2
| | | for correct formatting of the SYNOPSIS any longer.
* New sentences begin on new lines.wiz2002-09-261-2/+3
| | | Patch from Richard Elz, slightly improved by yours truly.
* Use standard headers.wiz2002-01-201-4/+4
|
* Allow minimum word length to be set on command line. Patch based onjsm2002-01-205-11/+22
| | | one by Joey Hess <joeyh@debian.org>.
* Change deprecated curses function to new equivalent.blymn2001-12-061-3/+3
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Make word list for hangman selectable at run time.jsm1999-09-175-12/+40
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+5
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-2/+3
| | | are used.
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-3/+3
| | | the games.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-082-5/+5
| | | | | | | | | | | | 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).
* Add use of `const' where appropriate to the games.jsm1999-09-083-10/+12
| | | | | | | | | 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.
* fix main() prototype, as per PR#5867hubertf1998-09-112-7/+5
|
* Simply include -lcurses instead of -lcurses -ltermcapjtc1998-02-181-3/+3
|
* Use -ltermcap instead of -ltermlibchristos1998-02-051-3/+3
|
* use err/warn instead of perrorlukem1997-10-111-4/+4
|
* WARNSify, KNFifylukem1997-10-1112-151/+167
|
* Remove mvcur() after wrefresh() call, as the latter does not move thejtc1997-05-231-3/+2
| | | | cursor. The fact that we don't have to grovel in the curses internels for curx or cury is an added bonus.
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-1/+2
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* merge with Lite, new RCS id conventions, etc.cgd1995-03-2314-70/+133
|
* specify man pages the new way.cgd1994-12-221-2/+2
|
* buggy version of abs() goes awayderaadt1994-06-292-18/+2
|
* new curses stuffcgd1993-11-101-6/+4
|
* Word list is in /usr/share/dict/*, not /usr/dict/*.jtc1993-09-161-3/+3
|
* Rewrite special character handling.mycroft1993-08-101-5/+7
|
* Update to use new -mandoc macros.jtc1993-08-051-12/+17
|
* Add RCS identifiers.mycroft1993-08-0112-12/+24
|
* Add RCS indentifiers.mycroft1993-08-011-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* got rid of unnecessary -lcompat and associated dependencycgd1993-03-231-2/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-2114-0/+895