aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-16 18:57:48 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-16 18:57:48 +0000
commitf6900774ddec90855dd3aaa1b5bf1a6af4b28f21 (patch)
treebcf3a36088cf84022e70568caf32e1a99131e80f
parent06e7b88041737f330d28d319013da1659a29fe95 (diff)
make deprecation warning at level 3 and only on setup()
svn path=/branches/pd-extended/0.43/externals/oscx/; revision=16401
-rw-r--r--OSC.c3
-rw-r--r--OSCroute.c2
-rw-r--r--dumpOSC.c2
-rw-r--r--sendOSC.c2
4 files changed, 4 insertions, 5 deletions
diff --git a/OSC.c b/OSC.c
index 2070427..f615e85 100644
--- a/OSC.c
+++ b/OSC.c
@@ -41,7 +41,6 @@ static t_class* OSC_class;
static void* OSC_new(t_symbol* s) {
t_OSC *x = (t_OSC *)pd_new(OSC_class);
- error("OSCx is deprecated! consider switching to mrpeach's osc & net objects");
return (x);
}
@@ -68,5 +67,5 @@ OSC_API void OSC_setup(void) {
post(" S : original code by matt wright, pd hakcs cxc, Win32-port raf@interaccess.com");
post(" C: ver: "VERSION ", compiled: "__DATE__ " -- adapted by piotr@majdak.com");
- error("OSCx is deprecated - ask IOhannes m zmoelnig why...");
+ logpost(NULL, 3, "OSCx is deprecated! consider switching to mrpeach's osc & net objects");
}
diff --git a/OSCroute.c b/OSCroute.c
index c3afc89..c4e7456 100644
--- a/OSCroute.c
+++ b/OSCroute.c
@@ -150,7 +150,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]");
+ logpost(NULL, 3, "[OSCroute]: OSCx is deprecated! \n\tConsider switching to mrpeach's [routeOSC]");
}
diff --git a/dumpOSC.c b/dumpOSC.c
index 8d7de18..6fc4da6 100644
--- a/dumpOSC.c
+++ b/dumpOSC.c
@@ -386,7 +386,7 @@ void dumpOSC_setup(void)
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]");
+ logpost(NULL, 3, "[dumpOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [unpackOSC] and [udpreceive]");
}
diff --git a/sendOSC.c b/sendOSC.c
index ffbffab..0335101 100644
--- a/sendOSC.c
+++ b/sendOSC.c
@@ -390,7 +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]");
+ logpost(NULL, 3, "[sendOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [packOSC] and [udpsend]");
}
/* Exit status codes: