summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-11-19 12:57:10 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-11-19 12:57:10 +0000
commita09049e563775216fd0d0c8f0a4485833bbc4c5b (patch)
treeb3938e7ff43749c25dcbeb04b65aacfc2e8c0090
parentb1009770ef8e71e2787d59b2fad9be4b105f82cf (diff)
elua: do not emit spaces where not required
-rw-r--r--src/bin/elua/modules/lualian.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/elua/modules/lualian.lua b/src/bin/elua/modules/lualian.lua
index ccf30dff34..8d77094056 100644
--- a/src/bin/elua/modules/lualian.lua
+++ b/src/bin/elua/modules/lualian.lua
@@ -233,9 +233,13 @@ local Method = Node:clone {
233 233
234 gen_ffi = function(self, s) 234 gen_ffi = function(self, s)
235 local proto = self:gen_proto() 235 local proto = self:gen_proto()
236 local ret = proto.ret_type
237 if ret:match("[a-zA-Z0-9_]$") then
238 ret = ret .. " "
239 end
236 local cproto = { 240 local cproto = {
237 " ", proto.ret_type, " ", proto.full_name, "(", 241 " ", ret, proto.full_name, "(", table.concat(proto.cargs, ", "),
238 table.concat(proto.cargs, ", "), ");\n" 242 ");\n"
239 } 243 }
240 s:write(table.concat(cproto)) 244 s:write(table.concat(cproto))
241 end 245 end