summaryrefslogtreecommitdiffstats
path: root/larn
Commit message (Collapse)AuthorAgeFilesLines
* Userland now builds and uses terminfo instead of termcap.roy2010-02-032-91/+51
| | | OK: core@, jdc@
* Remove 3rd and 4th clauses in christos' license. OK christos.snj2009-10-211-6/+1
|
* sprinkle staticdholland2009-08-1212-169/+172
|
* Fix list markup. Use .Ic for key as suggested by wiz.joerg2009-03-111-15/+16
|
* Both legs of the conditional operator must return the same type.gmcgarry2008-08-291-2/+2
|
* Split some code from moreobj.c into action.c, as per larn 12.2.dholland2008-02-194-185/+332
|
* More assorted cleanup merged from larn 12.2.dholland2008-02-045-175/+78
|
* Once upon a time, larn 12.0 had functions named getchar() and putchar()dholland2008-02-039-89/+89
| | | | | | | that conflicted with libc. We changed them to lgetchar() and xputchar() respectively; larn 12.2 changed them to ttgetch() and ttputch(). After reflecting on this for a while I've decided to adopt the larn 12.2 names; not so much for compatibility but for consistency going forward. So, massrename them. Also make ttputch() static.
* Don't create files mode 666 in /var. (The code in question is not enableddholland2008-02-031-3/+3
| | | by default, though.)
* Larn does not need its own private versions of functions from <ctype.h>.dholland2008-02-037-96/+17
| | | Also, remove the function gettokstr(), which is not used. From larn 12.2.
* A long time ago, larn had code to prohibit playing it during work hours.dholland2008-02-033-89/+8
| | | | | | | | | Most of this code was removed ages ago, probably when dm(6) was invented; long before -r1.1 in the NetBSD tree in any event. Now remove the last fragment of it. Also nuke the file of US holidays 1987-1993 that we've been carrying around for no reason.
* Some assorted minor cleanups, from larn 12.2.dholland2008-02-034-26/+31
|
* Make a bunch of functions static. Merged from larn 12.2.dholland2008-02-038-68/+80
|
* Use mkstemp to make the temporary files used when you win.dholland2008-02-031-5/+5
|
* Since games are (now) setgid, not setuid, it is no longer necessary todholland2008-02-033-30/+30
| | | manipulate the effective uid, only the effective gid.
* Call srandom() as well as initializing the private random generatordholland2008-01-281-2/+3
| | | | (which is crappy and should be removed, but that's for another day...) This way e.g. fortune cookies no longer appear always in the same order.
* Larn now builds with WARNS=4.dholland2008-01-2821-306/+296
|
* Apparently the reason the printf arguments were all wrong is that larndholland2008-01-281-121/+11
| | | | had its own private and not-quite-standard implementation of printf. Remove it surgically with a chainsaw.
* Add gcc printf format checking, and fix the abundant problems this revealed.dholland2008-01-289-73/+76
| | | (It appears that someone sometime thought that you use %d to print a long.)
* Per PR 36185, OKed by martin@mouse2007-04-225-37/+52
|
* s/existance/existence/, from Zafer.wiz2006-11-241-2/+2
|
* sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.mrg2006-05-111-1/+8
|
* lrint() -> larn_lrint().mrg2006-05-113-11/+11
|
* end the argument list to exec*(3) with a NULL instead of a bare '0', asmrg2006-05-111-3/+3
| | | the latter isn't a pointer context in these varargs functions.
* It's "its."snj2006-04-241-3/+3
|
* Coverity CID 2073: Fix memory leak.christos2006-03-191-2/+4
|
* Coverity CID 999: Prevent NULL deref.christos2006-03-191-3/+4
|
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-6/+3
| | | Sort sections if necessary. Use more/better markup.
* Remove a incorrect semicolon at the end of an if().simonb2005-02-251-4/+4
| | | Magic levels now appear after extensive play testing!
* A preprocessor macro named "srand" was defined which seeded the randomperry2005-02-032-5/+5
| | | | | | | | number generator. Unfortunately, it conflicted with a function of the same defined in stdlib.h. This was masked by the __P hack, which is now being purged. I've renamed "srand" to "seedrand" to eliminate the conflict.
* Uppercase CPU, plural is CPUs.wiz2004-02-131-6/+6
|
* Remove uses of __P.jsm2004-01-277-267/+267
|
* Don't redefine NULLagc2003-10-211-1/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-076-40/+16
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Sy Aq -> Aq Sy so both work.wiz2003-07-011-2/+2
|
* .Nm does not need a dummy argument ("") before punctuation orwiz2003-02-251-2/+2
| | | for correct formatting of the SYNOPSIS any longer.
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-7/+7
|
* New sentences begin on new lines.wiz2002-09-261-7/+9
| | | Patch from Richard Elz, slightly improved by yours truly.
* __STDC__ is always defined on NetBSD.wiz2002-05-261-18/+2
|
* Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross2002-02-081-2/+2
|
* Update to the new t_agetstr() API.christos2001-11-021-13/+10
|
* va_{start,end} audit:wiz2001-09-241-2/+3
| | | | | | | | | | | | | Make sure that each va_start has one and only one matching va_end, especially in error cases. If the va_list is used multiple times, do multiple va_starts/va_ends. If a function gets va_list as argument, don't let it use va_end (since it's the callers responsibility). Improved by comments from enami and christos -- thanks! Heimdal/krb4/KAME changes already fed back, rest to follow. Inspired by, but not not based on, OpenBSD.
* - rename getchar to lgetchar to avoid conflicts with the stdio getcharchristos2001-02-0513-100/+104
| | | | - fix redundant decls and nested externs - use snprintf instead of sprintf
* remove unnecessary command name after .Nmlukem2000-11-071-3/+3
|
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-2/+3
|
* Fix coredump on start.blymn2000-05-241-3/+3
|
* Converted games to use the new termcap interface.blymn2000-05-222-21/+50
|
* update after change to return value of tputs() third argumentlukem1999-10-042-5/+6
|
* Fix .Bl/.El imbalance.erh1999-03-101-1/+2
|
* convert from NOxxx= to MKxxx=no.lukem1999-02-131-2/+4
| | | include <bsd.own.mk> if testing a MKxxx variable.