From e9a803f42a15025ff8eed59e4ae4d8a8ab3645e0 Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Wed, 21 Jan 2009 13:39:15 +0000 Subject: + added mooPdUtils.h and some MOO_UNUSED macros svn path=/trunk/externals/moocow/; revision=10582 --- weightmap/src/Makefile.am | 2 +- weightmap/src/Makefile.in | 2 +- weightmap/src/mooPdUtils.h | 1 + weightmap/src/weightmap.c | 10 ++++------ 4 files changed, 7 insertions(+), 8 deletions(-) create mode 120000 weightmap/src/mooPdUtils.h (limited to 'weightmap') 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 +#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 -- cgit v1.2.1