[Gridflow-cvs] [svn] commit: r3605 - /trunk/base/source_filter.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Apr 18 18:06:38 EDT 2008


Author: matju
Date: Fri Apr 18 18:06:38 2008
New Revision: 3605

Log:
remove type R

Modified:
    trunk/base/source_filter.rb

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Fri Apr 18 18:06:38 2008
@@ -140,7 +140,7 @@
 	Out.print "#{m.rettype} #{m.selector}(VA"
 	Out.print ", #{unparse_arglist m.arglist}" if m.arglist.length>0
 	Out.print ");"
-	Out.print "static Ruby #{m.selector}_wrap(#{classname} *self, VA); "
+	Out.print "static void #{m.selector}_wrap(#{classname} *self, VA); "
 end
 
 def handle_def(line)
@@ -160,7 +160,7 @@
 	else
 		qlass.methods[m.selector] = m
 	end
-	Out.print "Ruby #{classname}::#{m.selector}_wrap(#{classname} *self, VA) {"
+	Out.print "void #{classname}::#{m.selector}_wrap(#{classname} *self, VA) {"
 	Out.print "static const char *methodspec = \"#{qlass.name}::#{m.selector}(#{unparse_arglist m.arglist,false})\";"
 	Out.print "#{m.rettype} foo;" if m.rettype!="void"
 	Out.print "try {"
@@ -178,10 +178,6 @@
 		end
 	}
 	Out.print ");} catch (Barf *oozy) {rb_raise(rb_eArgError,\"%s\",oozy->text);}"
-	case m.rettype
-	when "void"; Out.print "return Qnil;"
-	else         Out.print "return R(foo).r;"
-	end
 	Out.print "} #{m.rettype} #{classname}::#{m.selector}(VA"
 	Out.print ",#{unparse_arglist m.arglist, false}" if m.arglist.length>0
 	Out.print ")#{term} "



More information about the Gridflow-cvs mailing list