[Gridflow-cvs] [svn] commit: r6884 - /trunk/src/source_filter.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Jan 15 12:30:58 EST 2016


Author: matju
Date: Fri Jan 15 12:30:58 2016
New Revision: 6884

Log:
fix warning

Modified:
    trunk/src/source_filter.rb

Modified: trunk/src/source_filter.rb
==============================================================================
--- trunk/src/source_filter.rb	(original)
+++ trunk/src/source_filter.rb	Fri Jan 15 12:30:58 2016
@@ -217,7 +217,7 @@
 		virtual = if attr.virtual then "()" else "" end
 		get << "if (s==gensym(\"#{name}\")) set_atom(a,#{name}#{virtual}); else "
 		next if frame.methods["_0_"+name].done
-		type,name,default = attr.to_a
+		type,name = attr.to_a
 		handle_def "0 #{name} (#{type} #{name}) {this->#{name}=#{name}; changed(gensym(\"#{name}\"));}"
 	}
 	line.gsub!(/^\s*(\w+\s*)?\{/,"")
@@ -246,7 +246,7 @@
 	n = fields.length
 	if not ClassDecl===frame then raise "\\end: frame is not a \\class" end
 	cl = frame.name
-	if fields[0]!="class" or (n>1 and not /^\{/ =~ fields[1] and fields[1]!=cl) then raise "end not matching #{where}" end
+	if fields[0]!="class" or (n>1 and not (/^\{/ =~ fields[1]) and fields[1]!=cl) then raise "end not matching #{where}"end
 	frame.grins.each {|i,v|
 		Out.print "static GridHandler #{cl}_grid_#{i}_hand = GRIN_#{v[1]||'all'}(#{cl}::grinw_#{i});"
 		check = "CHECK_GRIN(#{cl},#{i});"



More information about the Gridflow-cvs mailing list