Home | History | Annotate | Download | only in larn
History log of /src/games/larn/io.c
RevisionDateAuthorComments
 1.31  26-Mar-2024  andvar Fix header comment to align text using 8 space tabs.
 1.30  23-Mar-2024  andvar Attempt to fix descriptions of the routines in the initial comment block.

Something likely went wrong with copying the original text, causing
missing letters, broken indentation and formatting.
 1.29  02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.28  10-Jan-2017  christos need time.h for time(), got side-loaded before from <fcntl.h> via <sys/stat.h>
 1.27  19-Jun-2012  dholland branches: 1.27.14;
WARNS=5
 1.26  03-Oct-2011  roy branches: 1.26.2;
Use tiparm instead of vtparm.
 1.25  03-Feb-2010  roy Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.24  12-Aug-2009  dholland sprinkle static
 1.23  03-Feb-2008  dholland Once upon a time, larn 12.0 had functions named getchar() and putchar()
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.
 1.22  03-Feb-2008  dholland Larn does not need its own private versions of functions from <ctype.h>.
Also, remove the function gettokstr(), which is not used. From larn 12.2.
 1.21  03-Feb-2008  dholland Make a bunch of functions static. Merged from larn 12.2.
 1.20  28-Jan-2008  dholland Call srandom() as well as initializing the private random generator
(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.
 1.19  28-Jan-2008  dholland Larn now builds with WARNS=4.
 1.18  28-Jan-2008  dholland Apparently the reason the printf arguments were all wrong is that larn
had its own private and not-quite-standard implementation of printf.
Remove it surgically with a chainsaw.
 1.17  22-Apr-2007  mouse branches: 1.17.4;
Per PR 36185, OKed by martin@
 1.16  11-May-2006  mrg lrint() -> larn_lrint().
 1.15  03-Feb-2005  perry A preprocessor macro named "srand" was defined which seeded the random
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.
 1.14  26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.13  02-Nov-2001  christos Update to the new t_agetstr() API.
 1.12  24-Sep-2001  wiz va_{start,end} audit:
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.
 1.11  05-Feb-2001  christos - rename getchar to lgetchar to avoid conflicts with the stdio getchar
- fix redundant decls and nested externs
- use snprintf instead of sprintf
 1.10  24-May-2000  blymn Fix coredump on start.
 1.9  22-May-2000  blymn Converted games to use the new termcap interface.
 1.8  04-Oct-1999  lukem update after change to return value of tputs() third argument
 1.7  18-Oct-1997  christos branches: 1.7.6;
Tons of changes; re-indent, use termios, fix warnings, add prototypes...
Games is almost clean; only hack is left...
 1.6  17-May-1997  pk NULL => 0 (Arne Juul; PR#3629)
 1.5  15-Aug-1996  mrg print more informative error message. from kstailey (PR#2699)
 1.4  24-Apr-1995  cgd Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
 1.3  23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.2  02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.6.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.17.4.1  23-Mar-2008  matt sync with HEAD
 1.26.2.1  30-Oct-2012  yamt sync with head
 1.27.14.1  20-Mar-2017  pgoyette Sync with HEAD

RSS XML Feed