BSD 4_3_Reno release
[unix-history] / usr / src / games / hack / hack.tty.c
index 07ff0c2..e167e96 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+#ifndef lint
+static char sccsid[] = "@(#)hack.tty.c 5.2 (Berkeley) 7/22/88";
+#endif /* not lint */
+
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* hack.tty.c - version 1.0.3 */
 /* With thanks to the people who sent code for SYSV - hpscdi!jon,
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* hack.tty.c - version 1.0.3 */
 /* With thanks to the people who sent code for SYSV - hpscdi!jon,
@@ -237,7 +258,7 @@ register int c;
 char *
 parse()
 {
 char *
 parse()
 {
-       static char inline[COLNO];
+       static char inputline[COLNO];
        register foo;
 
        flags.move = 1;
        register foo;
 
        flags.move = 1;
@@ -246,23 +267,23 @@ parse()
                multi = 10*multi+foo-'0';
        if(multi) {
                multi--;
                multi = 10*multi+foo-'0';
        if(multi) {
                multi--;
-               save_cm = inline;
+               save_cm = inputline;
        }
        }
-       inline[0] = foo;
-       inline[1] = 0;
+       inputline[0] = foo;
+       inputline[1] = 0;
        if(foo == 'f' || foo == 'F'){
        if(foo == 'f' || foo == 'F'){
-               inline[1] = getchar();
+               inputline[1] = getchar();
 #ifdef QUEST
 #ifdef QUEST
-               if(inline[1] == foo) inline[2] = getchar(); else
+               if(inputline[1] == foo) inputline[2] = getchar(); else
 #endif QUEST
 #endif QUEST
-               inline[2] = 0;
+               inputline[2] = 0;
        }
        if(foo == 'm' || foo == 'M'){
        }
        if(foo == 'm' || foo == 'M'){
-               inline[1] = getchar();
-               inline[2] = 0;
+               inputline[1] = getchar();
+               inputline[2] = 0;
        }
        clrlin();
        }
        clrlin();
-       return(inline);
+       return(inputline);
 }
 
 char
 }
 
 char