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

Diff for /src/usr.bin/make/error.c between version 1.9 and 1.10

version 1.9, 2001/09/05 22:32:41 version 1.10, 2002/02/19 19:39:38
Line 25 
Line 25 
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
 #ifdef __STDC__  
 #include <stdarg.h>  
 #else  
 #include <varargs.h>  
 #endif  
   
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
   #include <stdarg.h>
   
 #include "config.h"  #include "config.h"
 #include "defines.h"  #include "defines.h"
Line 50 
Line 46 
  */   */
 /* VARARGS */  /* VARARGS */
 void  void
 #ifdef __STDC__  
 Error(char *fmt, ...)  Error(char *fmt, ...)
 #else  
 Error(va_alist)  
         va_dcl  
 #endif  
 {  {
         va_list ap;          va_list ap;
 #ifdef __STDC__  
         va_start(ap, fmt);  
 #else  
         char *fmt;  
   
         va_start(ap);          va_start(ap, fmt);
         fmt = va_arg(ap, char *);  
 #endif  
         (void)vfprintf(stderr, fmt, ap);          (void)vfprintf(stderr, fmt, ap);
         va_end(ap);          va_end(ap);
         (void)fprintf(stderr, "\n");          (void)fprintf(stderr, "\n");
Line 81 
Line 66 
  */   */
 /* VARARGS */  /* VARARGS */
 void  void
 #ifdef __STDC__  
 Fatal(char *fmt, ...)  Fatal(char *fmt, ...)
 #else  
 Fatal(va_alist)  
         va_dcl  
 #endif  
 {  {
         va_list ap;          va_list ap;
 #ifdef __STDC__  
         va_start(ap, fmt);  
 #else  
         char *fmt;  
   
         va_start(ap);          va_start(ap, fmt);
         fmt = va_arg(ap, char *);  
 #endif  
         Job_Wait();          Job_Wait();
   
         (void)vfprintf(stderr, fmt, ap);          (void)vfprintf(stderr, fmt, ap);
Line 118 
Line 92 
  */   */
 /* VARARGS */  /* VARARGS */
 void  void
 #ifdef __STDC__  
 Punt(char *fmt, ...)  Punt(char *fmt, ...)
 #else  
 Punt(va_alist)  
         va_dcl  
 #endif  
 {  {
         va_list ap;          va_list ap;
 #ifdef __STDC__  
         va_start(ap, fmt);  
 #else  
         char *fmt;  
   
         va_start(ap);          va_start(ap, fmt);
         fmt = va_arg(ap, char *);  
 #endif  
   
         (void)fprintf(stderr, "make: ");          (void)fprintf(stderr, "make: ");
         (void)vfprintf(stderr, fmt, ap);          (void)vfprintf(stderr, fmt, ap);
         va_end(ap);          va_end(ap);
Line 186 
Line 148 
  */   */
 /* VARARGS */  /* VARARGS */
 static void  static void
 #ifdef __STDC__  
 ParseVErrorInternal(const char *cfname, unsigned long clineno, int type,  ParseVErrorInternal(const char *cfname, unsigned long clineno, int type,
         const char *fmt, va_list ap)          const char *fmt, va_list ap)
 #else  
 ParseVErrorInternal(va_alist)  
         va_dcl  
 #endif  
 {  {
         if (cfname)          if (cfname)
             (void)fprintf(stderr, "\"%s\", line %lu: ", cfname, clineno);              (void)fprintf(stderr, "\"%s\", line %lu: ", cfname, clineno);
Line 212 
Line 169 
  */   */
 /* VARARGS */  /* VARARGS */
 void  void
 #ifdef __STDC__  
 Parse_Error(int type, const char *fmt, ...)  Parse_Error(int type, const char *fmt, ...)
 #else  
 Parse_Error(va_alist)  
         va_dcl  
 #endif  
 {  {
         va_list ap;          va_list ap;
 #ifdef __STDC__  
         va_start(ap, fmt);  
 #else  
         int type;               /* Error type (PARSE_WARNING, PARSE_FATAL) */  
         char *fmt;  
   
         va_start(ap);          va_start(ap, fmt);
         type = va_arg(ap, int);  
         fmt = va_arg(ap, char *);  
 #endif  
   
         ParseVErrorInternal(Parse_Getfilename(), Parse_Getlineno(), type, fmt, ap);          ParseVErrorInternal(Parse_Getfilename(), Parse_Getlineno(), type, fmt, ap);
         va_end(va);          va_end(va);
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10