[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.4 and 1.5

version 1.4, 2000/10/13 08:29:20 version 1.5, 2001/05/03 13:41:04
Line 1 
Line 1 
   /* $OpenPackages$ */
 /* $OpenBSD$ */  /* $OpenBSD$ */
   
 /*  /*
Line 47 
Line 48 
 #include <unistd.h>  #include <unistd.h>
 #include "error.h"  #include "error.h"
   
 static void enomem __P((size_t));  #ifdef __GNUC__
   #define UNUSED  __attribute__((unused))
   #else
   #define UNUSED
   #endif
   
   static void enomem(size_t);
   
 /*  /*
  * emalloc --   * emalloc --
  *      malloc, but die on error.   *      malloc, but die on error.
Line 112 
Line 119 
 void *  void *
 hash_alloc(s, u)  hash_alloc(s, u)
         size_t s;          size_t s;
         void *u;          void *u         UNUSED;
 {  {
         return ecalloc(s, 1);          return ecalloc(s, 1);
 }  }
Line 120 
Line 127 
 void  void
 hash_free(p, s, u)  hash_free(p, s, u)
         void *p;          void *p;
         size_t s;          size_t s        UNUSED;
         void *u;          void *u         UNUSED;
 {  {
         free(p);          free(p);
 }  }
Line 129 
Line 136 
 void *  void *
 element_alloc(s, u)  element_alloc(s, u)
         size_t s;          size_t s;
         void *u;          void *u         UNUSED;
 {  {
         return emalloc(s);          return emalloc(s);
 }  }
   
   
   
 /*  /*
  * enomem --   * enomem --
  *      die when out of memory.   *      die when out of memory.
Line 162 
Line 171 
         exit(2);          exit(2);
 }  }
   
   
 /*  /*
  * enunlink --   * enunlink --
  *      Remove a file carefully, avoiding directories.   *      Remove a file carefully, avoiding directories.
Line 181 
Line 191 
         }          }
         return unlink(file);          return unlink(file);
 }  }
   

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