diff options
author | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-05-13 18:10:02 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-05-13 18:10:02 +0100 |
commit | 957a89168ba327c7c754af45894b9345a971561d (patch) | |
tree | ae40e5477e7d8fdba54e181d5d0d4bd11e29c47e /src/bindings | |
parent | d2365e6267c8bcd22c96176e4356328e6b6bfaef (diff) | |
download | efl-957a89168ba327c7c754af45894b9345a971561d.tar.gz |
eolian: precompute all enum field values (faster runtime, constness)
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/luajit/eolian.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua index 334d141292..f9f616867d 100644 --- a/src/bindings/luajit/eolian.lua +++ b/src/bindings/luajit/eolian.lua @@ -270,10 +270,10 @@ ffi.cdef [[ const char *eolian_type_struct_field_description_get(const Eolian_Struct_Type_Field *fl); const Eolian_Type *eolian_type_struct_field_type_get(const Eolian_Struct_Type_Field *fl); Eina_Iterator *eolian_type_enum_fields_get(const Eolian_Type *tp); - Eolian_Enum_Type_Field *eolian_type_enum_field_get(const Eolian_Type *tp, const char *field); + const Eolian_Enum_Type_Field *eolian_type_enum_field_get(const Eolian_Type *tp, const char *field); const char *eolian_type_enum_field_name_get(const Eolian_Enum_Type_Field *fl); const char *eolian_type_enum_field_description_get(const Eolian_Enum_Type_Field *fl); - const Eolian_Expression *eolian_type_enum_field_value_get(Eolian_Enum_Type_Field *fl, Eina_Bool force); + const Eolian_Expression *eolian_type_enum_field_value_get(const Eolian_Enum_Type_Field *fl, Eina_Bool force); const char *eolian_type_enum_legacy_prefix_get(const Eolian_Type *tp); const char *eolian_type_description_get(const Eolian_Type *tp); const char *eolian_type_file_get(const Eolian_Type *tp); @@ -510,7 +510,7 @@ M.Type = ffi.metatype("Eolian_Type", { end, enum_fields_get = function(self) - return Ptr_Iterator("Eolian_Enum_Type_Field*", + return Ptr_Iterator("const Eolian_Enum_Type_Field*", eolian.eolian_type_enum_fields_get(self)) end, |