Revert "Use alloca()/_alloca() on C89/C90 compilers without VLA"

This reverts commit b8766aef67.
This commit is contained in:
carlo-bramini 2017-11-14 23:11:23 +01:00
parent e18c8c3ae4
commit acf2395a41
3 changed files with 0 additions and 24 deletions

View file

@ -133,18 +133,6 @@ include ( TestVLA )
include ( TestBigEndian )
test_big_endian ( WORDS_BIGENDIAN )
unset ( HAVE_ALLOCA CACHE )
CHECK_FUNCTION_EXISTS ( "alloca" HAVE_ALLOCA )
if ( HAVE_ALLOCA )
set ( HAVE_ALLOCA 1 )
endif ( HAVE_ALLOCA )
unset ( HAVE__ALLOCA CACHE )
CHECK_FUNCTION_EXISTS ( "_alloca" HAVE__ALLOCA )
if ( HAVE__ALLOCA )
set ( HAVE__ALLOCA 1 )
endif ( HAVE__ALLOCA )
unset ( LIBFLUID_CPPFLAGS CACHE )
unset ( LIBFLUID_LIBS CACHE )
unset ( FLUID_CPPFLAGS CACHE )

View file

@ -133,12 +133,6 @@
/* Define to 1 if you have the inet_ntop() function. */
#cmakedefine HAVE_INETNTOP @HAVE_INETNTOP@
/* Define to 1 if you have the alloca() function. */
#cmakedefine HAVE_ALLOCA @HAVE_ALLOCA@
/* Define to 1 if you have the _alloca() function. */
#cmakedefine HAVE__ALLOCA @HAVE__ALLOCA@
/* Define to enable JACK driver */
#cmakedefine JACK_SUPPORT @JACK_SUPPORT@

View file

@ -180,12 +180,6 @@ typedef int fluid_socket_t;
#if defined(SUPPORTS_VLA)
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type _name[_len]
#elif defined HAVE_ALLOCA
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type * _name = (_type *)alloca(_len * sizeof(_type))
#elif defined HAVE__ALLOCA
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type * _name = (_type *)_alloca(_len * sizeof(_type))
#else
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type* _name = g_newa(_type, (_len))