Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14989
Modified Files: Tag: branch-v0-40-extended x_list.c Log Message: Include config.h in x_list.c. - HAVE_ALLOCA is defined in config.h based on what the configure script found. - include malloc.h and alloca.h based on whether the configure script found them.
Index: x_list.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_list.c,v retrieving revision 1.4.2.1 retrieving revision 1.4.2.1.4.1 diff -C2 -d -r1.4.2.1 -r1.4.2.1.4.1 *** x_list.c 19 Jan 2007 04:30:57 -0000 1.4.2.1 --- x_list.c 6 Jan 2008 02:36:09 -0000 1.4.2.1.4.1 *************** *** 3,11 **** * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#include "m_pd.h" /* #include <string.h> */ ! #ifdef MSW #include <malloc.h> ! #else #include <alloca.h> #endif --- 3,16 ---- * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
+ #include "config.h" + #include "m_pd.h" /* #include <string.h> */ ! ! #ifdef HAVE_MALLOC_H #include <malloc.h> ! #endif ! ! #ifdef HAVE_ALLOCA_H #include <alloca.h> #endif *************** *** 13,17 **** extern t_pd *newest;
- #define HAVE_ALLOCA 1 /* LATER this should be set by configure script! */ #define LIST_NGETBYTE 100 /* bigger that this we use alloc, not alloca */
--- 18,21 ----