diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-09 23:37:12 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-09 23:37:12 +0200 |
commit | 109636837b7f03403558a95e0f93a3239b855a99 (patch) | |
tree | 362f92b41b3220b4963d8ee24dc3b5ce08ff113c /tools | |
parent | 5acfd1653e59f6baa191551a8a6c87f471faf299 (diff) | |
download | ffi-efl-109636837b7f03403558a95e0f93a3239b855a99.zip ffi-efl-109636837b7f03403558a95e0f93a3239b855a99.tar.gz |
regenerate ffi with larger wraping columns
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/genruby.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index d94036c..1fe67e4 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -153,8 +153,8 @@ def get_type_from_arg arg, l t end # -def wrap_text txt, col, indent - txt.gsub( /(.{1,#{col}})(?: +|$\n?)|(.{1,#{col}})/,"\\1\\2\n#{indent}").sub(/\n\s+$/,'') +def wrap_text txt, indent + txt.gsub( /(.{1,#{170}})(?: +|$\n?)|(.{1,#{170}})/,"\\1\\2\n#{indent}").sub(/\n\s+$/,'') end # def gen_enums path, indent @@ -171,7 +171,7 @@ def gen_enums path, indent v = set_type typename, typename args = values.split(',').collect { |cst| ':'+cst.strip.downcase }.join(', ').gsub(/=/,',').gsub(/ ,/,',') r << indent+"# #{typedef} {...} #{typename};" - r << wrap_text( indent+"enum :#{v}, [ #{args} ]", 150, indent+' '*4 ) + r << wrap_text( indent+"enum :#{v}, [ #{args} ]", indent+' '*4 ) r << [ typename+' *', indent+"typedef :pointer, :#{v}_p" ] r << [ typename+' **', indent+"typedef :pointer, :#{v}_pp" ] r << [ typename+' ***', indent+"typedef :pointer, :#{v}_ppp" ] @@ -219,7 +219,7 @@ def gen_callbacks path, indent t = name.downcase.sub(/\(/,'').sub(/\)/,'').sub(/\*/,'') t = set_type k, t, true r << indent+"# #{l}" - r << wrap_text(indent+"callback :#{t}, [ #{args} ], #{get_type ret}", 150, indent+' '*4 ) + r << wrap_text(indent+"callback :#{t}, [ #{args} ], #{get_type ret}", indent+' '*4 ) end r end @@ -237,7 +237,7 @@ def gen_functions path, indent func = $2.downcase args = $3.split(',').collect { |arg| get_type_from_arg arg, l }.join ', ' r << indent+"# #{l}" - r << wrap_text(indent+"[ :#{func}, [ #{args} ], #{get_type ret} ],", 150, indent+' '*4) + r << wrap_text(indent+"[ :#{func}, [ #{args} ], #{get_type ret} ],", indent+' '*4) end r << indent+"]" r |