aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-10 16:00:04 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-10 16:00:04 +0000
commit7a956bf4b29c41c3c03984d59eb736edece27c71 (patch)
treecbe480cdec4ff71d55d3ff213fda2383a03d3490
parent4d0141affe73a047db17b1151636a6f9de8fe881 (diff)
fix for pd-extended build system
svn path=/trunk/externals/iem/iem_tab/; revision=7281
-rw-r--r--src/iem_tab.c13
-rw-r--r--src/tab_mls.c4
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<lms_order; j++)
+ for(j=0; j<mls_order; j++)
{
- exor += & 1;
+ exor += 1; //??? exor += & 1; ???
work1 >>= 1;
}
if(exor & 1)