/[inetutils]/inetutils/libinetutils/xmalloc.c
ViewVC logotype

Diff of /inetutils/libinetutils/xmalloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gray, Sat Apr 5 16:43:25 2003 UTC revision 1.4 by gray, Mon Apr 21 14:20:36 2003 UTC
# Line 34  void free (); Line 34  void free ();
34  #define _(msgid) gettext (msgid)  #define _(msgid) gettext (msgid)
35  #define N_(msgid) msgid  #define N_(msgid) msgid
36    
37  #include "error.h"  #include "err.h"
38  #include "xalloc.h"  #include "xalloc.h"
39    
40  #ifndef EXIT_FAILURE  #ifndef EXIT_FAILURE
# Line 57  xalloc_die (void) Line 57  xalloc_die (void)
57  {  {
58    if (xalloc_fail_func)    if (xalloc_fail_func)
59      (*xalloc_fail_func) ();      (*xalloc_fail_func) ();
60    error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted));    err (xalloc_exit_failure, "%s", _(xalloc_msg_memory_exhausted));
   /* The `noreturn' cannot be given to error, since it may return if  
      its first argument is 0.  To help compilers understand the  
      xalloc_die does terminate, call exit. */  
   exit (EXIT_FAILURE);  
61  }  }
62    
63  /* Allocate N bytes of memory dynamically, with error checking.  */  /* Allocate N bytes of memory dynamically, with error checking.  */

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26