Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/window Remove #if __STDC__. De-__P() and ANSIfy, and...



details:   https://anonhg.NetBSD.org/src/rev/cdabb81c94d3
branches:  trunk
changeset: 532742:cdabb81c94d3
user:      wiz <wiz%NetBSD.org@localhost>
date:      Fri Jun 14 01:07:01 2002 +0000

description:
Remove #if __STDC__. De-__P() and ANSIfy, and fix a mismatching prototype
uncovered by this (p_assign).

diffstat:

 usr.bin/window/wwredrawwin.c |   8 ++----
 usr.bin/window/wwrint.c      |   6 ++--
 usr.bin/window/wwscroll.c    |  13 +++--------
 usr.bin/window/wwsize.c      |   8 ++----
 usr.bin/window/wwspawn.c     |   9 ++-----
 usr.bin/window/wwsuspend.c   |   6 ++--
 usr.bin/window/wwtty.c       |  25 +++++++---------------
 usr.bin/window/wwunframe.c   |   7 ++---
 usr.bin/window/wwupdate.c    |   7 ++---
 usr.bin/window/wwwrite.c     |   9 ++-----
 usr.bin/window/xx.c          |  47 ++++++++++++++++---------------------------
 usr.bin/window/xx.h          |  38 +++++++++++++++++-----------------
 usr.bin/window/xxflush.c     |  10 +++-----
 13 files changed, 77 insertions(+), 116 deletions(-)

diffs (truncated from 607 to 300 lines):

diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwredrawwin.c
--- a/usr.bin/window/wwredrawwin.c      Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwredrawwin.c      Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwredrawwin.c,v 1.5 1997/11/21 08:37:45 lukem Exp $    */
+/*     $NetBSD: wwredrawwin.c,v 1.6 2002/06/14 01:07:01 wiz Exp $      */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,16 +41,14 @@
 #if 0
 static char sccsid[] = "@(#)wwredrawwin.c      8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwredrawwin.c,v 1.5 1997/11/21 08:37:45 lukem Exp $");
+__RCSID("$NetBSD: wwredrawwin.c,v 1.6 2002/06/14 01:07:01 wiz Exp $");
 #endif
 #endif /* not lint */
 
 #include "ww.h"
 
 void
