1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1995, by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 /*
28  * ins_nws.c
29  *
30  * XCurses Library
31  *
32  * Copyright 1990, 1995 by Mortice Kern Systems Inc.  All rights reserved.
33  *
34  */
35 
36 #if M_RCSID
37 #ifndef lint
38 static char rcsID[] = "$Header: /rd/src/libc/xcurses/rcs/ins_nws.c 1.1 1995/06/15 15:15:08 ant Exp $";
39 #endif
40 #endif
41 
42 #include <private.h>
43 
44 int
45 (ins_nwstr)(wcs, n)
46 const wchar_t *wcs;
47 int n;
48 {
49 	int code;
50 
51 #ifdef M_CURSES_TRACE
52 	__m_trace("ins_nwstr(%p, %d)", wcs, n);
53 #endif
54 
55 	code = wins_nwstr(stdscr, wcs, n);
56 
57 	return __m_return_code("ins_nwstr", code);
58 }
59 
60 int
61 (mvins_nwstr)(y, x, wcs, n)
62 int y, x;
63 const wchar_t *wcs;
64 int n;
65 {
66 	int code;
67 
68 #ifdef M_CURSES_TRACE
69 	__m_trace("mvins_nwstr(%d, %d, %p, %d)", y, x, wcs, n);
70 #endif
71 
72 	if ((code = wmove(stdscr, y, x)) == OK)
73 		code = wins_nwstr(stdscr, wcs, n);
74 
75 	return __m_return_code("mvins_nwstr", code);
76 }
77 
78 int
79 (mvwins_nwstr)(w, y, x, wcs, n)
80 WINDOW *w;
81 int y, x;
82 const wchar_t *wcs;
83 int n;
84 {
85 	int code;
86 
87 #ifdef M_CURSES_TRACE
88 	__m_trace("mvwins_nwstr(%p, %d, %d, %p, %d)", w, y, x, wcs, n);
89 #endif
90 
91 	if ((code = wmove(w, y, x)) == OK)
92 		code = wins_nwstr(w, wcs, n);
93 
94 	return __m_return_code("mvwins_nwstr", code);
95 }
96 
97 int
98 (ins_wstr)(wcs)
99 const wchar_t *wcs;
100 {
101 	int code;
102 
103 #ifdef M_CURSES_TRACE
104 	__m_trace("ins_wstr(%p)", wcs);
105 #endif
106 
107 	code = wins_nwstr(stdscr, wcs, -1);
108 
109 	return __m_return_code("ins_wstr", code);
110 }
111 
112 int
113 (mvins_wstr)(y, x, wcs)
114 int y, x;
115 const wchar_t *wcs;
116 {
117 	int code;
118 
119 #ifdef M_CURSES_TRACE
120 	__m_trace("mvins_wstr(%d, %d, %p)", y, x, wcs);
121 #endif
122 
123 	if ((code = wmove(stdscr, y, x)) == OK)
124 		code = wins_nwstr(stdscr, wcs, -1);
125 
126 	return __m_return_code("mvins_wstr", code);
127 }
128 
129 int
130 (mvwins_wstr)(w, y, x, wcs)
131 WINDOW *w;
132 int y, x;
133 const wchar_t *wcs;
134 {
135 	int code;
136 
137 #ifdef M_CURSES_TRACE
138 	__m_trace("mvwins_wstr(%p, %d, %d, %p)", w, y, x, wcs);
139 #endif
140 
141 	if ((code = wmove(w, y, x)) == OK)
142 		code = wins_nwstr(w, wcs, -1);
143 
144 	return __m_return_code("mvwins_wstr", code);
145 }
146 
147 int
148 (wins_wstr)(w, wcs)
149 WINDOW *w;
150 const wchar_t *wcs;
151 {
152 	int code;
153 
154 #ifdef M_CURSES_TRACE
155 	__m_trace("wins_wstr(%p, %p)", w, wcs);
156 #endif
157 
158 	code = wins_nwstr(w, wcs, -1);
159 
160 	return __m_return_code("wins_wstr", code);
161 }
162 
163