[Gridflow-cvs] [svn] commit: r3541 - in /trunk: base/main.rb rubyext.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 15 22:26:59 EDT 2008


Author: matju
Date: Tue Apr 15 22:26:59 2008
New Revision: 3541

Log:
cleanup

Modified:
    trunk/base/main.rb
    trunk/rubyext.c

Modified: trunk/base/main.rb
==============================================================================
--- trunk/base/main.rb (original)
+++ trunk/base/main.rb Tue Apr 15 22:26:59 2008
@@ -1,5 +1,4 @@
 module GridFlow
-def self.post(s,*a) post_string(sprintf(s,*a)) end
 class << self
 	attr_accessor :data_path
 end

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Tue Apr 15 22:26:59 2008
@@ -319,12 +319,6 @@
        Pointer *foo;
        Data_Get_Struct(pointer,Pointer,foo);
        return (t_pd *)foo->p;
-}
-
-static Ruby GridFlow_s_name_lookup (Ruby rself, Ruby name2) {
-	string name = string(rb_str_ptr(rb_funcall(name2,SI(to_s),0)));
-	if (fclasses.find(name)==fclasses.end()) RAISE("class not found: %s",name.data());
-	return fclasses[name]->rself;
 }
 
 // from pd/src/g_canvas.c
@@ -437,12 +431,6 @@
 }
 
 //****************************************************************
-
-Ruby GridFlow_s_post_string (Ruby rself, Ruby string) {
-	if (TYPE(string)!=T_STRING) RAISE("not a string!");
-	post("%s",rb_str_ptr(string));
-	return Qnil;
-}
 
 /* revival of the stack end crutch of 2003-2005... just in case */
 static t_clock *hack;
@@ -710,7 +698,6 @@
     std::set_terminate(blargh);
     try {
 	char *foo[] = {"Ruby-for-PureData","-e",";"};
-	post("setting up Ruby-for-PureData...");
 	char *dirname   = new char[MAXPDSTRING];
 	char *dirresult = new char[MAXPDSTRING];
 	char *nameresult;
@@ -734,8 +721,6 @@
 #undef FOO
 	mGridFlow = EVAL("module GridFlow; CObject = ::Object; self end");
 	SDEF2("rdtsc",rdtsc,0);
-	SDEF2("post_string",post_string,1);
-	SDEF2("name_lookup",name_lookup,1);
 	rb_ivar_set(mGridFlow, SI(@fobjects), rb_hash_new());
 	rb_define_const(mGridFlow, "GF_VERSION", rb_str_new2(GF_VERSION));
 	rb_define_const(mGridFlow, "GF_COMPILE_TIME", rb_str_new2(__DATE__", "__TIME__));



More information about the Gridflow-cvs mailing list