[Gridflow-cvs] [svn] commit: r5115 - /trunk/src/MacErrorsCollect.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Mar 15 15:50:59 EDT 2010


Author: matju
Date: Mon Mar 15 15:50:58 2010
New Revision: 5115

Log:
a bit better

Modified:
    trunk/src/MacErrorsCollect.rb

Modified: trunk/src/MacErrorsCollect.rb
==============================================================================
--- trunk/src/MacErrorsCollect.rb (original)
+++ trunk/src/MacErrorsCollect.rb Mon Mar 15 15:50:58 2010
@@ -1,11 +1,11 @@
 # Copyright © 2010 Mathieu Bouchard
 
-pattern = %r{(-\d+),\s+/\*\s*(.*)\s*\*/}
+pattern = %r{\s*(\w+)\s*=\s*(-\d+),\s+/\*\s*(.*)\s*\*/}
 
 File.open("MacErrors.h") {|f|
   f.each {|line|
     if m = pattern.match(line)
-      puts "erreur \# #{m[1]} est « #{m[2]} »"
+      puts "erreur \# #{m[2]} est #{m[1]} : « #{m[3]} »"
     end
   }
 }



More information about the Gridflow-cvs mailing list