Source-Changes-D archive

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

re: CVS commit: src/tests/lib/libcurses/slave



> On Mon, 11 Apr 2011, Brett Lymn wrote:
> >Modified Files:
> >     src/tests/lib/libcurses/slave: curses_commands.c
> > 
> >+static int
> >+internal_vw_printw(WINDOW *win, char *arg1, ...)
> >+{
> >+    va_list va;
> >+    int rv;
> >+
> >+    va_start(va, arg1);
> >+    rv = vw_printw(win, arg1, va);
> >+    va_end(va);
> >+
> >+    return rv;
> >+}
> 
> This code looks identical to that in wprintw().  Why does it need to
> be duplicated under another name?

well, the test is about testing vw_printw() directly, not
wprintw().


.mrg.


Home | Main Index | Thread Index | Old Index