Current-Users archive

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

re: Build break - port amd64 - libcurses tests



this one actually builds and might work.


.mrg.

Index: curses_commands.c
===================================================================
RCS file: /cvsroot/src/tests/lib/libcurses/slave/curses_commands.c,v
retrieving revision 1.1
diff -p -r1.1 curses_commands.c
*** curses_commands.c   10 Apr 2011 09:55:10 -0000      1.1
--- curses_commands.c   11 Apr 2011 04:55:34 -0000
***************
*** 34,39 ****
--- 34,41 ----
  #include <stdlib.h>
  #include <string.h>
  #include <termios.h>
+ #include <stdarg.h>
+ 
  #include "slave.h"
  #include "curses_commands.h"
  
*************** cmd_vline(int nargs, char **args)
*** 4398,4403 ****
--- 4400,4418 ----
  }
  
  
+ 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;
+ }
+ 
  void
  cmd_vw_printw(int nargs, char **args)
  {
*************** cmd_vw_printw(int nargs, char **args)
*** 4413,4422 ****
        }
  
        report_count(1);
!       report_return(vw_printw(win, args[1], args[2]));
  }
  
  
  void
  cmd_vw_scanw(int nargs, char **args)
  {
--- 4428,4450 ----
        }
  
        report_count(1);
!       report_return(internal_vw_printw(win, args[1], args[2]));
  }
  
  
+ static int
+ internal_vw_scanw(WINDOW *win, char *arg1, ...)
+ {
+       va_list va;
+       int rv;
+ 
+       va_start(va, arg1);
+       rv = vw_scanw(win, arg1, va);
+       va_end(va);
+ 
+       return rv;
+ }
+ 
  void
  cmd_vw_scanw(int nargs, char **args)
  {
*************** cmd_vw_scanw(int nargs, char **args)
*** 4434,4440 ****
  
        /* XXX - call2 */
        report_count(2);
!       report_int(vw_scanw(win, args[1], string));
        report_status(string);
  }
  
--- 4462,4468 ----
  
        /* XXX - call2 */
        report_count(2);
!       report_int(internal_vw_scanw(win, args[1], string));
        report_status(string);
  }
  


Home | Main Index | Thread Index | Old Index