lib/xalloc.h


Log

Author Commit Date CI Message
Paul Eggert 346d5dc0 2003-11-13T07:19:08 Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Bruno Haible 8224e300 2003-11-11T11:58:42 Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Paul Eggert 17e0f9ee 2003-11-10T23:55:49 Fix off-by-one error in xalloc_oversized.
Paul Eggert 96257537 2003-11-06T19:40:49 Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert fdb6eb33 2003-10-30T06:33:39 Revamp xalloc_oversized so that its count arg need not fit into size_t. Fix up group-member, quotearg accordingly.
Paul Eggert 2250641d 2003-10-27T08:00:26 New function xalloc_oversized.
Paul Eggert 57bc22e6 2003-10-27T07:28:24 Add x2realloc, x2nrealloc. Port to C99 inline.
Paul Eggert e970fbf9 2003-10-13T06:07:10 Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert 5c7070ea 2003-07-22T22:10:55 Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert 68af56be 2003-06-18T05:52:19 Assume C89, so PARAMS isn't needed.
Paul Eggert 92295bc4 2003-06-04T19:22:29 .h files should stand alone, but we shouldn't include <sys/types.h> if we can get away with just <stddef.h>.
Jim Meyering f73e8ba6 2000-10-31T07:09:56 Add "2000" to Copyright line, as this file was changed this year.
Jim Meyering 02461019 2000-08-07T17:02:15 (xalloc_msg_memory_exhausted): Now char const[], not char *const and pointing to a constant array.
Jim Meyering 89f2b489 2000-08-07T15:48:18 back out Copyright date changes for files with no changes year
Jim Meyering d349992d 2000-07-09T07:22:43 update copyright date
Jim Meyering 33bf2142 1999-11-09T20:34:17 (XMALLOC): Correct misnamed macro parameter name: s/N_bytes/N_items/. (XCALLOC): Likewise. (XREALLOC): Likewise.
Jim Meyering e5534304 1999-10-04T05:59:37 (__attribute__): Define to empty if GCC claims to be before 2.8; this is needed for OPENStep 4.2 cc. Also, define to empty if strict ANSI.
Jim Meyering f8bf1528 1999-09-28T15:26:45 (__attribute__): Protect against redefinition.
Jim Meyering 9d67945f 1999-09-26T19:01:12 small correction from Akim
Jim Meyering fa2069e4 1999-09-26T18:42:56 (__attribute__): Define. (ATTRIBUTE_NORETURN): Define. (xalloc_fail_func): Add noreturn attribute. (xalloc_die): Declare. (NEW): Define as yet unused macro. (XFREE): Likewise (CCLONE): Likewise. (CLONE): Likewise. From Akim Demaille.
Jim Meyering 5249a0d1 1999-09-02T21:23:01 (xalloc_fail_func): Use `PARAMS'. (xstrdup): Add protoype.
Jim Meyering f9dba3b4 1999-01-01T17:36:43 Add comments. (PARAMS, XMALLOC, XCALLOC, XREALLOC): Define. Based on changes from Akim Demaille.
Jim Meyering 358e52e8 1997-12-21T11:22:51 Use PARAMS, not __P.
Jim Meyering 4c03f9a7 1997-10-25T21:49:45 .