summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-09-26 13:11:05 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-09-26 13:11:05 +0100
commit356e36922c0c28a032cb0695155bd4d489478dd7 (patch)
treec20df7d986c0bcc3ab89a24e63b6473af6c9818a
parent05d4805f39ce655ed90e4eaad6d1f1079942c330 (diff)
elua: lualian event cleanup
-rw-r--r--src/bin/elua/modules/lualian.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/bin/elua/modules/lualian.lua b/src/bin/elua/modules/lualian.lua
index ebb6856ef8..69aa11699a 100644
--- a/src/bin/elua/modules/lualian.lua
+++ b/src/bin/elua/modules/lualian.lua
@@ -336,22 +336,14 @@ local Event = Node:clone {
336 self.ecname = ecname 336 self.ecname = ecname
337 end, 337 end,
338 338
339 gen_ffi_name = function(self)
340 local ffin = self.cached_ffi_name
341 if ffin then return ffin end
342 ffin = "_" .. self.ecname
343 self.cached_ffi_name = ffin
344 return ffin
345 end,
346
347 generate = function(self, s, last) 339 generate = function(self, s, last)
348 s:write(" [\"", self.ename, "\"] = __lib.", 340 s:write(" [\"", self.ename, "\"] = __lib.",
349 self:gen_ffi_name(), last and "\n" or ",\n") 341 "_" .. self.ecname, last and "\n" or ",\n")
350 end, 342 end,
351 343
352 gen_ffi = function(self, s) 344 gen_ffi = function(self, s)
353 s:write(" extern const Eo_Event_Description ", 345 s:write(" extern const Eo_Event_Description ",
354 self:gen_ffi_name(), ";\n") 346 "_" .. self.ecname, ";\n")
355 end, 347 end,
356 348
357 gen_ctor = function(self, s) 349 gen_ctor = function(self, s)