summaryrefslogtreecommitdiffstats
path: root/trek
Commit message (Collapse)AuthorAgeFilesLines
* Use __deadjoerg2011-08-291-5/+3
|
* document non-literal string formatschristos2011-08-161-1/+3
|
* use DBL_MIN from <float.h> instead of a hard coded small value (thatmrg2011-07-031-3/+4
| | | becomes zero for vax fp.)
* sprinkle staticdholland2009-08-1212-37/+39
|
* Remove description of -a option and optional log file name, sincedholland2009-05-251-8/+10
| | | | | | | neither has done anything in a long long time. Add previously undocumented -s/-f (slow vs. fast) options, although I question the utility thereof and suspect they should just be removed. Bump date (first time since 1993)
* sprintf -> snprintf.dholland2009-05-252-7/+9
|
* "abbreviation" has two Bs.dholland2009-05-255-20/+20
|
* Use random() instead of rand(), so we get something like randomdholland2009-05-253-20/+10
| | | | | | | | | numbers out. This changes the "tournament codes"; that is, the same code will give you a different game now from what it used to. (This is because the codes are basically random seeds.) I really really doubt anyone cares about this, especially since the tournament feature appears to be undocumented.
* Remove obviously botched test for "fast mode" based on terminal speed.dholland2009-05-251-8/+5
| | | | | Default to "fast mode" as ~nobody has a 300 baud terminal any more. ("Fast mode" apparently controls whether short-range scans are printed by default at certain times.)
* Use getopt to handle the remaining (all currently undocumented) options.dholland2009-05-251-15/+14
|
* Remove last traces of undocumented -p option (apparently related todholland2009-05-251-19/+2
| | | | process priority) and documented -a option, neither of which have done anything since CSRG days.
* Don't give special privileges to uid 13107.dholland2009-05-251-9/+2
|
* __attribute__((__noreturn__)) -> __deaddholland2009-05-251-5/+5
|
* Null for pointers, not 0.dholland2009-05-251-3/+4
|
* Fix score printing so columns line up.dholland2009-05-251-26/+37
|
* Abolish cgetc(). It contained one line of code, which was wrong.dholland2009-05-246-77/+35
| | | | Call getchar() directly, and handle EOF properly instead of looping (in some cases) or pretending that EOF is 0 (which it isn't).
* Remove unnecessary initialization that silenced a compiler warning in 1997.dholland2009-05-241-3/+3
|
* Sprinkle some blank lines for readability.dholland2009-05-241-2/+15
|
* Split up lines > 80 chars. Object files unchanged.dholland2009-05-2427-166/+280
|
* Don't use literal ^G's in string constants. Use \a.dholland2009-05-242-7/+7
|
* KNF: brace and comment placement. Object files identical.dholland2009-05-2443-734/+440
|
* whitespacedholland2009-05-241-6/+7
|
* KNF: fix formatting of preprocessor directivesdholland2009-05-2412-133/+133
|
* ANSIfy function declarations. No object file diffs except for two functionsdholland2009-05-2446-251/+187
| | | | whose K&R declaration didn't fully match the prototype (char vs. int) and the diff of the disassembly of those looks plausible.
* KNF. No change to .o file.dholland2009-05-241-7/+7
|
* Avoid hardcoded "too large" constant that caused FPE on the vax.christos2009-03-315-13/+19
| | | XXX: Should pullup to 5.0
* PR/39923: Valery Ushakov: trek(6) can spin, consuming 100% CPU on powerpcchristos2008-11-141-3/+6
| | | | On systems where char is unsigned the number of black holes can end up being very large (instead of negative).
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-281-2/+1
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* Build with WARNS=4.dholland2008-01-282-7/+8
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-1517-52/+52
|
* Coverity CID 1197: Don't pass -1 to close.christos2006-03-191-3/+4
|
* Coverity CID 1467: Elide static buffer overflow.christos2006-03-191-3/+3
|
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-3/+3
| | | Sort sections if necessary. Use more/better markup.
* Avoid arrays of incomplete types (required to build with GCC 4).jsm2005-02-152-5/+5
| | | Reviewed by <hubertf>.
* Remove uses of __P.jsm2004-01-278-90/+90
|
* Various typo fixes from Jonathon Gray via jmc@openbsd.wiz2003-11-171-2/+2
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0753-367/+155
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Rename a large chunk of the make(1) variables which refer to alukem2003-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
* Add ${MACROS} to ${ROFF} usage to make output readablepooka2003-01-051-2/+2
| | | from jbernard@mines.edu in misc/19685
* avoid buffer overrun. fix from openbsd.itojun2002-10-181-3/+3
| | | reported by Niels Heinen <niels.heinen@ubizen.com>
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-3/+3
|
* New sentences begin on new lines.wiz2002-09-261-2/+3
| | | Patch from Richard Elz, slightly improved by yours truly.
* sweep of errx/warnx, remove unnecessary trailing \ngrant2002-07-201-3/+3
|
* Correct spelling of "delimiter", and remove from ignored-errors lists.wiz2002-02-261-3/+3
|
* seperate -> separatewiz2001-07-222-5/+5
|
* receive, not recievewiz2001-06-122-5/+5
|
* Spell occurred correctly.simonb2001-04-251-3/+3
|
* Whitespace and/or punctuation fixes.wiz2001-04-021-7/+7
|
* fix redundant decls and nested externschristos2001-02-054-14/+14
|