aboutsummaryrefslogtreecommitdiff
path: root/weightmap
diff options
context:
space:
mode:
authorBryan Jurish <mukau@users.sourceforge.net>2009-01-21 13:39:15 +0000
committerBryan Jurish <mukau@users.sourceforge.net>2009-01-21 13:39:15 +0000
commite9a803f42a15025ff8eed59e4ae4d8a8ab3645e0 (patch)
tree05e707500b73d4c3f564ca841d26470f39756e97 /weightmap
parent6b820db93d315c0c55db12128bbc9b4426779ea8 (diff)
+ added mooPdUtils.h and some MOO_UNUSED macros
svn path=/trunk/externals/moocow/; revision=10582
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