summaryrefslogtreecommitdiffstats
path: root/hack
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
|