diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-18 10:57:13 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-18 10:57:13 +0200 | 
| commit | dd64078d4cd45a93201991e79b487bc4f92af758 (patch) | |
| tree | e9f291b74de24e479cc64171e58dda08c7c54330 | |
| parent | 2582ab8b3121e14faf3a53e89be6a2a575c0042f (diff) | |
| download | ffi-efl-dd64078d4cd45a93201991e79b487bc4f92af758.zip ffi-efl-dd64078d4cd45a93201991e79b487bc4f92af758.tar.gz | |
fix struct handling in genruby
| -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? | 
