aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-10-25 17:04:52 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-10-25 17:04:52 +0000
commit70a37327e56146dc411b4d361d0e6c0465aec80f (patch)
tree18ca084fa668d8669c33d1d993f7dedc3be3c979
parent56e8fe7c9deb1565c8be48005b08a219955e7bf9 (diff)
fiddling with build system
svn path=/trunk/externals/ggee/; revision=197
-rwxr-xr-xcontrol/inv.c11
-rw-r--r--gui/button.c2
-rw-r--r--gui/image.c1
-rwxr-xr-xsignal/streamin~.c2
-rwxr-xr-xsignal/streamout~.c3
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 <m_pd.h>
#include "g_canvas.h"
-#include <ggee.h>
+
#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 <m_pd.h>
#include "g_canvas.h"
-#include <ggee.h>
#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;