aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-06-04 00:17:10 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-06-04 00:17:10 +0000
commitf977ea5976e4f271274693f5fcf2d81c243a9397 (patch)
treefeb7477ee44ea1179fa52f8d2b794c758c9ea222
parente02c532c1dc25cd73f032fb42f05efa6cd0b0b39 (diff)
moved deprecation message from _new to _setup so that people don't get flooded with deprecation messages; cleaned up message formatting
svn path=/trunk/externals/OSCx/; revision=13588
-rw-r--r--src/OSCroute.c2
-rw-r--r--src/dumpOSC.c4
-rw-r--r--src/sendOSC.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/OSCroute.c b/src/OSCroute.c
index 5143934..896f43a 100644
--- a/src/OSCroute.c
+++ b/src/OSCroute.c
@@ -156,6 +156,7 @@ void OSCroute_setup(void) {
post("OSCroute object version " OSC_ROUTE_VERSION " by Matt Wright. pd: jdl Win32 raf.");
post("OSCroute Copyright © 1999 Regents of the Univ. of California. All Rights Reserved.");
+ error("[OSCroute]: OSCx is deprecated! \n\tConsider switching to mrpeach's [routeOSC]");
}
@@ -170,7 +171,6 @@ void *OSCroute_new(t_symbol *s, int argc, t_atom *argv)
int i; //{{raf}} n not used
// EnterCallback();
- error("[OSCroute]: OSCx is deprecated! consider switching to mrpeach's [routeOSC]");
if (argc > MAX_NUM) {
post("* OSC-route: too many arguments: %ld (max %ld)", argc, MAX_NUM);
diff --git a/src/dumpOSC.c b/src/dumpOSC.c
index 7d6827d..b3ddf51 100644
--- a/src/dumpOSC.c
+++ b/src/dumpOSC.c
@@ -263,8 +263,6 @@ static void *dumpOSC_new(t_symbol *compatflag,
int udp = 1;
t_symbol *castgroup=NULL;
- error("[dumpOSC]: OSCx is deprecated! consider switching to mrpeach's [unpackOSC] and [udpreceive]");
-
if (argc == 1) {
if (argv[0].a_type==A_FLOAT)
@@ -386,6 +384,8 @@ void dumpOSC_setup(void)
(t_newmethod)dumpOSC_new, (t_method)dumpOSC_free,
sizeof(t_dumpOSC), CLASS_NOINLET, A_GIMME, 0);
class_sethelpsymbol(dumpOSC_class, gensym("dumpOSC-help.pd"));
+
+ error("[dumpOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [unpackOSC] and [udpreceive]");
}
diff --git a/src/sendOSC.c b/src/sendOSC.c
index b48d205..679209d 100644
--- a/src/sendOSC.c
+++ b/src/sendOSC.c
@@ -127,7 +127,6 @@ void SendData(void *htmsocket, int size, char *data);
static void *sendOSC_new(t_floatarg udpflag)
{
t_sendOSC *x = (t_sendOSC *)pd_new(sendOSC_class);
- error("[sendOSC]: OSCx is deprecated! consider switching to mrpeach's [packOSC] and [udpsend]");
outlet_new(&x->x_obj, &s_float);
x->x_htmsocket = 0; // {{raf}}
@@ -391,6 +390,7 @@ void sendOSC_setup(void)
gensym("]"),
0, 0);
class_sethelpsymbol(sendOSC_class, gensym("sendOSC-help.pd"));
+ error("[sendOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [packOSC] and [udpsend]");
}
/* Exit status codes: