]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - rogue/curses.c
constify, per PR 6148
[bsdgames-darwin.git] / rogue / curses.c
index 33ce4dcc558729968918553fe49059b2b9c312c6..0f160894e4e043a42cc24726fe33ae72991f0c83 100644 (file)
@@ -1,6 +1,8 @@
+/*     $NetBSD: curses.c,v 1.4 1997/10/12 11:45:01 lukem Exp $ */
+
 /*
- * Copyright (c) 1988 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1988, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by
  * Timothy C. Stoehr.
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
-/*static char sccsid[] = "from: @(#)curses.c   5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: curses.c,v 1.2 1993/08/01 18:52:32 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)curses.c   8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: curses.c,v 1.4 1997/10/12 11:45:01 lukem Exp $");
+#endif
 #endif /* not lint */
 
 /*
@@ -167,7 +173,7 @@ char *str;
 }
 
 addch(ch)
-register int ch;
+       int ch;
 {
        short row, col;
 
@@ -192,7 +198,7 @@ int ch;
 
 refresh()
 {
-       register i, j, line;
+       int i, j, line;
        short old_row, old_col, first_row;
 
        if (screen_dirty) {
@@ -302,7 +308,7 @@ nonl()
 
 clear_buffers()
 {
-       register i, j;
+       int i, j;
 
        screen_dirty = 0;
 
@@ -316,7 +322,7 @@ clear_buffers()
 }
 
 put_char_at(row, col, ch)
-register row, col, ch;
+       int row, col, ch;
 {
        put_cursor(row, col);
        put_st_char(ch);
@@ -325,9 +331,9 @@ register row, col, ch;
 }
 
 put_cursor(row, col)
-register row, col;
+       int  row, col;
 {
-       register i, rdif, cdif;
+       int i, rdif, cdif;
        short ch, t;
 
        rdif = (row > cur_row) ? row - cur_row : cur_row - row;
@@ -379,7 +385,7 @@ register row, col;
 }
 
 put_st_char(ch)
-register ch;
+       int ch;
 {
        if ((ch & ST_MASK) && (!term_stand_out)) {
                ch &= ~ST_MASK;
@@ -692,4 +698,4 @@ tc_cmget()
        cm_end[j] = 0;
 }
 
-#endif
+#endif /* CURSES */