[BACK]Return to util.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/Attic/util.c between version 1.16 and 1.17

version 1.16, 2001/05/23 12:34:51 version 1.17, 2002/02/19 19:39:38
Line 35 
Line 35 
 #include "config.h"  #include "config.h"
 #include "defines.h"  #include "defines.h"
   
 #ifndef __STDC__  
 # ifndef const  
 #  define const  
 # endif  
 #endif  
   
 #ifdef sun  #ifdef sun
   
   
   
 extern int errno, sys_nerr;  extern int errno, sys_nerr;
 extern char *sys_errlist[];  extern char *sys_errlist[];
   
Line 375 
Line 367 
 #endif  #endif
   
 #ifndef BSD4_4  #ifndef BSD4_4
 #ifdef __STDC__  
 #include <stdarg.h>  #include <stdarg.h>
 #else  
 #include <varargs.h>  
 #endif  
   
 #ifdef _IOSTRG  #ifdef _IOSTRG
 #define STRFLAG (_IOSTRG|_IOWRT)        /* no _IOWRT: avoid stdio bug */  #define STRFLAG (_IOSTRG|_IOWRT)        /* no _IOWRT: avoid stdio bug */
Line 413 
Line 401 
 }  }
   
 int  int
 #ifdef __STDC__  
 snprintf(char *s, size_t n, const char *fmt, ...)  snprintf(char *s, size_t n, const char *fmt, ...)
 #else  
 snprintf(va_alist)  
         va_dcl  
 #endif  
 {  {
         va_list ap;          va_list ap;
         int rv;          int rv;
 #ifdef __STDC__  
         va_start(ap, fmt);  
 #else  
         char *s;  
         size_t n;  
         const char *fmt;  
   
         va_start(ap);          va_start(ap, fmt);
   
         s = va_arg(ap, char *);  
         n = va_arg(ap, size_t);  
         fmt = va_arg(ap, const char *);  
 #endif  
         rv = vsnprintf(s, n, fmt, ap);          rv = vsnprintf(s, n, fmt, ap);
         va_end(ap);          va_end(ap);
         return rv;          return rv;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17