summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-26 15:01:00 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:54 +0200
commita5e66b3421ef96c4b16fbd7a4fc57f739e6c52ff (patch)
treea7f0caa585eca7fd6f3e59bec038cfbf666dc57a /src/bindings
parent81a1d9659a12d3bee981309a3b7eb3a695169f04 (diff)
eolian: doc token ref resolver now takes unit
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index 19c91bd..473a587 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -398,7 +398,7 @@ ffi.cdef [[
398 void eolian_doc_token_init(Eolian_Doc_Token *tok); 398 void eolian_doc_token_init(Eolian_Doc_Token *tok);
399 Eolian_Doc_Token_Type eolian_doc_token_type_get(const Eolian_Doc_Token *tok); 399 Eolian_Doc_Token_Type eolian_doc_token_type_get(const Eolian_Doc_Token *tok);
400 char *eolian_doc_token_text_get(const Eolian_Doc_Token *tok); 400 char *eolian_doc_token_text_get(const Eolian_Doc_Token *tok);
401 Eolian_Doc_Ref_Type eolian_doc_token_ref_get(const Eolian_Doc_Token *tok, const void **data, const void **data2); 401 Eolian_Doc_Ref_Type eolian_doc_token_ref_get(const Eolian_Unit *unit, const Eolian_Doc_Token *tok, const void **data, const void **data2);
402]] 402]]
403 403
404local cutil = require("cutil") 404local cutil = require("cutil")
@@ -1597,9 +1597,9 @@ M.Eolian_Doc_Token = ffi.metatype("Eolian_Doc_Token", {
1597 return ret 1597 return ret
1598 end, 1598 end,
1599 1599
1600 ref_get = function(self) 1600 ref_get = function(self, unit)
1601 local stor = ffi.new("const void *[2]") 1601 local stor = ffi.new("const void *[2]")
1602 local tp = tonumber(eolian.eolian_doc_token_ref_get(self, stor, stor + 1)) 1602 local tp = tonumber(eolian.eolian_doc_token_ref_get(unit, self, stor, stor + 1))
1603 local reft = M.doc_ref_type 1603 local reft = M.doc_ref_type
1604 if tp == reft.CLASS then 1604 if tp == reft.CLASS then
1605 return tp, ffi.cast("const Eolian_Class *", stor[0]) 1605 return tp, ffi.cast("const Eolian_Class *", stor[0])