From 70a37327e56146dc411b4d361d0e6c0465aec80f Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Fri, 25 Oct 2002 17:04:52 +0000 Subject: fiddling with build system svn path=/trunk/externals/ggee/; revision=197 --- control/inv.c | 11 +++++++---- gui/button.c | 2 +- gui/image.c | 1 - signal/streamin~.c | 2 ++ signal/streamout~.c | 3 ++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/control/inv.c b/control/inv.c index ef9f736..df6c2e2 100755 --- a/control/inv.c +++ b/control/inv.c @@ -33,11 +33,13 @@ static void inv_dsp(t_inv *x, t_signal **sp) dsp_add(inv_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); } -void inv_setup(void) +void inv_tilde_setup(void) { - inv_class = class_new(gensym("1/x~"), (t_newmethod)inv_new, 0, + inv_class = class_new(gensym("inv~"), (t_newmethod)inv_new, 0, sizeof(t_inv), 0, 0); + class_addcreator(inv_new,gensym("1/x~"),0); + class_addmethod(inv_class, nullfn, gensym("signal"), 0); class_addmethod(inv_class, (t_method)inv_dsp, gensym("dsp"), 0); } @@ -65,10 +67,11 @@ static void scalarinv_float(t_scalarinv *x,t_float val) } -void scalarinv_setup(void) +void inv_setup(void) { - scalarinv_class = class_new(gensym("1/x"), (t_newmethod)scalarinv_new, 0, + scalarinv_class = class_new(gensym("inv"), (t_newmethod)scalarinv_new, 0, sizeof(t_scalarinv), 0, 0); + class_addcreator(scalarinv_new,gensym("1/x"),0); class_addfloat(scalarinv_class, (t_method)scalarinv_float); } diff --git a/gui/button.c b/gui/button.c index 754975f..1bd4610 100644 --- a/gui/button.c +++ b/gui/button.c @@ -1,6 +1,6 @@ #include #include "g_canvas.h" -#include + #ifdef NT #pragma warning( disable : 4244 ) diff --git a/gui/image.c b/gui/image.c index 45ee761..ad4635e 100644 --- a/gui/image.c +++ b/gui/image.c @@ -1,6 +1,5 @@ #include #include "g_canvas.h" -#include #ifdef NT #pragma warning( disable : 4244 ) diff --git a/signal/streamin~.c b/signal/streamin~.c index 54ab283..824543e 100755 --- a/signal/streamin~.c +++ b/signal/streamin~.c @@ -360,6 +360,8 @@ static void *streamin_new(t_floatarg fportno, t_floatarg prot) t_streamin *x; int i; + if (fportno == 0) fportno = 4267; + post("port %f",fportno); x = (t_streamin *)pd_new(streamin_class); diff --git a/signal/streamout~.c b/signal/streamout~.c index 6e76b36..f691860 100755 --- a/signal/streamout~.c +++ b/signal/streamout~.c @@ -101,7 +101,8 @@ static void streamout_connect(t_streamout *x, t_symbol *hostname, t_floatarg fpo int sockfd; int portno = fportno; x->hostname = hostname; - x->portno = (int) fportno; + if (!fportno) x->portno = 4267; + else x->portno = (int) fportno; x->x_tag.count = 0; -- cgit v1.2.1