[Gridflow-cvs] [svn] commit: r3378 - /trunk/rubyext.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 1 11:26:09 EDT 2008


Author: matju
Date: Tue Apr  1 11:26:07 2008
New Revision: 3378

Log:
don't use @bsym anymore

Modified:
    trunk/rubyext.c

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Tue Apr  1 11:26:07 2008
@@ -92,8 +92,6 @@
 #define rb_sym_name rb_sym_name_r4j
 static const char *rb_sym_name(Ruby sym) {return rb_id2name(SYM2ID(sym));}
 
-static BuiltinSymbols *syms;
-
 void CObject_free (void *victim) {
 	CObject *self = (CObject *)victim;
 	if (!self->rself) {
@@ -134,13 +132,13 @@
 }
 
 static int ninlets_of (Ruby qlass) {
-	ID id = SYM2ID(syms->iv_ninlets);
+	ID id = rb_intern("@ninlets");
 	if (!rb_ivar_defined(qlass,id)) RAISE("no inlet count");
 	return INT(rb_ivar_get(qlass,id));
 }
 
 static int noutlets_of (Ruby qlass) {
-	ID id = SYM2ID(syms->iv_noutlets);
+	ID id = rb_intern("@noutlets");
 	if (!rb_ivar_defined(qlass,id)) RAISE("no outlet count");
 	return INT(rb_ivar_get(qlass,id));
 }
@@ -829,7 +827,6 @@
 			"main library is '%s'; bridge is '%s'",
 			rb_str_ptr(ver), GF_VERSION);
 	}
-	syms = FIX2PTR(BuiltinSymbols,rb_ivar_get(mGridFlow2,SI(@bsym)));
 	Ruby fo = EVAL("GridFlow::FObject");
 	rb_define_singleton_method(fo,"install2",(RMethod)FObject_s_install2,1);
 



More information about the Gridflow-cvs mailing list