Current-Users archive

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

Re: Build break - port amd64 - libcurses tests



something like this might work?  i'm still getting to building it.


.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:45:20 -0000
*************** cmd_vline(int nargs, char **args)
*** 4398,4403 ****
--- 4398,4416 ----
  }
  
  
+ static int
+ internal_vw_printw(WINDOW *win, char *arg1, ...)
+ {
+       va_list va;
+       int rv;
+ 
+       va_start(va);
+       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)
  {
--- 4426,4448 ----
        }
  
        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);
+       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);
  }
  
--- 4460,4466 ----
  
        /* XXX - call2 */
        report_count(2);
!       report_int(internal_vw_scanw(win, args[1], string));
        report_status(string);
  }
  


Home | Main Index | Thread Index | Old Index