diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-11-26 03:58:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-11-26 03:58:57 +0000 |
commit | cffef417bb9e0a231968c5fbadca8e5141a65083 (patch) | |
tree | 6de7999c000af0698dab13fa294229db4948402b /xmalloc.c | |
parent | 89f0f156f5df8b1e561577b90956ec403b114b4a (diff) | |
download | fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.tar.gz fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.tar.bz2 fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.zip |
Internationalization support via GNU gettext().
svn path=/trunk/; revision=2208
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,8 @@ * xmalloc.c -- allocate space or die * * For license terms, see the file COPYING in this directory. + * + * i18n by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 7-Nov-1998 */ #include "config.h" @@ -12,6 +14,7 @@ #include <stdlib.h> #endif #include "fetchmail.h" +#include "i18n.h" #if defined(HAVE_VOIDPOINTER) #define XMALLOCTYPE void @@ -26,7 +29,7 @@ xmalloc (int n) p = (XMALLOCTYPE *) malloc(n); if (p == (XMALLOCTYPE *) 0) - error(PS_UNDEFINED, errno, "malloc failed"); + error(PS_UNDEFINED, errno, _("malloc failed")); return(p); } @@ -37,7 +40,7 @@ xrealloc (XMALLOCTYPE *p, int n) return xmalloc (n); p = (XMALLOCTYPE *) realloc(p, n); if (p == (XMALLOCTYPE *) 0) - error(PS_UNDEFINED, errno, "realloc failed"); + error(PS_UNDEFINED, errno, _("realloc failed")); return p; } |