[xiph-commits] r9063 - trunk/speex/libspeex
jm at motherfish-iii.xiph.org
jm at motherfish-iii.xiph.org
Fri Mar 11 12:08:07 PST 2005
Author: jm
Date: 2005-03-11 12:08:06 -0800 (Fri, 11 Mar 2005)
New Revision: 9063
Modified:
trunk/speex/libspeex/stack_alloc.h
Log:
Support for alloca (untested)
Modified: trunk/speex/libspeex/stack_alloc.h
===================================================================
--- trunk/speex/libspeex/stack_alloc.h 2005-03-11 20:01:37 UTC (rev 9062)
+++ trunk/speex/libspeex/stack_alloc.h 2005-03-11 20:08:06 UTC (rev 9063)
@@ -60,9 +60,12 @@
#endif
-#ifdef VAR_ARRAYS
+#if defined(VAR_ARRAYS)
#define VARDECL(var)
#define ALLOC(var, size, type) type var[size]
+#elif defined(USE_ALLOCA)
+#define VARDECL(var) var
+#define ALLOC(var, size, type) var = alloca(sizeof(type)*size)
#else
#define VARDECL(var) var
#define ALLOC(var, size, type) var = PUSH(stack, size, type)
More information about the commits
mailing list