summaryrefslogtreecommitdiff
path: root/lib/alloca.c
AgeCommit message (Collapse)Author
2004-05-21update from gnulibJim Meyering
2004-01-16Remove dependency on xalloc module.Jim Meyering
(xalloc_die): Remove. (memory_full) [!defined emacs]: New macro. [!defined emacs]: Don't include xalloc.h. (alloca): Invoke memory_full, not xalloc_die, if malloc fails or address arithmetic overflows. Change datatypes a bit to avoid unnecessary casts.
2003-10-31Update from gnulib.Jim Meyering
2003-09-10Include <string.h>, <stdlib.h> unconditionally.Jim Meyering
(POINTER_TYPE, pointer): Remove; all uses changed to void *. (NULL): Remove. (find_stack_direction, alloca): Use prototypes.
2003-05-13(alloca): Don't apply cast to argument of free.Jim Meyering
2002-12-06[defined emacs]: Include "lisp.h".Jim Meyering
(xalloc_die) [defined emacs]: New macro. (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE. [! defined emacs]: Include <xalloc.h>. (POINTER_TYPE) [!defined POINTER_TYPE]: New macro. (pointer): Typedef to POINTER_TYPE *. (malloc): Remove decl; we now always use xmalloc. (alloca): Use old-style definition, since Emacs needs this. Check for arithmetic overflow when computing combined size.
2001-08-30(alloca): Arg is of type size_t, not unsigned.Jim Meyering
2001-02-16(malloc): Undef before defining, since stdlib.h may have defined it.Jim Meyering
2000-01-16Sync with the version from emacs-20.5.Jim Meyering
(<string.h>): Include if HAVE_STRING_H. (<stdlib.h>): Include if HAVE_STDLIB_H. (alloca): Abort if malloc fails.
1998-12-07ansideclifyJim Meyering
1998-04-09indent cpp directivesJim Meyering
1998-04-09make there be two spaces after `.' in commentsJim Meyering
1996-10-09,Jim Meyering
1992-11-01Initial revisionJim Meyering