summaryrefslogtreecommitdiffstats
path: root/hack
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Coverity CID 2791: Fix file pointer leak.christos2006-04-021-2/+4
|
* Coverity CID 1327: check for error returnjnemeth2006-03-301-2/+4
|
* Bah! Compare, don't assign!jnemeth2006-03-301-3/+3
|
* Coverity CID 1328: check for error returnjnemeth2006-03-301-2/+4
|
* Coverity CID 1326: check for error returnjnemeth2006-03-301-2/+4
|
* Fix Coverity issue 891 -- FORWARD_NULL.jnemeth2006-03-291-2/+6
| | | Approved by christos@.
* Fix Coverity issues 2366 and 2365 -- REVERSE_INULL.jnemeth2006-03-291-6/+12
| | | Approved by Christos@.
* Fix Coverity issue 2584 -- USE_AFTER_FREE and issue 889 -- FORWARD_NULL.jnemeth2006-03-291-5/+9
| | | Approved by christos@.
* Change DPADD from LIBTERM (which doesn't exist) and LIBCOMPAT (which itsimonb2006-02-251-2/+2
| | | doesn't use) to LIBTERMCAP (which it does use).
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-28/+28
| | | Sort sections if necessary. Use more/better markup.
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-6/+6
|
* Grammar fix, from ray at raylai org via jmc@openbsd.wiz2004-06-011-2/+2
|
* s/feal/feel/snj2004-03-281-1/+1
|
* s/venomenous/venomous/snj2004-03-281-1/+1
|
* Remove uses of __P.jsm2004-01-2710-560/+560
|
* Refer to 'O' rather than 'o' as command to set options. Bug reportedjsm2004-01-011-4/+4
| | | by Christian Garbs <debian@cgarbs.de> in Debian bug 191452.
* Improve how various "simple" host tools are built and invoked.lukem2003-11-161-4/+4
|
* Rework how MAKEVERBOSE operates:lukem2003-10-211-11/+6
| | | | | | | | | | * Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
* rework to use the newer _MKMSGCREATE (et al) macroslukem2003-10-191-5/+5
|
* Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)lukem2003-10-191-1/+11
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-072-13/+5
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Rework how dependency generation is performed:lukem2003-08-011-4/+3
| | | | | | | | | | | | | | | | | | | | | | * DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204. * To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx * If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES * Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS} * Deprecate the (short lived) DEPENDSRCS Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries. Tested with "make -j 8 distribution" and "make distribution".
* simplify and use ${DEPENDSRCS} as a target as appropriatelukem2003-07-311-15/+5
|
* Quote question mark.wiz2003-06-271-2/+2
|
* Hack is now BSD-licensed. Thanks to Andries Brouwer, Jay Fenlason andjsm2003-04-0280-214/+4751
| | | | CWI <http://www.cwi.nl/~aeb/games/hack/hack.html>. Via OpenBSD. Addresses part of PR bin/5850.
* .Nm does not need a dummy argument ("") before punctuation orwiz2003-02-251-2/+2
| | | for correct formatting of the SYNOPSIS any longer.
* fix confusion between east and west for y,u,b, and n.pooka2002-12-151-1/+1
| | | from Soren Jacobsen in misc/19397
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-6/+7
|