mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr.

From Naman Jain in PR lib/55460.
This commit is contained in:
uwe 2020-07-06 22:46:50 +00:00
parent 30c3dcd174
commit f6dea36d0e
4 changed files with 14 additions and 14 deletions

View File

@ -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 @@ mvwins_wch(WINDOW *win, int y, int x, const cchar_t *wch)
if (wmove(win, y, x) == ERR)
return ERR;
return wins_wch(stdscr, wch);
return wins_wch(win, wch);
}
/*

View File

@ -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 @@ mvwins_wstr(WINDOW *win, int y, int x, const wchar_t *wstr)
if (wmove(win, y, x) == ERR)
return ERR;
return wins_wstr(stdscr, wstr);
return wins_wstr(win, wstr);
}
/*
@ -109,7 +109,7 @@ mvwins_nwstr(WINDOW *win, int y, int x, const wchar_t *wstr, int n)
if (wmove(win, y, x) == ERR)
return ERR;
return wins_nwstr(stdscr, wstr, n);
return wins_nwstr(win, wstr, n);
}

View File

@ -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 @@ mvwinsch(WINDOW *win, int y, int x, chtype ch)
if (wmove(win, y, x) == ERR)
return ERR;
return winsch(stdscr, ch);
return winsch(win, ch);
}
#endif

View File

@ -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 @@ mvwinsstr(WINDOW *win, int y, int x, const char *str)
if (wmove(win, y, x) == ERR)
return ERR;
return winsstr(stdscr, str);
return winsstr(win, str);
}
/*
@ -117,7 +117,7 @@ mvwinsnstr(WINDOW *win, int y, int x, const char *str, int n)
if (wmove(win, y, x) == ERR)
return ERR;
return winsnstr(stdscr, str, n);
return winsnstr(win, str, n);
}
#endif