Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack abolish references to index/rindex



details:   https://anonhg.NetBSD.org/src/rev/8c107a651b2b
branches:  trunk
changeset: 768029:8c107a651b2b
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Aug 06 19:47:54 2011 +0000

description:
abolish references to index/rindex

diffstat:

 games/hack/config.h |  6 ++----
 games/hack/hack.h   |  7 +------
 2 files changed, 3 insertions(+), 10 deletions(-)

diffs (41 lines):

diff -r e92c349cd460 -r 8c107a651b2b games/hack/config.h
--- a/games/hack/config.h       Sat Aug 06 19:32:58 2011 +0000
+++ b/games/hack/config.h       Sat Aug 06 19:47:54 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.8 2011/08/06 19:32:58 dholland Exp $      */
+/*     $NetBSD: config.h,v 1.9 2011/08/06 19:47:54 dholland Exp $      */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -75,9 +75,7 @@
  * <sys/wait.h>                <wait.h>
  * <sys/time.h>                <time.h>
  * <sgtty.h>           <termio.h>
- * Some routines are called differently
- * index               strchr
- * rindex              strrchr
+ *
  * Also, the code for suspend and various ioctls is only given for BSD4.2
  * (I do not have access to a SYSV system.)
  */
diff -r e92c349cd460 -r 8c107a651b2b games/hack/hack.h
--- a/games/hack/hack.h Sat Aug 06 19:32:58 2011 +0000
+++ b/games/hack/hack.h Sat Aug 06 19:47:54 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.h,v 1.14 2011/07/02 02:10:33 mrg Exp $    */
+/*     $NetBSD: hack.h,v 1.15 2011/08/06 19:47:54 dholland Exp $       */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -69,11 +69,6 @@
 #include <string.h>
 #include <sys/time.h>
 
-#ifndef BSD
-#define        index   strchr
-#define        rindex  strrchr
-#endif /* BSD */
-
 #define        Null(type)      ((struct type *) 0)
 
 #include       "def.objclass.h"



Home | Main Index | Thread Index | Old Index