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 tests/libcurses: remove redundant ...
details: https://anonhg.NetBSD.org/src/rev/754b1579a35c
branches: trunk
changeset: 952306:754b1579a35c
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Feb 12 14:05:57 2021 +0000
description:
tests/libcurses: remove redundant comments
There is nothing surprising about call2, call3 or call4.
diffstat:
tests/lib/libcurses/slave/curses_commands.c | 46 ++++++----------------------
1 files changed, 10 insertions(+), 36 deletions(-)
diffs (298 lines):
diff -r 35f35b09b8f3 -r 754b1579a35c tests/lib/libcurses/slave/curses_commands.c
--- a/tests/lib/libcurses/slave/curses_commands.c Fri Feb 12 12:58:52 2021 +0000
+++ b/tests/lib/libcurses/slave/curses_commands.c Fri Feb 12 14:05:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curses_commands.c,v 1.15 2021/02/12 12:58:52 rillig Exp $ */
+/* $NetBSD: curses_commands.c,v 1.16 2021/02/12 14:05:57 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -218,7 +218,6 @@
retval = attr_get(&attrs, &colours, NULL);
- /* XXXX - call3 */
report_count(3);
report_return(retval);
report_int(attrs);
@@ -442,7 +441,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_return(getnstr(string, limit));
report_status(string);
@@ -457,7 +456,6 @@
ARGC(0);
- /* XXX call2 */
report_count(2);
report_return(getstr(string));
report_status(string);
@@ -487,7 +485,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_return(inchnstr(string, limit));
report_nstr(string);
@@ -502,7 +500,6 @@
ARGC(0);
- /* XXX call2 */
report_count(2);
report_return(inchstr(string));
report_nstr(string);
@@ -522,7 +519,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_int(innstr(string, limit));
report_status(string);
@@ -569,7 +566,6 @@
ARGC(0);
- /* XXX call2 */
report_count(2);
report_return(instr(string));
report_status(string);
@@ -818,7 +814,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_return(mvgetnstr(y, x, string, count));
report_status(string);
@@ -835,7 +831,6 @@
ARG_INT(0, y);
ARG_INT(1, x);
- /* XXX call2 */
report_count(2);
report_return(mvgetstr(y, x, string));
report_status(string);
@@ -869,7 +864,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_return(mvinchnstr(y, x, string, count));
report_nstr(string);
@@ -886,7 +881,6 @@
ARG_INT(0, y);
ARG_INT(1, x);
- /* XXX call2 */
report_count(2);
report_return(mvinchstr(y, x, string));
report_nstr(string);
@@ -908,7 +902,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_int(mvinnstr(y, x, string, count));
report_status(string);
@@ -1072,7 +1066,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_return(mvwgetnstr(win, y, x, string, count));
report_status(string);
@@ -1090,7 +1084,6 @@
ARG_INT(1, y);
ARG_INT(2, x);
- /* XXX - call2 */
report_count(2);
report_return(mvwgetstr(win, y, x, string));
report_status(string);
@@ -1214,7 +1207,6 @@
if (set_short(args[0], &colour) != 0)
return;
- /* XXX - call4 */
report_count(4);
report_return(color_content(colour, &red, &green, &blue));
report_int(red);
@@ -1429,7 +1421,6 @@
ARGC(1);
- /* XXX - call2 */
report_count(2);
report_status(fullname(args[0], string));
report_status(string);
@@ -1967,7 +1958,6 @@
ARG_INT(0, y);
ARG_INT(1, x);
- /* XXX - call2 */
report_count(2);
report_return(mvscanw(y, x, args[2], &string));
report_status(string);
@@ -2047,7 +2037,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_return(mvwinchnstr(win, y, x, string, count));
report_nstr(string);
@@ -2065,7 +2055,6 @@
ARG_INT(1, y);
ARG_INT(2, x);
- /* XXX call2 */
report_count(2);
report_return(mvwinchstr(win, y, x, string));
report_nstr(string);
@@ -2078,7 +2067,6 @@
char *string;
ARGC(4);
-
ARG_WINDOW(0, win);
ARG_INT(1, y);
ARG_INT(2, x);
@@ -2089,7 +2077,7 @@
report_error("MALLOC_FAILED");
return;
}
- /* XXX call2 */
+
report_count(2);
report_int(mvwinnstr(win, y, x, string, count));
report_status(string);
@@ -2107,7 +2095,6 @@
ARG_INT(1, y);
ARG_INT(2, x);
- /* XXX call2 */
report_count(2);
report_return(mvwinstr(win, y, x, string));
report_status(string);
@@ -2137,7 +2124,6 @@
ARG_INT(1, y);
ARG_INT(2, x);
- /* XXX - call2 */
report_count(2);
report_int(mvwscanw(win, y, x, args[3], &string));
report_status(string);
@@ -2332,7 +2318,6 @@
if (set_short(args[0], &pair) != 0)
return;
- /* XXX - call3 */
report_count(3);
report_return(pair_content(pair, &fore, &back));
report_int(fore);
@@ -2386,7 +2371,6 @@
report_count(1);
report_return(prefresh(pad, pbeg_y, pbeg_x, sbeg_y, sbeg_x, smax_y,
smax_x));
-
}
@@ -2510,7 +2494,6 @@
ARGC(0);
- /* XXX call2 */
report_count(2);
report_return(scanw("%s", string));
report_status(string);
@@ -2749,7 +2732,6 @@
ARGC(2);
ARG_WINDOW(0, win);
- /* XXX - call2 */
report_count(2);
report_int(internal_vw_scanw(win, args[1], string));
report_status(string);
@@ -2827,7 +2809,6 @@
ARGC(1);
ARG_WINDOW(0, win);
- /* XXX - call3 */
report_count(3);
report_return(wattr_get(win, &attr, &pair, NULL));
report_int(attr);
@@ -3065,7 +3046,6 @@
ARG_WINDOW(0, win);
ARG_INT(1, count);
- /* XXX - call2 */
report_count(2);
report_return(wgetnstr(win, string, count));
report_status(string);
@@ -3121,7 +3101,6 @@
ARG_WINDOW(0, win);
ARG_INT(1, count);
- /* XXX - call2 */
report_count(2);
report_return(winchnstr(win, string, count));
report_nstr(string);
@@ -3136,7 +3115,6 @@
ARGC(1);
ARG_WINDOW(0, win);
- /* XXX - call2 */
report_count(2);
report_return(winchstr(win, string));
report_nstr(string);
@@ -3152,7 +3130,6 @@
ARG_WINDOW(0, win);
ARG_INT(1, count);
- /* XXX - call2 */
report_count(2);
report_int(winnstr(win, string, count));
report_status(string);
@@ -3202,7 +3179,6 @@
ARGC(1);
ARG_WINDOW(0, win);
- /* XXX - call2 */
report_count(2);
report_return(winstr(win, string));
report_status(string);
@@ -4561,7 +4537,6 @@
ARGC(0);
- /* XXX - call2 */
report_count(2);
report_return(erasewchar(&ch));
report_wchar(ch);
@@ -4575,7 +4550,6 @@
ARGC(0);
- /* XXX - call2 */
report_count(2);
report_return(killwchar(&ch));
report_wchar(ch);
Home |
Main Index |
Thread Index |
Old Index