[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.24 and 1.25

version 1.24, 2012/10/18 17:54:43 version 1.25, 2015/09/27 16:58:16
Line 46 
Line 46 
   
 int fatal_errors = 0;  int fatal_errors = 0;
   
 static void ParseVErrorInternal(const Location *, int, const char *, va_list);  static void ParseVErrorInternal(const Location *, int, const char *, va_list)
                           __attribute__((__format__ (printf, 3, 0)));
 /*-  /*-
  * Error --   * Error --
  *      Print an error message given its format.   *      Print an error message given its format.
  */   */
 /* VARARGS */  
 void  void
 Error(char *fmt, ...)  Error(const char *fmt, ...)
 {  {
         va_list ap;          va_list ap;
   
Line 71 
Line 71 
  * Side Effects:   * Side Effects:
  *      The program exits   *      The program exits
  */   */
 /* VARARGS */  
 void  void
 Fatal(char *fmt, ...)  Fatal(const char *fmt, ...)
 {  {
         va_list ap;          va_list ap;
   
Line 97 
Line 96 
  * Side Effects:   * Side Effects:
  *      All children are killed indiscriminately and the program Lib_Exits   *      All children are killed indiscriminately and the program Lib_Exits
  */   */
 /* VARARGS */  
 void  void
 Punt(char *fmt, ...)  Punt(const char *fmt, ...)
 {  {
         if (fmt) {          if (fmt) {
                 va_list ap;                  va_list ap;
Line 144 
Line 142 
  * Side Effects:   * Side Effects:
  *      "fatals" is incremented if the level is PARSE_FATAL.   *      "fatals" is incremented if the level is PARSE_FATAL.
  */   */
 /* VARARGS */  
 static void  static void
 ParseVErrorInternal(const Location *origin, int type, const char *fmt,  ParseVErrorInternal(const Location *origin, int type, const char *fmt,
     va_list ap)      va_list ap)
Line 171 
Line 168 
  *      External interface to ParseVErrorInternal; uses the default filename   *      External interface to ParseVErrorInternal; uses the default filename
  *      Line number.   *      Line number.
  */   */
 /* VARARGS */  
 void  void
 Parse_Error(int type, const char *fmt, ...)  Parse_Error(int type, const char *fmt, ...)
 {  {

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25