From 3c9bd9a5254151dfca7d7dee0338fb09700be4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 14 Dec 2005 19:00:57 +0000 Subject: removed implicit use of alloca (my mingw-X-compiler couldn't cope with that) svn path=/trunk/externals/zexy/; revision=4213 --- src/makesymbol.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/makesymbol.c') diff --git a/src/makesymbol.c b/src/makesymbol.c index 3c4ada6..e361c80 100644 --- a/src/makesymbol.c +++ b/src/makesymbol.c @@ -55,11 +55,12 @@ static void reset_mask(t_makesymbol *x, t_symbol *s) } } +typedef char cstring[MAXSTRINGLENG]; + t_symbol* list2symbol(char *masque, int argc, t_atom *argv) { - typedef char cstring[MAXSTRINGLENG]; - - cstring buf[MAXSTRINGARGS]; + // cstring buf[MAXSTRINGARGS]; + cstring*buf=(cstring*)getbytes(MAXSTRINGARGS*sizeof(cstring)); cstring buffer; int i; @@ -73,6 +74,7 @@ t_symbol* list2symbol(char *masque, int argc, t_atom *argv) masque, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8], buf[9]); + freebytes(buf, MAXSTRINGARGS*sizeof(cstring)); return (gensym(buffer)); } -- cgit v1.2.1