[Gridflow-cvs] [svn] commit: r3381 - /trunk/base/grid.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 1 11:27:32 EDT 2008


Author: matju
Date: Tue Apr  1 11:27:32 2008
New Revision: 3381

Log:
don't use bsym

Modified:
    trunk/base/grid.c

Modified: trunk/base/grid.c
==============================================================================
--- trunk/base/grid.c (original)
+++ trunk/base/grid.c Tue Apr  1 11:27:32 2008
@@ -340,7 +340,7 @@
 	this->dim = dim;
 	Ruby a[3];
 	a[0] = INT2NUM(woutlet);
-	a[1] = bsym._grid;
+	a[1] = SYM(grid);
 	a[2] = Pointer_s_new(this);
 	parent->send_out(COUNT(a),a);
 	frozen=true;
@@ -458,14 +458,12 @@
 	}
 }
 
-static Symbol rb_gensym(const char *s) {return ID2SYM(rb_intern(s));}
-
-\def Symbol inlet_nt (int inln) {
+\def Ruby inlet_nt (int inln) {
 	if (inln<0 || inln>=(int)in.size()) RAISE("bad inlet number");
 	P<GridInlet> inl = in[inln];
 	if (!inl) RAISE("no such inlet #%d",inln);
 	if (!inl->dim) return Qnil;
-	return rb_gensym(number_type_table[inl->nt].name);
+	return ID2SYM(rb_intern(number_type_table[inl->nt].name));
 }
 
 \def Array inlet_dim (int inln) {



More information about the Gridflow-cvs mailing list