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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Apr 18 17:11:44 EDT 2008


Author: matju
Date: Fri Apr 18 17:11:43 2008
New Revision: 3600

Log:
remove ruby module GridFlow

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

Modified: trunk/base/grid.h
==============================================================================
--- trunk/base/grid.h (original)
+++ trunk/base/grid.h Fri Apr 18 17:11:43 2008
@@ -371,8 +371,7 @@
 void CObject_free (void *);
 
 // you shouldn't use MethodDecl directly (used by source_filter.rb)
-struct MethodDecl { const char *selector; RMethod method; };
-extern Ruby mGridFlow, cFObject, cFormat;
+struct MethodDecl {const char *selector; RMethod method;};
 
 #undef check
 

Modified: trunk/base/main.c
==============================================================================
--- trunk/base/main.c (original)
+++ trunk/base/main.c Fri Apr 18 17:11:43 2008
@@ -39,8 +39,6 @@
 #include "grid.h.fcs"
 
 BuiltinSymbols bsym;
-Ruby mGridFlow;
-Ruby cFObject;
 
 Barf::Barf(const char *s, ...) {
     char buf[1024];

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Fri Apr 18 17:11:43 2008
@@ -517,17 +517,13 @@
 	ruby_options(COUNT(foo),foo);
 	BFProxy_class = class_new(gensym("gf.proxy"),0,0,sizeof(BFProxy),CLASS_PD|CLASS_NOINLET, A_NULL);
 	class_addanything(BFProxy_class,BFProxy_method_missing);
-	mGridFlow = EVAL("module GridFlow; class<<self; end; Pd=GridFlow; end");
 	gf_data_path.push_back(string(dirresult)+"/images");
         srandom(rdtsc());
 #define FOO(_sym_,_name_) bsym._sym_ = gensym(_name_);
 BUILTIN_SYMBOLS(FOO)
 #undef FOO
-	mGridFlow = EVAL("module GridFlow; CObject = ::Object; self end");
-	rb_ivar_set(mGridFlow, SI(@fobjects), rb_hash_new());
-	cFObject = rb_define_class_under(mGridFlow, "FObject", rb_cObject);
-	cPointer = rb_define_class_under(mGridFlow, "Pointer", cFObject);
-	rb_define_singleton_method(EVAL("GridFlow::Pointer"),"new", (VALUE (*)(...))Pointer_s_new, 1);
+	cPointer = rb_define_class("Pointer", rb_cObject);
+	rb_define_singleton_method(cPointer,"new", (VALUE (*)(...))Pointer_s_new, 1);
 	startup_number();
 	startup_grid();
 	startup_flow_objects();



More information about the Gridflow-cvs mailing list