diff options
| -rwxr-xr-x | tools/genruby.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tools/genruby.rb b/tools/genruby.rb index 4b9582f..c9ee5f1 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -109,7 +109,7 @@ TYPES_USAGE = {}  #  def set_type t, v, cb=false      return 'bool' if t =~/Eina_Bool/ -    v = v.downcase.gsub(/(const|struct|enum|union)/,'').strip +    v = v.downcase.sub(/(const|struct|enum|union) /,' ').strip      if not TYPES[t].nil?          puts "type already exists >#{t}< #{v}"          exit 1 @@ -128,7 +128,7 @@ def set_type t, v, cb=false  end  #  def get_type t -    k = t.gsub(/(const|struct|enum|union)/, '').strip +    k = t.gsub(/(const|enum|union)/, '').strip      k.sub!(/\*/,' *') if k=~/\w+\*/      r = TYPES[k]      if r.nil? | 
