summaryrefslogtreecommitdiffstats
path: root/phantasia/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Get all the games compiling for iOSCameron Katri2021-02-221-0/+3
|
* - add or adjust /* FALLTHROUGH */ where appropriatemrg2019-02-031-3/+12
| | | | - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
* Dumping all system includes anything uses in one big header file is so 1986.dholland2009-08-311-6/+17
| | | | | 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-9/+18
|
* Paranoia about lengths of login names. From pjanzen of OpenBSD.dholland2009-05-261-2/+2
|
* Avoid SIGSEGV on users not in password file. From pjanzen of OpenBSD.dholland2009-05-261-3/+10
|
* sprintf -> snprintfdholland2009-05-251-5/+10
|
* ANSIfy function declarations. Object file diffs cross-checked.dholland2009-05-251-15/+11
|
* if initscr() fails, exit with a message rather than crash in thedrochner2008-08-081-2/+5
| | | next curses call
* Coverity CID 3508: Fix file leak.christos2006-05-131-2/+3
|
* Redo how void gets init'd.jmc2004-12-091-1/+14
| | | | | 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
* 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-5/+9
| | | | | 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
|
* Change deprecated curses function calls to new equivalents.blymn2001-12-061-3/+3
|
* A couple more checks for file descriptor < 3 missed earlier.jsm1999-09-131-1/+3
|
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-5/+5
| | | the games.
* Add use of `const' where appropriate to the games.jsm1999-09-081-2/+2
| | | | | | | | | 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.
* Make phrase to enter password again clearerhubertf1999-08-181-2/+2
|
* Add braces to make the new egcs happy.veego1998-08-301-2/+3
|
* WARNSify, KNFify (inc. removing extremely verbose & useless comments), ...lukem1997-10-131-1030/+745
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-3/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* rcs id conventionscgd1995-03-241-0/+2
|
* phantasia(6), from 44litejtc1994-10-211-0/+1288