summaryrefslogtreecommitdiffstats
path: root/hack
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-055-15/+15
|
* Use PREFIX nowCameron Katri2021-03-285-9/+11
|
* Get all the games compiling for iOSCameron Katri2021-02-221-34/+18
|
* games/hack: Suppress -Werror=stringop-truncation error.fox2020-02-081-1/+2
| | | | | | | Add GCC_NO_STRINGOP_TRUNCATION to hack.end.c to prevent build failure. Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@
* games/hack: Revert the strlcpy(1) change since this changes expected ↵fox2020-02-071-3/+3
| | | | | behavior from strncpy(3). Reviewed by: kamil@
* games/hack: Fix -Wstringop-truncation warning.fox2020-02-071-3/+3
| | | | | | | Replace strncpy(3) with strlcpy(3). Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@
* introduce some common variables for use in GCC warning disables:mrg2019-10-131-1/+4
| | | | | | | | | | | | | | | | | GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
* - done() can return in wizard mode. don't NOTREACHED'd itmrg2019-02-041-3/+3
| | | but break instead.
* - enlarge buffer to avoid snprintf() truncationmrg2019-02-031-3/+3
|
* 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
|