[BACK]Return to ctrace.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libcurses

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libcurses/ctrace.c between version 1.5 and 1.6

version 1.5, 1997/07/22 07:36:32 version 1.6, 1999/04/13 14:08:17
Line 40  static char sccsid[] = "@(#)ctrace.c 8.2
Line 40  static char sccsid[] = "@(#)ctrace.c 8.2
 #else  #else
 __RCSID("$NetBSD$");  __RCSID("$NetBSD$");
 #endif  #endif
 #endif /* not lint */  #endif                          /* not lint */
   
 #ifdef DEBUG  #ifdef DEBUG
 #include <stdio.h>  #include <stdio.h>
Line 57  __RCSID("$NetBSD$");
Line 57  __RCSID("$NetBSD$");
 #define TFILE   "__curses.out"  #define TFILE   "__curses.out"
 #endif  #endif
   
 static FILE *tracefp;                   /* Curses debugging file descriptor. */  static FILE *tracefp;           /* Curses debugging file descriptor. */
   
 void  void
 #ifdef __STDC__  #ifdef __STDC__
 __CTRACE(const char *fmt, ...)  __CTRACE(const char *fmt,...)
 #else  #else
 __CTRACE(fmt, va_alist)  __CTRACE(fmt, va_alist)
         char *fmt;          char   *fmt;
         va_dcl  va_dcl
 #endif  #endif
 {  {
         va_list ap;          va_list ap;
Line 78  __CTRACE(fmt, va_alist)
Line 78  __CTRACE(fmt, va_alist)
                 tracefp = fopen(TFILE, "w");                  tracefp = fopen(TFILE, "w");
         if (tracefp == NULL)          if (tracefp == NULL)
                 return;                  return;
         (void)vfprintf(tracefp, fmt, ap);          (void) vfprintf(tracefp, fmt, ap);
         va_end(ap);          va_end(ap);
         (void)fflush(tracefp);          (void) fflush(tracefp);
 }  }
 #endif  #endif

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>