Mercurial > hg > octave-nkf > gnulib-hg
changeset 5273:0e6f016e3192
New modules 'alloca-opt'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 29 Sep 2004 22:10:44 +0000 |
parents | 533332af517b |
children | d58d2dac4032 |
files | ChangeLog MODULES.html.sh modules/alloca-opt modules/allocsa modules/setenv modules/vasnprintf |
diffstat | 6 files changed, 46 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-09-29 Bruno Haible <bruno@clisp.org> + + * modules/alloca-opt: New file, derived from modules/alloca. + * modules/allocsa: Depend on alloca-opt instead of alloca. + * modules/setenv: Likewise. + * modules/vasnprintf: Likewise. + * MODULES.html.sh: Add alloca-opt. + 2004-09-28 Paul Eggert <eggert@cs.ucla.edu> * modules/dummy: Change license to LGPL.
--- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -1464,6 +1464,7 @@ func_module xalloc func_module xalloc-die func_module alloca + func_module alloca-opt func_module allocsa func_module xallocsa func_end_table
new file mode 100644 --- /dev/null +++ b/modules/alloca-opt @@ -0,0 +1,34 @@ +Description: +Memory allocation on the stack, as an optional optimization. +It allows using the alloca() macro if and only if the autoconf tests define +HAVE_ALLOCA. + +Files: +lib/alloca_.h +m4/alloca.m4 + +Depends-on: + +configure.ac: +gl_FUNC_ALLOCA + +Makefile.am: +BUILT_SOURCES += $(ALLOCA_H) +EXTRA_DIST += alloca_.h + +# We need the following in order to create an <alloca.h> when the system +# doesn't have one that works with the given compiler. +all-local $(lib_OBJECTS): $(ALLOCA_H) +alloca.h: alloca_.h + cp $(srcdir)/alloca_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += alloca.h alloca.h-t + +Include: +#include <alloca.h> + +License: +LGPL + +Maintainer: +bug-gnulib@gnu.org
--- a/modules/allocsa +++ b/modules/allocsa @@ -10,7 +10,7 @@ m4/longdouble.m4 Depends-on: -alloca +alloca-opt configure.ac: gl_ALLOCSA