q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=a09049e563775216fd0d0c8f0a4485833bbc4c5b
commit a09049e563775216fd0d0c8f0a4485833bbc4c5b Author: Daniel Kolesa <d.kol...@samsung.com> Date: Wed Nov 19 12:57:10 2014 +0000 elua: do not emit spaces where not required --- src/bin/elua/modules/lualian.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/elua/modules/lualian.lua b/src/bin/elua/modules/lualian.lua index ccf30df..8d77094 100644 --- a/src/bin/elua/modules/lualian.lua +++ b/src/bin/elua/modules/lualian.lua @@ -233,9 +233,13 @@ local Method = Node:clone { gen_ffi = function(self, s) local proto = self:gen_proto() + local ret = proto.ret_type + if ret:match("[a-zA-Z0-9_]$") then + ret = ret .. " " + end local cproto = { - " ", proto.ret_type, " ", proto.full_name, "(", - table.concat(proto.cargs, ", "), ");\n" + " ", ret, proto.full_name, "(", table.concat(proto.cargs, ", "), + ");\n" } s:write(table.concat(cproto)) end --