annotate lib/xalloc-die.c @ 265:68fbca173508 2.6

Added generated files for release
author lost
date Tue, 22 Dec 2009 05:31:23 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
265
68fbca173508 Added generated files for release
lost
parents:
diff changeset
1 /* Report a memory allocation failure and exit.
68fbca173508 Added generated files for release
lost
parents:
diff changeset
2
68fbca173508 Added generated files for release
lost
parents:
diff changeset
3 Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2006 Free
68fbca173508 Added generated files for release
lost
parents:
diff changeset
4 Software Foundation, Inc.
68fbca173508 Added generated files for release
lost
parents:
diff changeset
5
68fbca173508 Added generated files for release
lost
parents:
diff changeset
6 This program is free software: you can redistribute it and/or modify
68fbca173508 Added generated files for release
lost
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
68fbca173508 Added generated files for release
lost
parents:
diff changeset
8 the Free Software Foundation; either version 3 of the License, or
68fbca173508 Added generated files for release
lost
parents:
diff changeset
9 (at your option) any later version.
68fbca173508 Added generated files for release
lost
parents:
diff changeset
10
68fbca173508 Added generated files for release
lost
parents:
diff changeset
11 This program is distributed in the hope that it will be useful,
68fbca173508 Added generated files for release
lost
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
68fbca173508 Added generated files for release
lost
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68fbca173508 Added generated files for release
lost
parents:
diff changeset
14 GNU General Public License for more details.
68fbca173508 Added generated files for release
lost
parents:
diff changeset
15
68fbca173508 Added generated files for release
lost
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
68fbca173508 Added generated files for release
lost
parents:
diff changeset
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
68fbca173508 Added generated files for release
lost
parents:
diff changeset
18
68fbca173508 Added generated files for release
lost
parents:
diff changeset
19 #include <config.h>
68fbca173508 Added generated files for release
lost
parents:
diff changeset
20
68fbca173508 Added generated files for release
lost
parents:
diff changeset
21 #include "xalloc.h"
68fbca173508 Added generated files for release
lost
parents:
diff changeset
22
68fbca173508 Added generated files for release
lost
parents:
diff changeset
23 #include <stdlib.h>
68fbca173508 Added generated files for release
lost
parents:
diff changeset
24
68fbca173508 Added generated files for release
lost
parents:
diff changeset
25 #include "error.h"
68fbca173508 Added generated files for release
lost
parents:
diff changeset
26 #include "exitfail.h"
68fbca173508 Added generated files for release
lost
parents:
diff changeset
27
68fbca173508 Added generated files for release
lost
parents:
diff changeset
28 #include "gettext.h"
68fbca173508 Added generated files for release
lost
parents:
diff changeset
29 #define _(msgid) gettext (msgid)
68fbca173508 Added generated files for release
lost
parents:
diff changeset
30
68fbca173508 Added generated files for release
lost
parents:
diff changeset
31 void
68fbca173508 Added generated files for release
lost
parents:
diff changeset
32 xalloc_die (void)
68fbca173508 Added generated files for release
lost
parents:
diff changeset
33 {
68fbca173508 Added generated files for release
lost
parents:
diff changeset
34 error (exit_failure, 0, "%s", _("memory exhausted"));
68fbca173508 Added generated files for release
lost
parents:
diff changeset
35
68fbca173508 Added generated files for release
lost
parents:
diff changeset
36 /* The `noreturn' cannot be given to error, since it may return if
68fbca173508 Added generated files for release
lost
parents:
diff changeset
37 its first argument is 0. To help compilers understand the
68fbca173508 Added generated files for release
lost
parents:
diff changeset
38 xalloc_die does not return, call abort. Also, the abort is a
68fbca173508 Added generated files for release
lost
parents:
diff changeset
39 safety feature if exit_failure is 0 (which shouldn't happen). */
68fbca173508 Added generated files for release
lost
parents:
diff changeset
40 abort ();
68fbca173508 Added generated files for release
lost
parents:
diff changeset
41 }