Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/slave Start supporting wide char tests.



details:   https://anonhg.NetBSD.org/src/rev/a49ccaa5079b
branches:  trunk
changeset: 451512:a49ccaa5079b
user:      blymn <blymn%NetBSD.org@localhost>
date:      Sun May 26 07:47:37 2019 +0000

description:
Start supporting wide char tests.

diffstat:

 tests/lib/libcurses/slave/curses_commands.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 2b0122f867a0 -r a49ccaa5079b tests/lib/libcurses/slave/curses_commands.c
--- a/tests/lib/libcurses/slave/curses_commands.c       Sun May 26 07:28:14 2019 +0000
+++ b/tests/lib/libcurses/slave/curses_commands.c       Sun May 26 07:47:37 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses_commands.c,v 1.8 2019/04/26 02:46:00 blymn Exp $        */
+/*     $NetBSD: curses_commands.c,v 1.9 2019/05/26 07:47:37 blymn Exp $        */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -6143,11 +6143,15 @@
 void
 cmd_add_wch(int nargs, char **args)
 {
-       if (check_arg_count(nargs, 1) == 1)
-               return;
-
-       report_count(1);
-       report_error("UNSUPPORTED");
+       cchar_t *ch;
+
+       if (check_arg_count(nargs, 1) == 1)
+               return;
+
+       ch = (cchar_t *) args[0];
+
+       report_count(1);
+       report_return(add_wch(ch));
 }
 
 



Home | Main Index | Thread Index | Old Index