summaryrefslogtreecommitdiffstats
path: root/phantasia/misc.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-7/+7
|
* - add or adjust /* FALLTHROUGH */ where appropriatemrg2019-02-031-1/+2
| | | | - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
* reinstate NULL cast by request, where the NULL was being passed as a varargplunky2011-09-011-2/+2
|
* NULL does not need a castplunky2011-08-311-2/+2
|
* Dumping all system includes anything uses in one big header file is so 1986.dholland2009-08-311-2/+16
| | | | | XXX: Removing unused declarations (thus, unused headers can trigger XXX: it) sometimes causes gcc to generate substantially different XXX: code. Dunno why but it looks rather like a gcc bug.
* sprinkle staticdholland2009-08-121-3/+5
|
* sprintf -> snprintfdholland2009-05-251-3/+5
|
* ANSIfy function declarations. Object file diffs cross-checked.dholland2009-05-251-51/+26
|
* Make this build with WARNS=4 by not reusing names from <math.h>.dholland2008-01-281-5/+5
|
* Don't presume phantasia's internal bool (char) is the same as that injsm2005-02-151-3/+3
| | | | | | 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>.
* Cast last argument of execl to (char *).jsm2005-02-151-2/+2
| | | Reviewed by <hubertf>.
* Undef bool before including <curses.h>, since it tries to typedefhe2004-04-111-1/+2
| | | | | 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.
* Rework to use curses.h only on the target, not on the host.ross2004-04-071-1/+2
|
* When cleaning up, only close files that have been opened successfully.jsm2004-01-011-2/+2
| | | | | 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>.
* de-__P().wiz2003-05-081-2/+2
|
* The Double-Semi-Colon Police.simonb2003-01-201-2/+2
|
* Fix arguments to *printw().jdc2000-04-271-2/+2
|
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-9/+9
| | | the games.
* Add use of `const' where appropriate to the games.jsm1999-09-081-13/+13
| | | | | | | | | 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.
* Add braces to make the new egcs happy.veego1998-08-301-2/+3
|
* WARNSify, KNFify (inc. removing extremely verbose & useless comments), ...lukem1997-10-131-1486/+851
|
* rcs id conventionscgd1995-03-241-0/+2
|
* phantasia(6), from 44litejtc1994-10-211-0/+1703