From 7a956bf4b29c41c3c03984d59eb736edece27c71 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Wed, 10 Jan 2007 16:00:04 +0000 Subject: fix for pd-extended build system svn path=/trunk/externals/iem/iem_tab/; revision=7281 --- src/iem_tab.c | 13 +++++++++++-- src/tab_mls.c | 4 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/iem_tab.c b/src/iem_tab.c index a4005d0..08b0ca9 100644 --- a/src/iem_tab.c +++ b/src/iem_tab.c @@ -6,8 +6,6 @@ iem_tab written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 #include "m_pd.h" #include "iemlib.h" -static t_class *iem_tab_class; - int iem_tab_check_arrays(t_symbol *obj_name, t_symbol *array_name, t_float **beg_mem, int *array_size, int max_index) { int ok=1; @@ -31,6 +29,15 @@ int iem_tab_check_arrays(t_symbol *obj_name, t_symbol *array_name, t_float **beg return(ok); } + +// Georg Holzmann: +#ifdef IEMTAB_SINGLE_OBJ +// for single externals disable the iem_tab object +#else +// build as library + +static t_class *iem_tab_class; + static void *iem_tab_new(void) { t_object *x = (t_object *)pd_new(iem_tab_class); @@ -130,3 +137,5 @@ void iem_tab_setup(void) post("iem_tab (R-1.17) library loaded! (c) Thomas Musil 11.2006"); post(" musil%ciem.at iem KUG Graz Austria", '@'); } + +#endif // library diff --git a/src/tab_mls.c b/src/tab_mls.c index ae1413c..e78dc1e 100644 --- a/src/tab_mls.c +++ b/src/tab_mls.c @@ -119,9 +119,9 @@ static void tab_mls_calc(t_float *vec, int mls_order) i = work1 & mask; work2 = work1 >> 1; exor = 0; - for(j=0; j>= 1; } if(exor & 1) -- cgit v1.2.1