Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses mvwins*(WINDOW *win, ...) functions - call win...



details:   https://anonhg.NetBSD.org/src/rev/075608672ddb
branches:  trunk
changeset: 1011701:075608672ddb
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Jul 06 22:46:50 2020 +0000

description:
mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr.
>From Naman Jain in PR lib/55460.

diffstat:

 lib/libcurses/ins_wch.c  |  6 +++---
 lib/libcurses/ins_wstr.c |  8 ++++----
 lib/libcurses/insch.c    |  6 +++---
 lib/libcurses/insstr.c   |  8 ++++----
 4 files changed, 14 insertions(+), 14 deletions(-)

diffs (126 lines):

diff -r fe85e53ae6eb -r 075608672ddb lib/libcurses/ins_wch.c
--- a/lib/libcurses/ins_wch.c   Mon Jul 06 22:32:22 2020 +0000
+++ b/lib/libcurses/ins_wch.c   Mon Jul 06 22:46:50 2020 +0000
@@ -1,4 +1,4 @@
-/*   $NetBSD: ins_wch.c,v 1.14 2019/06/09 07:40:14 blymn Exp $ */
+/*   $NetBSD: ins_wch.c,v 1.15 2020/07/06 22:46:50 uwe Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ins_wch.c,v 1.14 2019/06/09 07:40:14 blymn Exp $");
+__RCSID("$NetBSD: ins_wch.c,v 1.15 2020/07/06 22:46:50 uwe Exp $");
 #endif                                           /* not lint */
 
 #include <string.h>
@@ -75,7 +75,7 @@
        if (wmove(win, y, x) == ERR)
                return ERR;
 
-       return wins_wch(stdscr, wch);
+       return wins_wch(win, wch);
 }
 
 /*
diff -r fe85e53ae6eb -r 075608672ddb lib/libcurses/ins_wstr.c
--- a/lib/libcurses/ins_wstr.c  Mon Jul 06 22:32:22 2020 +0000
+++ b/lib/libcurses/ins_wstr.c  Mon Jul 06 22:46:50 2020 +0000
@@ -1,4 +1,4 @@
-/*   $NetBSD: ins_wstr.c,v 1.14 2019/06/09 07:40:14 blymn Exp $ */
+/*   $NetBSD: ins_wstr.c,v 1.15 2020/07/06 22:46:50 uwe Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ins_wstr.c,v 1.14 2019/06/09 07:40:14 blymn Exp $");
+__RCSID("$NetBSD: ins_wstr.c,v 1.15 2020/07/06 22:46:50 uwe Exp $");
 #endif                                           /* not lint */
 
 #include <string.h>
@@ -96,7 +96,7 @@
        if (wmove(win, y, x) == ERR)
                return ERR;
 
-       return wins_wstr(stdscr, wstr);
+       return wins_wstr(win, wstr);
 }
 
 /*
@@ -109,7 +109,7 @@
        if (wmove(win, y, x) == ERR)
                return ERR;
 
-       return wins_nwstr(stdscr, wstr, n);
+       return wins_nwstr(win, wstr, n);
 }
 
 
diff -r fe85e53ae6eb -r 075608672ddb lib/libcurses/insch.c
--- a/lib/libcurses/insch.c     Mon Jul 06 22:32:22 2020 +0000
+++ b/lib/libcurses/insch.c     Mon Jul 06 22:46:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: insch.c,v 1.25 2019/06/09 07:40:14 blymn Exp $ */
+/*     $NetBSD: insch.c,v 1.26 2020/07/06 22:46:50 uwe Exp $   */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)insch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: insch.c,v 1.25 2019/06/09 07:40:14 blymn Exp $");
+__RCSID("$NetBSD: insch.c,v 1.26 2020/07/06 22:46:50 uwe Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -79,7 +79,7 @@
        if (wmove(win, y, x) == ERR)
                return ERR;
 
-       return winsch(stdscr, ch);
+       return winsch(win, ch);
 }
 
 #endif
diff -r fe85e53ae6eb -r 075608672ddb lib/libcurses/insstr.c
--- a/lib/libcurses/insstr.c    Mon Jul 06 22:32:22 2020 +0000
+++ b/lib/libcurses/insstr.c    Mon Jul 06 22:46:50 2020 +0000
@@ -1,4 +1,4 @@
-/*   $NetBSD: insstr.c,v 1.7 2019/06/09 07:40:14 blymn Exp $ */
+/*   $NetBSD: insstr.c,v 1.8 2020/07/06 22:46:50 uwe Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: insstr.c,v 1.7 2019/06/09 07:40:14 blymn Exp $");
+__RCSID("$NetBSD: insstr.c,v 1.8 2020/07/06 22:46:50 uwe Exp $");
 #endif                                           /* not lint */
 
 #include <string.h>
@@ -103,7 +103,7 @@
        if (wmove(win, y, x) == ERR)
                return ERR;
 
-       return winsstr(stdscr, str);
+       return winsstr(win, str);
 }
 
 /*
@@ -117,7 +117,7 @@
        if (wmove(win, y, x) == ERR)
                return ERR;
 
-       return winsnstr(stdscr, str, n);
+       return winsnstr(win, str, n);
 }
 
 #endif



Home | Main Index | Thread Index | Old Index