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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Mar 25 17:03:09 EDT 2008


Author: matju
Date: Tue Mar 25 17:03:08 2008
New Revision: 3286

Log:
allow return-type argument of \decl and \def to be an inlet number instead. This will allow to get rid of the _0_ syntax later.

Modified:
    trunk/base/source_filter.rb

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Tue Mar 25 17:03:08 2008
@@ -72,6 +72,10 @@
 	/^(static\s)?\s*(\w+)\s+(\w+)\s*\(([^\)]*)\)\s*#{term}/.match line or
 		raise "syntax error #{where} #{line}"
 	static,rettype,selector,arglist = $1,$2,$3,$4
+	if /^\d+$/ =~ rettype then
+		selector = "_"+rettype+"_"+selector
+		rettype = "void"
+	end
 	arglist,minargs,maxargs = parse_arglist arglist
 	MethodDecl.new(rettype,selector,arglist,minargs,maxargs,where,static)
 end



More information about the Gridflow-cvs mailing list