summaryrefslogtreecommitdiffstats
path: root/larn/io.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-18/+18
|
* need time.h for time(), got side-loaded before from <fcntl.h> via <sys/stat.h>christos2017-01-101-2/+3
|
* WARNS=5dholland2012-06-191-44/+31
|
* Use tiparm instead of vtparm.roy2011-10-031-7/+7
|
* Userland now builds and uses terminfo instead of termcap.roy2010-02-031-88/+48
| | | OK: core@, jdc@
* sprinkle staticdholland2009-08-121-4/+4
|
* Once upon a time, larn 12.0 had functions named getchar() and putchar()dholland2008-02-031-26/+27
| | | | | | | 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.
* Larn does not need its own private versions of functions from <ctype.h>.dholland2008-02-031-2/+3
| | | Also, remove the function gettokstr(), which is not used. From larn 12.2.
* Make a bunch of functions static. Merged from larn 12.2.dholland2008-02-031-3/+5
|
* 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-281-43/+47
|
* 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.
* Per PR 36185, OKed by martin@mouse2007-04-221-2/+3
|
* lrint() -> larn_lrint().mrg2006-05-111-4/+4
|
* A preprocessor macro named "srand" was defined which seeded the randomperry2005-02-031-3/+3
| | | | | | | | 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.
* __STDC__ is always defined on NetBSD.wiz2002-05-261-18/+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-051-5/+5
| | | | - fix redundant decls and nested externs - use snprintf instead of sprintf
* Fix coredump on start.blymn2000-05-241-3/+3
|
* Converted games to use the new termcap interface.blymn2000-05-221-19/+47
|
* update after change to return value of tputs() third argumentlukem1999-10-041-3/+4
|
* Tons of changes; re-indent, use termios, fix warnings, add prototypes...christos1997-10-181-593/+803
| | | Games is almost clean; only hack is left...
* NULL => 0 (Arne Juul; PR#3629)pk1997-05-171-6/+6
|
* print more informative error message. from kstailey (PR#2699)mrg1996-08-151-2/+5
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-6/+7
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* merge with Lite, new RCS id conventions, etc.cgd1995-03-231-1/+1
|
* Add RCS identifiers, remove some completely useless RCS logs and patchkitmycroft1993-08-021-0/+4
| | | headers, and a few other insignificant changes.
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+915