elua: update lualian against latest changes

This commit is contained in:
Daniel Kolesa 2014-06-24 13:56:41 +01:00
parent 7a8ef6d02a
commit ac22afec8a
3 changed files with 15 additions and 0 deletions

View File

@ -57,6 +57,7 @@ getopt.parse {
for i, v in ipairs(opts["I"] or {}) do
lualian.include_dir(v)
end
lualian.load_eot_files()
for i, fname in ipairs(args) do
gen_file(opts, i, fname)
end

View File

@ -691,6 +691,10 @@ M.include_dir = function(dir)
end
end
M.load_eot_files = function()
return eolian.all_eot_files_parse()
end
M.generate = function(fname, modname, libname, fstream)
if not eolian.eo_file_parse(fname) then
error("Failed parsing file: " .. fname)

View File

@ -47,10 +47,12 @@ ffi.cdef [[
} Eolian_Function_Scope;
Eina_Bool eolian_eo_file_parse(const char *filename);
Eina_Bool eolian_eot_file_parse(const char *filepath);
int eolian_init(void);
int eolian_shutdown(void);
Eina_Bool eolian_directory_scan(const char *dir);
Eina_Bool eolian_all_eo_files_parse();
Eina_Bool eolian_all_eot_files_parse();
Eina_Bool eolian_show(const Eolian_Class *klass);
Eolian_Class *eolian_class_find_by_name(const char *class_name);
Eolian_Class *eolian_class_find_by_file(const char *file_name);
@ -134,6 +136,14 @@ M.eo_file_parse = function(fname)
return eolian.eolian_eo_file_parse(fname) ~= 0
end
M.all_eot_files_parse = function()
return eolian.eolian_all_eot_files_parse() ~= 0
end
M.eot_file_parse = function(fname)
return eolian.eolian_eot_file_parse(fname) ~= 0
end
M.show = function(klass)
return eolian.eolian_show(klass) ~= 0
end