gegl r1912 - in trunk: . operations/generated



Author: kcozens
Date: Fri Jan 25 01:11:47 2008
New Revision: 1912
URL: http://svn.gnome.org/viewvc/gegl?rev=1912&view=rev

Log:
	* operations/generated/other-blend.rb:
	* operations/generated/svg-12-blend.rb:
	* operations/generated/svg-12-porter-duff.rb: Normalize _ to -
	in operation name.


Modified:
   trunk/ChangeLog
   trunk/operations/generated/other-blend.rb
   trunk/operations/generated/svg-12-blend.rb
   trunk/operations/generated/svg-12-porter-duff.rb

Modified: trunk/operations/generated/other-blend.rb
==============================================================================
--- trunk/operations/generated/other-blend.rb	(original)
+++ trunk/operations/generated/other-blend.rb	Fri Jan 25 01:11:47 2008
@@ -107,9 +107,8 @@
     |item|
 
     name     = item[0] + ''
+    name.gsub!(/_/, '-')
     filename = name + '.c'
-    filename.gsub!(/_/, '-')
-    name.gsub!(/-/, '_')
 
     puts "generating #{filename}"
     file = File.open(filename, 'w')

Modified: trunk/operations/generated/svg-12-blend.rb
==============================================================================
--- trunk/operations/generated/svg-12-blend.rb	(original)
+++ trunk/operations/generated/svg-12-blend.rb	Fri Jan 25 01:11:47 2008
@@ -130,14 +130,12 @@
     |item|
 
     name     = item[0] + ''
+    name.gsub!(/_/, '-')
     filename = name + '.c'
-    filename.gsub!(/_/, '-')
-    name.gsub!(/-/, '_')
 
     puts "generating #{filename}"
     file = File.open(filename, 'w')
 
-    name        = item[0]
     capitalized = name.capitalize
     swapcased   = name.swapcase
     formula1    = item[1]
@@ -189,14 +187,12 @@
     |item|
 
     name     = item[0] + ''
+    name.gsub!(/_/, '-')
     filename = name + '.c'
-    filename.gsub!(/_/, '-')
-    name.gsub!(/-/, '_')
 
     puts "generating #{filename}"
     file = File.open(filename, 'w')
 
-    name        = item[0]
     capitalized = name.capitalize
     swapcased   = name.swapcase
     cond1       = item[1]
@@ -253,14 +249,12 @@
     |item|
 
     name     = item[0] + ''
+    name.gsub!(/_/, '-')
     filename = name + '.c'
-    filename.gsub!(/_/, '-')
-    name.gsub!(/-/, '_')
 
     puts "generating #{filename}"
     file = File.open(filename, 'w')
 
-    name        = item[0]
     capitalized = name.capitalize
     swapcased   = name.swapcase
     cond1       = item[1]
@@ -322,14 +316,12 @@
     |item|
 
     name     = item[0] + ''
+    name.gsub!(/_/, '-')
     filename = name + '.c'
-    filename.gsub!(/_/, '-')
-    name.gsub!(/-/, '_')
 
     puts "generating #{filename}"
     file = File.open(filename, 'w')
 
-    name        = item[0]
     capitalized = name.capitalize
     swapcased   = name.swapcase
     formula1    = item[1]

Modified: trunk/operations/generated/svg-12-porter-duff.rb
==============================================================================
--- trunk/operations/generated/svg-12-porter-duff.rb	(original)
+++ trunk/operations/generated/svg-12-porter-duff.rb	Fri Jan 25 01:11:47 2008
@@ -119,14 +119,12 @@
     |item|
 
     name     = item[0] + ''
+    name.gsub!(/_/, '-')
     filename = name + '.c'
-    filename.gsub!(/_/, '-')
-    name.gsub!(/-/, '_')
 
     puts "generating #{filename}"
     file = File.open(filename, 'w')
 
-    name        = item[0]
     capitalized = name.capitalize
     swapcased   = name.swapcase
     c_formula   = item[1]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]