-wwredrawwin1(w, row1, row2, offset)
-       struct ww *w;
-       int row1, row2, offset;
+wwredrawwin1(struct ww *w, int row1, int row2, int offset)
 {
        int row;
        int col;
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwrint.c
--- a/usr.bin/window/wwrint.c   Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwrint.c   Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwrint.c,v 1.5 1997/11/21 08:37:47 lukem Exp $ */
+/*     $NetBSD: wwrint.c,v 1.6 2002/06/14 01:07:01 wiz Exp $   */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)wwrint.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwrint.c,v 1.5 1997/11/21 08:37:47 lukem Exp $");
+__RCSID("$NetBSD: wwrint.c,v 1.6 2002/06/14 01:07:01 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -60,7 +60,7 @@
  * It should be completely safe.
  */
 void
-wwrint()
+wwrint(void)
 {
        int n;
 
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwscroll.c
--- a/usr.bin/window/wwscroll.c Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwscroll.c Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwscroll.c,v 1.5 2000/07/03 02:51:41 matt Exp $        */
+/*     $NetBSD: wwscroll.c,v 1.6 2002/06/14 01:07:01 wiz Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)wwscroll.c 8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwscroll.c,v 1.5 2000/07/03 02:51:41 matt Exp $");
+__RCSID("$NetBSD: wwscroll.c,v 1.6 2002/06/14 01:07:01 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -52,9 +52,7 @@
 #include "xx.h"
 
 void
-wwscroll(w, n)
-       struct ww *w;
-       int n;
+wwscroll(struct ww *w, int n)
 {
        int dir;
        int top;
@@ -89,10 +87,7 @@
  * And don't redraw 'leaveit' lines.
  */
 int
-wwscroll1(w, row1, row2, dir, leaveit)
-       struct ww *w;
-       int row1, row2, dir;
-       int leaveit;
+wwscroll1(struct ww *w, int row1, int row2, int dir, int leaveit)
 {
        int i;
        int row1x, row2x;
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwsize.c
--- a/usr.bin/window/wwsize.c   Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwsize.c   Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwsize.c,v 1.6 1997/11/21 08:37:49 lukem Exp $ */
+/*     $NetBSD: wwsize.c,v 1.7 2002/06/14 01:07:01 wiz Exp $   */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)wwsize.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwsize.c,v 1.6 1997/11/21 08:37:49 lukem Exp $");
+__RCSID("$NetBSD: wwsize.c,v 1.7 2002/06/14 01:07:01 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -52,9 +52,7 @@
  * Resize a window.  Should be unattached.
  */
 int
-wwsize(w, nrow, ncol)
-       struct ww *w;
-       int nrow, ncol;
+wwsize(struct ww *w, int nrow, int ncol)
 {
        int i, j;
        int nline = 0;
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwspawn.c
--- a/usr.bin/window/wwspawn.c  Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwspawn.c  Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwspawn.c,v 1.6 1998/04/17 15:56:14 cgd Exp $  */
+/*     $NetBSD: wwspawn.c,v 1.7 2002/06/14 01:07:01 wiz Exp $  */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)wwspawn.c  8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwspawn.c,v 1.6 1998/04/17 15:56:14 cgd Exp $");
+__RCSID("$NetBSD: wwspawn.c,v 1.7 2002/06/14 01:07:01 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -54,10 +54,7 @@
  * So we have to be sneaky about error reporting.
  */
 int
-wwspawn(wp, file, argv)
-       struct ww *wp;
-       char *file;
-       char **argv;
+wwspawn(struct ww *wp, char *file, char **argv)
 {
        int pid;
        int ret;
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwsuspend.c
--- a/usr.bin/window/wwsuspend.c        Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwsuspend.c        Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwsuspend.c,v 1.4 1997/11/21 08:37:52 lukem Exp $      */
+/*     $NetBSD: wwsuspend.c,v 1.5 2002/06/14 01:07:01 wiz Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)wwsuspend.c        8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwsuspend.c,v 1.4 1997/11/21 08:37:52 lukem Exp $");
+__RCSID("$NetBSD: wwsuspend.c,v 1.5 2002/06/14 01:07:01 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -50,7 +50,7 @@
 #include "tt.h"
 
 void
-wwsuspend()
+wwsuspend(void)
 {
        sig_t oldsig;
 
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwtty.c
--- a/usr.bin/window/wwtty.c    Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwtty.c    Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwtty.c,v 1.5 1997/11/21 08:37:56 lukem Exp $  */
+/*     $NetBSD: wwtty.c,v 1.6 2002/06/14 01:07:02 wiz Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)wwtty.c    8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwtty.c,v 1.5 1997/11/21 08:37:56 lukem Exp $");
+__RCSID("$NetBSD: wwtty.c,v 1.6 2002/06/14 01:07:02 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -53,9 +53,7 @@
 #include "ww.h"
 
 int
-wwgettty(d, t)
-       int d;
-       struct ww_tty *t;
+wwgettty(int d, struct ww_tty *t)
 {
 #ifdef OLD_TTY
        if (ioctl(d, TIOCGETP, (char *)&t->ww_sgttyb) < 0)
@@ -84,9 +82,7 @@
  * it changes, to avoid unnecessary flushing of typeahead.
  */
 int
-wwsettty(d, t)
-       int d;
-       struct ww_tty *t;
+wwsettty(int d, struct ww_tty *t)
 {
 #ifdef OLD_TTY
        int i;
@@ -127,9 +123,7 @@
  */
 
 int
-wwgetttysize(d, r, c)
-       int d;
-       int *r, *c;
+wwgetttysize(int d, int *r, int *c)
 {
        struct winsize winsize;
 
@@ -145,8 +139,7 @@
 }
 
 int
-wwsetttysize(d, r, c)
-       int d, r, c;
+wwsetttysize(int d, int r, int c)
 {
        struct winsize winsize;
 
@@ -161,8 +154,7 @@
 }
 
 int
-wwstoptty(d)
-       int d;
+wwstoptty(int d)
 {
 #if !defined(OLD_TTY) && defined(TCOOFF)
        /* not guaranteed to work on the pty side */
@@ -178,8 +170,7 @@
 }
 
 int
-wwstarttty(d)
-       int d;
+wwstarttty(int d)
 {
 #if !defined(OLD_TTY) && defined(TCOON)
        /* not guaranteed to work on the pty side */
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwunframe.c
--- a/usr.bin/window/wwunframe.c        Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwunframe.c        Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwunframe.c,v 1.5 1997/11/21 08:37:58 lukem Exp $      */
+/*     $NetBSD: wwunframe.c,v 1.6 2002/06/14 01:07:02 wiz Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,15 +41,14 @@
 #if 0
 static char sccsid[] = "@(#)wwunframe.c        8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: wwunframe.c,v 1.5 1997/11/21 08:37:58 lukem Exp $");
+__RCSID("$NetBSD: wwunframe.c,v 1.6 2002/06/14 01:07:02 wiz Exp $");
 #endif
 #endif /* not lint */
 
 #include "ww.h"
 
 void
-wwunframe(w)
-       struct ww *w;
+wwunframe(struct ww *w)
 {
        int i;
 
diff -r 13cdf9d28851 -r cdabb81c94d3 usr.bin/window/wwupdate.c
--- a/usr.bin/window/wwupdate.c Fri Jun 14 01:07:00 2002 +0000
+++ b/usr.bin/window/wwupdate.c Fri Jun 14 01:07:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wwupdate.c,v 1.4 1997/11/21 08:37:59 lukem Exp $       */
+/*     $NetBSD: wwupdate.c,v 1.5 2002/06/14 01:07:02 wiz Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@



Home | Main Index | Thread Index | Old Index