view modules/alloca-opt @ 8809:fdaaae08b999

New module
author Sergey Poznyakoff <gray@gnu.org.ua>
date Sat, 12 May 2007 08:55:33 +0000
parents 6a764f23e302
children d19ce23d01b0
line wrap: on
line source

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)

# We need the following in order to create <alloca.h> when the system
# doesn't have one that works with the given compiler.
alloca.h: alloca_.h
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
	  cat $(srcdir)/alloca_.h; \
	} > $@-t
	mv -f $@-t $@
MOSTLYCLEANFILES += alloca.h alloca.h-t

Include:
#include <alloca.h>

License:
LGPL

Maintainer:
bug-gnulib@gnu.org