aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-12-10 03:37:59 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-12-10 03:37:59 +0000
commitc0ca4188c9813ddb28076c025fdcd3f4f100abeb (patch)
tree404867d6a14fbc7d5ba679f44ac7bd0a2f72b49f /externals/grill/flext/source
parent79fdc7386c65a68530c4f39fade26d7fd7826c30 (diff)
""
svn path=/trunk/; revision=1212
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r--externals/grill/flext/source/flinternal.h12
-rw-r--r--externals/grill/flext/source/flout.cpp8
-rwxr-xr-xexternals/grill/flext/source/flproxy.cpp2
-rw-r--r--externals/grill/flext/source/flsupport.cpp14
-rw-r--r--externals/grill/flext/source/flsupport.h2
5 files changed, 19 insertions, 19 deletions
diff --git a/externals/grill/flext/source/flinternal.h b/externals/grill/flext/source/flinternal.h
index c8cdcf2a..29887f8e 100644
--- a/externals/grill/flext/source/flinternal.h
+++ b/externals/grill/flext/source/flinternal.h
@@ -46,12 +46,12 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#define add_anything(clss,meth) class_addanything(clss,meth)
-#define newout_signal(clss) outlet_new(clss,&s_signal)
-#define newout_float(clss) outlet_new(clss,&s_float)
-#define newout_flint(clss) outlet_new(clss,&s_float)
-#define newout_list(clss) outlet_new(clss,&s_list)
-#define newout_symbol(clss) outlet_new(clss,&s_symbol)
-#define newout_anything(clss) outlet_new(clss,&s_anything)
+#define newout_signal(clss) outlet_new(clss,gensym("signal"))
+#define newout_float(clss) outlet_new(clss,gensym("float"))
+#define newout_flint(clss) outlet_new(clss,gensym("float"))
+#define newout_list(clss) outlet_new(clss,gensym("list"))
+#define newout_symbol(clss) outlet_new(clss,gensym("symbol"))
+#define newout_anything(clss) outlet_new(clss,gensym("anything"))
#define outlet_flint(o,v) outlet_float(o,(float)(v))
diff --git a/externals/grill/flext/source/flout.cpp b/externals/grill/flext/source/flout.cpp
index 85a9b934..fcfaa6c8 100644
--- a/externals/grill/flext/source/flout.cpp
+++ b/externals/grill/flext/source/flout.cpp
@@ -133,16 +133,16 @@ bool flext_base::InitInlets()
}
else
sym[2] = '0'+ix,sym[3] = 0;
- if(ok) inlet_new(&x_obj->obj, &x_obj->obj.ob_pd, &s_float, gensym(sym));
+ if(ok) inlet_new(&x_obj->obj, &x_obj->obj.ob_pd, (t_symbol *)sym_float, gensym(sym));
break;
}
case xlet::tp_sym:
(inlets[ix] = (px_object *)pd_new(px_class))->init(this,ix); // proxy for 2nd inlet messages
- inlet_new(&x_obj->obj,&inlets[ix]->obj.ob_pd, &s_symbol, &s_symbol);
+ inlet_new(&x_obj->obj,&inlets[ix]->obj.ob_pd, (t_symbol *)sym_symbol, (t_symbol *)sym_symbol);
break;
case xlet::tp_list:
(inlets[ix] = (px_object *)pd_new(px_class))->init(this,ix); // proxy for 2nd inlet messages
- inlet_new(&x_obj->obj,&inlets[ix]->obj.ob_pd, &s_list, &s_list);
+ inlet_new(&x_obj->obj,&inlets[ix]->obj.ob_pd, (t_symbol *)sym_list, (t_symbol *)sym_list);
break;
case xlet::tp_any:
(inlets[ix] = (px_object *)pd_new(px_class))->init(this,ix); // proxy for 2nd inlet messages
@@ -156,7 +156,7 @@ bool flext_base::InitInlets()
else {
// pd doesn't seem to be able to handle signals and messages into the same inlet...
- inlet_new(&x_obj->obj, &x_obj->obj.ob_pd, &s_signal, &s_signal);
+ inlet_new(&x_obj->obj, &x_obj->obj.ob_pd, (t_symbol *)sym_signal, (t_symbol *)sym_signal);
++insigs;
}
break;
diff --git a/externals/grill/flext/source/flproxy.cpp b/externals/grill/flext/source/flproxy.cpp
index 85981130..4406fd07 100755
--- a/externals/grill/flext/source/flproxy.cpp
+++ b/externals/grill/flext/source/flproxy.cpp
@@ -35,7 +35,7 @@ void flext_base::cb_px_anything(t_class *c,const t_symbol *s,int argc,t_atom *ar
#define DEF_IN_FT(IX) \
void flext_base::cb_px_ft ## IX(t_class *c,float v) { \
t_atom atom; SETFLOAT(&atom,v); \
- thisObject(c)->m_methodmain(IX,&s_float,1,&atom); \
+ thisObject(c)->m_methodmain(IX,sym_float,1,&atom); \
}
#define ADD_IN_FT(IX) \
diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp
index a77726ae..db2b1770 100644
--- a/externals/grill/flext/source/flsupport.cpp
+++ b/externals/grill/flext/source/flsupport.cpp
@@ -43,13 +43,13 @@ void flext::Setup()
else issetup = true;
#if FLEXT_SYS == FLEXT_SYS_PD
- sym_anything = &s_anything;
- sym_pointer = &s_pointer;
- sym_float = &s_float;
- sym_symbol = &s_symbol;
- sym_bang = &s_bang;
- sym_list = &s_list;
- sym_signal = &s_signal;
+ sym_anything = gensym("anything");
+ sym_pointer = gensym("pointer");
+ sym_float = gensym("float");
+ sym_symbol = gensym("symbol");
+ sym_bang = gensym("bang");
+ sym_list = gensym("list");
+ sym_signal = gensym("signal");
#elif FLEXT_SYS == FLEXT_SYS_MAX
sym_int = gensym("int");
sym_float = gensym("float");
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index 06337150..b135b613 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -65,7 +65,7 @@ public:
//! @} FLEXT_S_MEMORY
};
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__BORLANDC__)
#define NEWTHROW throw(std::bad_alloc)
#define DELTHROW throw()
#else