From 350aac765d3e94494f9b3db3a16f3b09d454bd5b Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 3 Feb 2008 21:24:58 +0000 Subject: 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. --- larn/global.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'larn/global.c') diff --git a/larn/global.c b/larn/global.c index 82e1ef44..678ae639 100644 --- a/larn/global.c +++ b/larn/global.c @@ -1,4 +1,4 @@ -/* $NetBSD: global.c,v 1.10 2008/02/03 20:11:05 dholland Exp $ */ +/* $NetBSD: global.c,v 1.11 2008/02/03 21:24:58 dholland Exp $ */ /* * global.c Larn is copyrighted 1986 by Noah Morgan. @@ -23,7 +23,7 @@ */ #include #ifndef lint -__RCSID("$NetBSD: global.c,v 1.10 2008/02/03 20:11:05 dholland Exp $"); +__RCSID("$NetBSD: global.c,v 1.11 2008/02/03 21:24:58 dholland Exp $"); #endif /* not lint */ #include @@ -432,7 +432,7 @@ quit() strcpy(lastmonst, ""); lprcat("\n\nDo you really want to quit?"); while (1) { - i = lgetchar(); + i = ttgetch(); if (i == 'y') { died(300); return; @@ -463,7 +463,7 @@ more() lprcat("\n --- press "); standout("space"); lprcat(" to continue --- "); - while (lgetchar() != ' '); + while (ttgetch() != ' '); } /* @@ -830,7 +830,7 @@ getyn() int i; i = 0; while (i != 'y' && i != 'n' && i != '\33') - i = lgetchar(); + i = ttgetch(); return (i); } -- cgit v1.2.3