From a154d88d889a40dc8fd5641aa0d2458d777c4c5a Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Sun, 15 Feb 2009 20:41:13 +0000 Subject: + finished centralization of build logic svn path=/trunk/externals/moocow/; revision=10779 --- sprinkler/sprinkler.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'sprinkler/sprinkler.c') diff --git a/sprinkler/sprinkler.c b/sprinkler/sprinkler.c index 619f41e..35ad166 100644 --- a/sprinkler/sprinkler.c +++ b/sprinkler/sprinkler.c @@ -34,14 +34,13 @@ *=============================================================================*/ #include -#include "mooPdUtils.h" -/* black magic */ -#ifdef NT -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) +#ifdef HAVE_CONFIG_H +# include "config.h" #endif +#include "mooPdUtils.h" + /*-------------------------------------------------------------------- * DEBUG *--------------------------------------------------------------------*/ @@ -62,7 +61,9 @@ static char sprinkler_errbuf[EBUFSIZE]; *=====================================================================*/ static char *sprinkler_banner = -"\nsprinkler version %s by Bryan Jurish : dynamic message dissemination"; +"\n" +"sprinkler: dynamic message dissemination v" PACKAGE_VERSION " by Bryan Jurish\n" +"sprinkler: compiled by " PACKAGE_BUILD_USER " on " PACKAGE_BUILD_DATE; static t_class *sprinkler_class; @@ -173,7 +174,8 @@ void sprinkler_free(t_sprinkler *x) { *--------------------------------------------------------------------*/ void sprinkler_setup(void) { - post(sprinkler_banner, PACKAGE_VERSION); + post(sprinkler_banner); + sprinkler_class = class_new(gensym("sprinkler"), (t_newmethod)sprinkler_new, (t_method)sprinkler_free, @@ -182,18 +184,18 @@ void sprinkler_setup(void) #ifdef NON_MAX_FORWARD //-- add aliases [forward] and [fw] - post("sprinkler : non-MAX [forward] alias enabled"); + post("sprinkler: non-MAX [forward] alias enabled"); class_addcreator((t_newmethod)sprinkler_new, gensym("forward"), A_DEFSYM, 0); class_addcreator((t_newmethod)sprinkler_new, gensym("fw"), A_DEFSYM, 0); #endif #ifdef ALL_FORWARDMESS //-- report new semantics - post("sprinkler : will use pd_forwardmess() for all messages"); + post("sprinkler: will use pd_forwardmess() for all messages"); #endif #ifdef SPRINKLER_DEBUG - post("sprinkler : debugging enabled"); + post("sprinkler: debugging enabled"); #endif //-- methods -- cgit v1.2.1