[Gridflow-cvs] [svn] commit: r3590 - in /trunk: base/grid.h rubyext.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Apr 18 11:03:14 EDT 2008


Author: matju
Date: Fri Apr 18 11:03:14 2008
New Revision: 3590

Log:
remove fclasses_ruby

Modified:
    trunk/base/grid.h
    trunk/rubyext.c

Modified: trunk/base/grid.h
==============================================================================
--- trunk/base/grid.h (original)
+++ trunk/base/grid.h Fri Apr 18 11:03:14 2008
@@ -998,7 +998,6 @@
 inline void set_atom (t_atom *a, t_binbuf *v) {SETLIST(a,v);}
 
 extern std::map<string,FClass *> fclasses;
-extern std::map<Ruby,FClass *> fclasses_ruby;
 int handle_braces(int ac, t_atom *av);
 void ruby2pd (int argc, Ruby *argv, t_atom *at);
 void pd2ruby (int argc, Ruby *argv, t_atom *at);

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Fri Apr 18 11:03:14 2008
@@ -61,7 +61,6 @@
 #define RESCUE(f,x,g,y) rb_rescue2((RMethod)(f),(Ruby)(x),(RMethod)(g),(Ruby)(y),rb_eException,0);
 
 std::map<string,FClass *> fclasses;
-std::map<Ruby,FClass *> fclasses_ruby;
 
 /* **************************************************************** */
 struct BFObject;
@@ -282,8 +281,8 @@
 	bself->nout = 0;
 	bself->in  = new  BFProxy*[1];
 	bself->out = new t_outlet*[1];
-	bself->ninlets_set( fclasses_ruby[rb_funcall(rself,SI(class),0)]->ninlets);
-	bself->noutlets_set(fclasses_ruby[rb_funcall(rself,SI(class),0)]->noutlets);
+	bself->ninlets_set( fclasses[fm->selector->s_name]->ninlets);
+	bself->noutlets_set(fclasses[fm->selector->s_name]->noutlets);
 	rb_funcall(rself,SI(initialize2),0);
 	bself->mom = (t_canvas *)canvas_getcurrent();
 	while (j<argc) {
@@ -450,7 +449,6 @@
 }
 
 void install2(FClass *fclass, const char *name, int inlets, int outlets) {
-	fclasses_ruby[fclass->rself] = fclass;
 	fclass->ninlets = inlets;
 	fclass->noutlets = outlets;
 	fclass->name = string(name);



More information about the Gridflow-cvs mailing list