aboutsummaryrefslogtreecommitdiff
path: root/weightmap
diff options
context:
space:
mode:
Diffstat (limited to 'weightmap')
-rw-r--r--weightmap/src/Makefile.am2
-rw-r--r--weightmap/src/Makefile.in2
l---------weightmap/src/mooPdUtils.h1
-rw-r--r--weightmap/src/weightmap.c10
4 files changed, 7 insertions, 8 deletions
diff --git a/weightmap/src/Makefile.am b/weightmap/src/Makefile.am
index 5d64322..7e6a420 100644
--- a/weightmap/src/Makefile.am
+++ b/weightmap/src/Makefile.am
@@ -45,7 +45,7 @@ pddoc_DATA = weightmap-help.pd
#-----------------------------------------------------------------------
weightmap_SOURCES = \
- weightmap.c
+ weightmap.c mooPdUtils.h
#-----------------------------------------------------------------------
# external compilation : flags
diff --git a/weightmap/src/Makefile.in b/weightmap/src/Makefile.in
index 4f70773..48b4353 100644
--- a/weightmap/src/Makefile.in
+++ b/weightmap/src/Makefile.in
@@ -202,7 +202,7 @@ pddoc_DATA = weightmap-help.pd
# sources
#-----------------------------------------------------------------------
weightmap_SOURCES = \
- weightmap.c
+ weightmap.c mooPdUtils.h
AM_CPPFLAGS = $(IFLAGS) $(DFLAGS)
AM_CFLAGS = $(OFLAGS) $(WFLAGS) $(AFLAGS)
diff --git a/weightmap/src/mooPdUtils.h b/weightmap/src/mooPdUtils.h
new file mode 120000
index 0000000..0bb3280
--- /dev/null
+++ b/weightmap/src/mooPdUtils.h
@@ -0,0 +1 @@
+../../common/mooPdUtils.h \ No newline at end of file
diff --git a/weightmap/src/weightmap.c b/weightmap/src/weightmap.c
index 1406ddc..7e33dfd 100644
--- a/weightmap/src/weightmap.c
+++ b/weightmap/src/weightmap.c
@@ -6,9 +6,7 @@
*
* - inspired in part by Yves Degoyon's 'probalizer' object
*
-
- *
- * Copyright (c) 2002-2006 Bryan Jurish.
+ * Copyright (c) 2002-2009 Bryan Jurish.
*
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
@@ -32,6 +30,7 @@
#include <m_pd.h>
+#include "mooPdUtils.h"
/* black magic */
#ifdef NT
@@ -108,7 +107,7 @@ void weightmap_float(t_weightmap *x, t_floatarg f) {
/*--------------------------------------------------------------------
* map : set selected values (no resize)
*--------------------------------------------------------------------*/
-void weightmap_map(t_weightmap *x, t_symbol *s, int argc, t_atom *argv) {
+void weightmap_map(t_weightmap *x, MOO_UNUSED t_symbol *s, int argc, t_atom *argv) {
int i, idx;
float wt;
@@ -154,9 +153,8 @@ void weightmap_zero(t_weightmap *x) {
/*--------------------------------------------------------------------
* set : set the entire weight-vector in one go (with possible resize)
*--------------------------------------------------------------------*/
-void weightmap_set(t_weightmap *x, t_symbol *s, int argc, t_atom *argv) {
+void weightmap_set(t_weightmap *x, MOO_UNUSED t_symbol *s, int argc, t_atom *argv) {
int i;
- float wt;
if (x->x_nvalues != argc) {
// set number of elements