summaryrefslogtreecommitdiffstats
path: root/hack
Commit message (Collapse)AuthorAgeFilesLines
* 1) "It's its"snj2014-10-181-3/+3
| | | | 2) Whitespace 3) You're all too old to be confusing "your" with "you're"
* WARNS=5, and make WARNS=5 the default for src/games.dholland2012-06-192-9/+11
|
* Use tiparm instead of vtparm.roy2011-10-031-4/+4
|
* reinstate NULL cast by request, where the NULL was being passed as a varargplunky2011-09-012-8/+8
|
* NULL does not need a castplunky2011-08-312-8/+8
|
* Mark error() as dead, so that validation for setclipped works correctly.joerg2011-08-271-2/+2
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-14/+9
|
* -Wno-shadow is no longer needed for HAVE_PCC, hereplunky2011-08-241-5/+1
|
* - document non-literal format stringschristos2011-08-164-37/+46
| | | - avoid strict aliasing violations, but adding an intermediate function.
* Fix up some lint.dholland2011-08-0714-53/+63
|
* Fix up still more casts; use NULL instead of (char *)0.dholland2011-08-0614-55/+55
|
* Remove *another* set of useless casts. sheeshdholland2011-08-062-28/+28
|
* Remove more silly casts.dholland2011-08-0613-48/+48
|
* drop private (and wrong) definition of NULLdholland2011-08-061-6/+2
|
* Use the right type for the malloc wrapper function, and don't cast thedholland2011-08-0615-49/+48
| | | | | | | | 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.)
* Remove silly casts.dholland2011-08-065-50/+50
|
* <sys/wait.h> is standard, so just use it instead of fiddling about withdholland2011-08-062-23/+4
| | | ifdefs for long-dead systems. While here, remove union wait.
* abolish references to index/rindexdholland2011-08-062-10/+3
|
* Remove the PYRAMID_BUG code. I don't think Pyramids are coming back, nordholland2011-08-062-12/+3
| | | do we care if their compiler vomits trying to decrement a bitfield.
* Don't refer to index() in comments; use strchr().dholland2011-08-061-3/+3
|
* Include system headers before private headers. Avoids various possibledholland2011-07-202-8/+8
| | | symbol conflicts.
* 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
* rename a variable from "time" to "stime" (it's a string)mrg2011-07-021-5/+5
|
* apply some -Wno-error and/or -fno-strict-aliasing.mrg2011-06-221-1/+6
| | | | all of this should be looked at closer, but some of them are not very trivial.
* Use consistent sign in compare, the function is only called withjoerg2011-05-302-5/+5
| | | constants as third argument anyway.
* Correctly print variables as strings, not as format string.joerg2011-05-239-30/+32
|
* Userland now builds and uses terminfo instead of termcap.roy2010-02-0312-176/+138
| | | OK: core@, jdc@
* Simplify alloc() to avoid ifdef(LINT) workaround.wiz2010-01-171-26/+4
|
* sprinkle staticdholland2009-08-1249-400/+443
|
* Fix two serious string-handling bugs (one exploitable, one probablydholland2009-06-297-33/+49
| | | | exploitable) and also add proper checking/paranoia in several other places.
* a bit more constdholland2009-06-072-5/+5
|
* sprinkle some more constdholland2009-06-073-9/+9
|
* remove unnecessary castsdholland2009-06-072-18/+18
|
* sprintf -> snprintf, plus some use of strlcpy/strlcat where appropriatedholland2009-06-0714-181/+274
| | | XXX: there's still one sprintf left which will take some hacking to expunge.
* ANSIfy function declarations. All object file diffs inspected.dholland2009-06-0753-1060/+687
|
* Change getdate() to getdatestr() since the former maybe present on systemsginsbach2009-05-063-8/+8
| | | | supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict.
* use %zu to print size_ttnn2009-01-181-3/+3
|
* fix -Wsign-compare issueslukem2009-01-183-9/+9
|
* Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a ↵gmcgarry2008-08-291-1/+6
| | | | few flags for PCC.
* Remove clause 3 and 4 from TNF licensesmartin2008-04-281-8/+1
|
* Make hack build with WARNS=4.dholland2008-01-2818-94/+102
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-155-18/+18
|
* Update my previous commit to better match the original code, includingchuck2007-01-171-5/+8
| | | | | | | | | | | the check for 'bs'... my previous commit should have included the following text: fixes problem introduced in 1.13 where the setting of "BC" (backspace char) was left to libterm rather than being done by hack itself. the problem with this was that hack was directly setting BC to \b if there was no "bc" in the termcap entry, but libterm does not do this. this resulted in the xputs(BC) calls in nocmov() and backsp() incorrectly doing nothing, thus messing up the display. added new var BC_BS to provide the old behavior for nocmov() and backsp().
* mrg's changes in 1.13 broke hack's display code.chuck2007-01-171-5/+8
|
* s/independant/independent/, from Zafer.wiz2006-11-241-2/+2
|
* fix spelling of accommodate; from Zapher.christos2006-11-241-3/+3
|
* Coverity CID 3382: Fix memory leak.christos2006-05-131-2/+3
|
* Coverity CID 3383: Fix memory leak.christos2006-05-131-2/+3
|
* UC, PC and BC are provided my libtermcap, don't duplicate them.mrg2006-05-111-15/+4
|
* Coverity CID 3032: Prevent double free: Next to the call of page_more()christos2006-04-241-3/+2
| | | | there is a comment saying /* does fclose */, but the next line calls fclose(fp);. Go figure.