summaryrefslogtreecommitdiffstats
path: root/games/hack/hack.tty.c
AgeCommit message (Collapse)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2016-01-09This diff is rather large, but it's just simply removing unnecessary headersmestre1-14/+14
, remove some lint-style comments, add missing void to functions without args, also some function prototypes (extern) were missing their args, so I added them as they were defined in hack.h OK tb@ on separate diffs
2016-01-07hack expects to be able to read ^Z as a normal character so disablemillert1-1/+3
SUSP in the termios settings. Presumably this is how things worked before the conversion to termios. Fixes suspend/resume in hack.
2015-09-27Annotate funcs with __attribute__((printf(...))) and clean up the fallout:guenther1-3/+3
* lots of foo(str) --> foo("%s", str) transformations * one totally insane foo(fmt, ap) --> vfoo(fmt, ap) conversion: how did this ever work? * prefer const char[] over char* for static format strings, as it lets gcc check the format and eliminates an unnecessary pointer ok beck@
2015-01-15NR_OF_EOFS is a festering boil, lance & drain.deraadt1-25/+1
ok millert
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-9/+1
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2005-04-16use vprintf, as obvious; frederik.deweerdt@laposte.netderaadt1-3/+3
2003-06-03Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-19A few more includes discovered in a -fno-builtin compilepjanzen1-2/+3
2003-05-19De-register, ANSIfy, clean up.pjanzen1-32/+50
2003-03-16hack is freecamield1-3/+63
Thanks to Andries Brouwer, Jay Fenlason and the folks at CWI for their efforts. http://www.cwi.nl/~aeb/games/hack/hack.html ok deraadt@
2001-08-06Nothing but comments after #endif and #else; heko@iki.fipjanzen1-5/+5
2001-01-28$OpenBSD$niklas1-1/+3
2000-07-24printf() and %s pedantry, from itojun channelling kris@freebsdpjanzen1-1/+1
1997-01-17r?index -> strr?chrmillert1-1/+1
1995-10-18initial import of NetBSD treederaadt1-0/+292