diff options
author | mrg <mrg@NetBSD.org> | 2010-03-22 05:10:19 +0000 |
---|---|---|
committer | mrg <mrg@NetBSD.org> | 2010-03-22 05:10:19 +0000 |
commit | f2b7fd780afc1e5af2361c412570c105cde1f297 (patch) | |
tree | c4cf4112e82ea1729c12d38868302771f4080762 /backgammon/backgammon | |
parent | 395c0105e88788b96a2f393d5828374e5e1083cc (diff) | |
download | bsdgames-darwin-f2b7fd780afc1e5af2361c412570c105cde1f297.tar.gz bsdgames-darwin-f2b7fd780afc1e5af2361c412570c105cde1f297.tar.zst bsdgames-darwin-f2b7fd780afc1e5af2361c412570c105cde1f297.zip |
rename text() to wrtext(), aligning it with most other output routines,
and avoiding a compile error on powerpc64.
XXX: this tries to make a ".text" symbol, which already exists...
Diffstat (limited to 'backgammon/backgammon')
-rw-r--r-- | backgammon/backgammon/main.c | 16 | ||||
-rw-r--r-- | backgammon/backgammon/text.c | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/backgammon/backgammon/main.c b/backgammon/backgammon/main.c index a68c67ad..97f10d0e 100644 --- a/backgammon/backgammon/main.c +++ b/backgammon/backgammon/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.27 2009/08/12 05:17:57 dholland Exp $ */ +/* $NetBSD: main.c,v 1.28 2010/03/22 05:10:19 mrg Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.27 2009/08/12 05:17:57 dholland Exp $"); +__RCSID("$NetBSD: main.c,v 1.28 2010/03/22 05:10:19 mrg Exp $"); #endif #endif /* not lint */ @@ -133,15 +133,15 @@ main(int argc __unused, char **argv) /* check if restored game and save flag for later */ if ((rfl = rflag) != 0) { - text(message); /* print message */ - text(contin); + wrtext(message); /* print message */ + wrtext(contin); wrboard(); /* print board */ /* if new game, pretend to be a non-restored game */ if (cturn == 0) rflag = 0; } else { rscore = wscore = 0; /* zero score */ - text(message); /* update message without pausing */ + wrtext(message); /* update message without pausing */ if (aflag) { /* print rules */ writel(rules); @@ -158,7 +158,7 @@ main(int argc __unused, char **argv) writel(need); if (yorn(0)) { /* print instructions */ clear(); - text(instr); + wrtext(instr); } } } @@ -223,7 +223,7 @@ main(int argc __unused, char **argv) } else if (!aflag) /* pause to read message */ - text(contin); + wrtext(contin); wrboard(); /* print board */ @@ -416,7 +416,7 @@ main(int argc __unused, char **argv) curmove(20, 0); else writec('\n'); - text(helpm); + wrtext(helpm); if (tflag) curmove(cturn == -1 ? 18 : 19, 0); diff --git a/backgammon/backgammon/text.c b/backgammon/backgammon/text.c index 2f16baac..b498fb72 100644 --- a/backgammon/backgammon/text.c +++ b/backgammon/backgammon/text.c @@ -1,4 +1,4 @@ -/* $NetBSD: text.c,v 1.8 2005/07/01 01:12:39 jmc Exp $ */ +/* $NetBSD: text.c,v 1.9 2010/03/22 05:10:19 mrg Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)text.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: text.c,v 1.8 2005/07/01 01:12:39 jmc Exp $"); +__RCSID("$NetBSD: text.c,v 1.9 2010/03/22 05:10:19 mrg Exp $"); #endif #endif /* not lint */ @@ -107,7 +107,7 @@ const char *const instr[] = { 0}; int -text(const char *const *t) +wrtext(const char *const *t) { int i; const char *s, *a; |