From 5a86fb0bbbb8fdcf640e2d10cdaa658fe86cf00e 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/pdstring/; revision=10582 --- src/Makefile.am | 6 +++--- src/Makefile.in | 6 +++--- src/any2string.c | 3 ++- src/mooPdUtils.h | 1 + src/pdstring.c | 3 ++- src/string2any.c | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-) create mode 120000 src/mooPdUtils.h diff --git a/src/Makefile.am b/src/Makefile.am index dd48f83..73d1366 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -49,11 +49,11 @@ pddoc_DATA = \ # sources #----------------------------------------------------------------------- -pdstring_SOURCES = pdstring.c +pdstring_SOURCES = pdstring.c mooPdUtils.h -any2string_SOURCES = any2string.c +any2string_SOURCES = any2string.c mooPdUtils.h -string2any_SOURCES = string2any.c +string2any_SOURCES = string2any.c mooPdUtils.h #----------------------------------------------------------------------- # external compilation : flags diff --git a/src/Makefile.in b/src/Makefile.in index f71cc8b..f454607 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -214,9 +214,9 @@ pddoc_DATA = \ #----------------------------------------------------------------------- # sources #----------------------------------------------------------------------- -pdstring_SOURCES = pdstring.c -any2string_SOURCES = any2string.c -string2any_SOURCES = string2any.c +pdstring_SOURCES = pdstring.c mooPdUtils.h +any2string_SOURCES = any2string.c mooPdUtils.h +string2any_SOURCES = string2any.c mooPdUtils.h #GLIB_IFLAGS = @GLIB_IFLAGS@ #GLIB_LFLAGS = @GLIB_LFLAGS@ diff --git a/src/any2string.c b/src/any2string.c index dc73cfb..deb4b9b 100644 --- a/src/any2string.c +++ b/src/any2string.c @@ -26,6 +26,7 @@ #include #include +#include "mooPdUtils.h" #ifdef HAVE_CONFIG_H # include "config.h" @@ -148,7 +149,7 @@ static void any2string_anything(t_any2string *x, t_symbol *sel, int argc, t_atom /*-------------------------------------------------------------------- * new */ -static void *any2string_new(t_symbol *sel, int argc, t_atom *argv) +static void *any2string_new(MOO_UNUSED t_symbol *sel, int argc, t_atom *argv) { t_any2string *x = (t_any2string *)pd_new(any2string_class); diff --git a/src/mooPdUtils.h b/src/mooPdUtils.h new file mode 120000 index 0000000..0bb3280 --- /dev/null +++ b/src/mooPdUtils.h @@ -0,0 +1 @@ +../../common/mooPdUtils.h \ No newline at end of file diff --git a/src/pdstring.c b/src/pdstring.c index afc2f2e..44add2d 100644 --- a/src/pdstring.c +++ b/src/pdstring.c @@ -24,6 +24,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *=============================================================================*/ #include +#include "mooPdUtils.h" /* black magic */ #ifdef NT @@ -75,7 +76,7 @@ static void *pdstring_new(void) /*-------------------------------------------------------------------- * help */ -static void pdstring_help(t_pdstring *x) +static void pdstring_help(MOO_UNUSED t_pdstring *x) { post(""); post("pdstring: byte-string externals version " PACKAGE_VERSION " by Bryan Jurish"); diff --git a/src/string2any.c b/src/string2any.c index ddb286e..0382948 100644 --- a/src/string2any.c +++ b/src/string2any.c @@ -137,7 +137,7 @@ static void string2any_atoms(t_string2any *x, int argc, t_atom *argv) /*-------------------------------------------------------------------- * anything */ -static void string2any_anything(t_string2any *x, t_symbol *sel, int argc, t_atom *argv) +static void string2any_anything(t_string2any *x, MOO_UNUSED t_symbol *sel, int argc, t_atom *argv) { int i0=0, i; @@ -162,7 +162,7 @@ static void string2any_anything(t_string2any *x, t_symbol *sel, int argc, t_atom /*-------------------------------------------------------------------- * new */ -static void *string2any_new(t_symbol *sel, int argc, t_atom *argv) +static void *string2any_new(MOO_UNUSED t_symbol *sel, int argc, t_atom *argv) { t_string2any *x = (t_string2any *)pd_new(string2any_class); -- cgit v1.2.1