diff options
author | Bryan Jurish <mukau@users.sourceforge.net> | 2009-01-21 13:39:15 +0000 |
---|---|---|
committer | Bryan Jurish <mukau@users.sourceforge.net> | 2009-01-21 13:39:15 +0000 |
commit | e9a803f42a15025ff8eed59e4ae4d8a8ab3645e0 (patch) | |
tree | 05e707500b73d4c3f564ca841d26470f39756e97 /weightmap/src/weightmap.c | |
parent | 6b820db93d315c0c55db12128bbc9b4426779ea8 (diff) |
+ added mooPdUtils.h and some MOO_UNUSED macros
svn path=/trunk/externals/moocow/; revision=10582
Diffstat (limited to 'weightmap/src/weightmap.c')
-rw-r--r-- | weightmap/src/weightmap.c | 10 |
1 files changed, 4 insertions, 6 deletions
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 |