Jim Meyering
fd78e66067
From gnulib:
...
(HAVE_GNU_CALLOC): New constant.
(xcalloc): Use it to avoid needless tests.
2005-06-22 11:55:38 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
Paul Eggert
00873ce076
Rename xclone to xmemdup. Remove obsolete xalloc macros.
...
Remove xstrdup.c and move xstrdup implementation to xmalloc.c.
2004-10-05 06:52:09 +00:00
Paul Eggert
8ad3011df3
Remove dependency of xalloc on error, etc.
2004-08-09 18:44:46 +00:00
Jim Meyering
8b8e7f2d32
Update from gnulib.
2004-06-01 08:51:23 +00:00
Jim Meyering
24b62f6752
(x2nrealloc_inline): Fix typos in comments: s/size/size_t/.
2003-11-22 15:08:19 +00:00
Jim Meyering
6a9591f5b8
Update from gnulib.
2003-10-31 13:41:44 +00:00
Jim Meyering
3691d6c0aa
Include <string.h>, for declarations of memset and memcpy.
2003-10-16 07:07:33 +00:00
Jim Meyering
ccfc4801cb
Import latest version from gnulib.
2003-10-13 15:26:45 +00:00
Jim Meyering
6305639766
Include "xalloc.h" first, to check interface.
...
Include <stdlib.h> unconditionally.
Include exit.h.
(EXIT_FAILURE): Remove; now done by exit.h
2003-09-13 10:23:46 +00:00
Jim Meyering
45a5d9f023
Merge with gnulib. Use a single exit_failure variable rather
...
than a separate one for each module.
2003-07-18 07:10:53 +00:00
Jim Meyering
4545986b08
expand copyright years to sync with gnulib
2003-06-18 06:14:01 +00:00
Jim Meyering
6eb5e28e87
Remove use of PARAMS.
2003-04-11 11:56:41 +00:00
Jim Meyering
70641e502d
Change compile-time error message. Add comment about
...
required autoconf version.
Include gettext.h instead of <libintl.h>.
(textdomain): Remove definition.
2002-11-22 10:28:44 +00:00
Jim Meyering
a848d8b02b
Adjust to work with new autoconf macros, AC_FUNC_MALLOC
...
and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC.
2002-07-20 07:07:48 +00:00
Jim Meyering
dcfda51801
[HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
...
line in double quotes so that it evokes a better diagnostic.
[HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
2001-01-26 11:13:28 +00:00
Jim Meyering
045b33aaef
(xalloc_msg_memory_exhausted): Now char const[],
...
not char *const and pointing to a constant array.
(xrealloc): Comment fix.
2000-08-07 17:06:38 +00:00
Jim Meyering
5a95ad0a73
Use virtual memory exhausted', not Memory exhausted'.
2000-07-31 06:44:51 +00:00
Jim Meyering
fde850f7ad
update copyright date
2000-07-09 07:22:43 +00:00
Jim Meyering
057f710a76
(xalloc_die): Rename from xalloc_fail and update callers.
...
Use explicit exit to help avoid warnings.
1999-09-26 19:05:39 +00:00
Jim Meyering
5790705b19
(xalloc_fail_func): Use `PARAMS'.
1999-09-01 13:09:19 +00:00
Jim Meyering
4e8d80cad7
(xalloc_fail): Pass xalloc_msg_memory_exhausted through gettext.
1999-04-18 23:17:05 +00:00
Jim Meyering
546f3f81da
(xalloc_fail): Use "%s" format so the message doesn't
...
have to be scanned for % signs. Suggestion from François Pinard.
1999-03-08 02:43:14 +00:00
Jim Meyering
975daefaad
Add comments.
...
(xcalloc, xmalloc, xrealloc): Remove prototypes.
(calloc): Remove `#ifdef NOT_USED' that used to hide this function.
1999-01-01 17:40:08 +00:00
Jim Meyering
7d60769bea
ansideclify
1998-12-07 03:12:10 +00:00
Jim Meyering
8def3e3ec1
remove fixup_null_alloc prototype
1997-11-15 17:18:01 +00:00
Jim Meyering
a8da87911c
make sure autoconf tests have been run
1997-11-03 15:19:20 +00:00
Jim Meyering
aafe49ef49
(xalloc_fail): Renamed from fixup_null_alloc.
...
(xcalloc): #ifdef-out unused function.
(xrealloc): Remove code to work around deficient versions of realloc.
Now we have an autoconf-enabled replacement version.
(xmalloc): Remove code to work around deficient versions of malloc.
Now we have an autoconf-enabled replacement version.
1997-11-03 05:25:44 +00:00
Jim Meyering
eb5fa8bdd2
(xalloc_fail_func): Initialize to 0, not NULL.
1997-10-26 04:39:53 +00:00
Jim Meyering
e6503ed629
Include xalloc.h.
...
Change VOID to void.
(xalloc_exit_failure): Renamed extern.
(xalloc_msg_memory_exhausted): New extern.
(xalloc_fail_func): New extern.
(fixup_null_alloc): Use new variables.
1997-10-25 21:51:21 +00:00
Jim Meyering
12b4578595
libitize
1996-10-17 01:58:19 +00:00
Jim Meyering
19bff1c02d
indent cpp-directives
1996-07-15 03:56:06 +00:00
Jim Meyering
1df37f767c
update FSF address in copyright and remove any trailing blanks
1996-07-15 02:41:49 +00:00
Jim Meyering
f371bb0b80
sync from FSF
1995-03-20 15:09:56 +00:00
Jim Meyering
ccbd1d7dc5
Initial revision
1992-11-01 05:44:29 +00:00