summaryrefslogtreecommitdiffstats
path: root/hack/hack.h
Commit message (Collapse)AuthorAgeFilesLines
* Use PREFIX nowCameron Katri2021-03-281-1/+1
|
* Use the right type for the malloc wrapper function, and don't cast thedholland2011-08-061-2/+2
| | | | | | | | return value. (XXX: Except for a pile of allocation macros that produce typed pointer results; there the typechecking of the result assignment is more valuable than the warning if the alloc function isn't declared properly. These macros should go away.)
* abolish references to index/rindexdholland2011-08-061-6/+1
|
* include sys/time.h earlier (rather than implicitly via fcntl.h) so thatmrg2011-07-021-1/+2
| | | | | | | the "u" variable doesn't shadow stuff, found later in time.h inlines. kind of a hack, but i don't want to modify time.h either. XXX: seems kind of annoying
* Fix two serious string-handling bugs (one exploitable, one probablydholland2009-06-291-2/+2
| | | | exploitable) and also add proper checking/paranoia in several other places.
* a bit more constdholland2009-06-071-2/+2
|
* sprinkle some more constdholland2009-06-071-3/+3
|
* Remove uses of __P.jsm2004-01-271-4/+4
|
* Hack is now BSD-licensed. Thanks to Andries Brouwer, Jay Fenlason andjsm2003-04-021-2/+60
| | | | CWI <http://www.cwi.nl/~aeb/games/hack/hack.html>. Via OpenBSD. Addresses part of PR bin/5850.
* Make mostly gcc -W clean, and other cleanup:jsm2001-03-251-16/+17
| | | | | | | | | | | | Use const. Add __noreturn__ attributes. Add a __format__ attribute. Add __unused__ attributes. Use symbolic constants for open() and lseek(). Declare types of all function parameters; convert some function definitions to ISO C form. Ensure standard file descriptors are open on startup. Check for errors writing output of makedefs. Avoid duplicate definitions of variables.
* fix redundant decls and nested externs. while I am here change my copyrightchristos2001-02-051-4/+1
| | | to TNF.
* comment or delete text after CPP directives.cgd2001-01-161-3/+3
|
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-1/+2
|
* WARNsify...christos1997-10-191-40/+69
|
* merge with Lite, new RCS id conventions, etc.cgd1995-03-231-1/+1
|
* alloc.cmycroft1993-08-021-2/+5
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+160