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

Re: Checker-0.9.7 -- my changes, in case you're interested?




Hi.  I discovered one bug in the patch I gave you for ncurses.  Below is
the revised patch.

Sorry.

diff -wcr ./stubs/stubs-ncurses.c.orig ./stubs/stubs-ncurses.c
*** ./stubs/stubs-ncurses.c.orig	Wed Jan 21 14:39:54 1998
--- ./stubs/stubs-ncurses.c	Thu Jul  9 15:41:34 1998
***************
*** 31,36 ****
--- 31,37 ----
  #include "checker_api.h"
  #include "check-printf.h"
  
+ #if 0
  #define HAVE_beep
  #define HAVE_wrefresh
  #define HAVE_wmove
***************
*** 68,73 ****
--- 69,75 ----
  
  #undef HAVE_tgoto
  #undef HAVE_tputs
+ #endif
  
  #define CHECK_WIN(win)  stubs_chkr_check_addr (win, sizeof (WINDOW), CHKR_TW, "win")
  
***************
*** 277,283 ****
  chkr_stub_clearok (WINDOW * arg0, int arg1)
  {
    /* This function requires a stub */
!   stubs_chkr_check_addr (arg0, sizeof (WINDOW), CHKR_XX);
  #if USE_BI_JUMP
    __builtin_jump (clearok);
  #else
--- 279,285 ----
  chkr_stub_clearok (WINDOW * arg0, int arg1)
  {
    /* This function requires a stub */
!   stubs_chkr_check_addr (arg0, sizeof (WINDOW), CHKR_RW, "arg0");
  #if USE_BI_JUMP
    __builtin_jump (clearok);
  #else
***************
*** 1088,1105 ****
  int
  chkr_stub_printw (char * arg0, ... )
  {
    /* This function requires a stub */
!   stubs_chkr_check_addr (arg0, sizeof (char), CHKR_XX);
    /* This function must be handled by the user */
  #if USE_BI_JUMP
    __builtin_jump (printw);
  #else
!   return printw (arg0, );
!   {
!     int res;
!     res = printw (arg0, );
!     return res;
!   }
  #endif /* !USE_BI_JUMP */
  }
  #endif /* HAVE_printw */
--- 1090,1108 ----
  int
  chkr_stub_printw (char * arg0, ... )
  {
+   va_list ap;
+   char buf[BUFSIZ];
+ 
+   va_start(ap, arg0);
    /* This function requires a stub */
!   stubs_chkr_check_addr (arg0, sizeof (char), CHKR_RW, "arg0");
    /* This function must be handled by the user */
  #if USE_BI_JUMP
    __builtin_jump (printw);
  #else
!   vsprintf(buf, arg0, ap);
!   va_end(ap);
!   return addstr(buf);
  #endif /* !USE_BI_JUMP */
  }
  #endif /* HAVE_printw */
***************
*** 1583,1589 ****
  chkr_stub_wclrtobot (WINDOW * arg0)
  {
    /* This function requires a stub */
!   stubs_chkr_check_addr (arg0, sizeof (WINDOW), CHKR_XX);
  #if USE_BI_JUMP
    __builtin_jump (wclrtobot);
  #else
--- 1586,1592 ----
  chkr_stub_wclrtobot (WINDOW * arg0)
  {
    /* This function requires a stub */
!   stubs_chkr_check_addr (arg0, sizeof (WINDOW), CHKR_RO, "arg0");
  #if USE_BI_JUMP
    __builtin_jump (wclrtobot);
  #else






Why do you want this page removed?