eolian: fix invalid type_type mapping in lua bindings

This commit is contained in:
Daniel Kolesa 2016-04-18 16:09:21 +01:00
parent 6fc6a9eebe
commit 525dcaa6ab
1 changed files with 5 additions and 14 deletions

View File

@ -70,17 +70,13 @@ ffi.cdef [[
typedef enum typedef enum
{ {
EOLIAN_TYPE_UNKNOWN_TYPE, EOLIAN_TYPE_UNKNOWN_TYPE = 0,
EOLIAN_TYPE_VOID, EOLIAN_TYPE_VOID,
EOLIAN_TYPE_REGULAR, EOLIAN_TYPE_REGULAR,
EOLIAN_TYPE_COMPLEX, EOLIAN_TYPE_COMPLEX,
EOLIAN_TYPE_POINTER, EOLIAN_TYPE_POINTER,
EOLIAN_TYPE_FUNCTION, EOLIAN_TYPE_CLASS,
EOLIAN_TYPE_STRUCT, EOLIAN_TYPE_UNDEFINED
EOLIAN_TYPE_STRUCT_OPAQUE,
EOLIAN_TYPE_ENUM,
EOLIAN_TYPE_ALIAS,
EOLIAN_TYPE_CLASS
} Eolian_Type_Type; } Eolian_Type_Type;
typedef enum { typedef enum {
@ -459,13 +455,8 @@ M.type_type = {
REGULAR = 2, REGULAR = 2,
COMPLEX = 3, COMPLEX = 3,
POINTER = 4, POINTER = 4,
FUNCTION = 5, CLASS = 5,
STRUCT = 6, UNDEFINED = 6
STRUCT_OPAQUE = 7,
ENUM = 8,
ALIAS = 9,
CLASS = 10,
UNDEFINED = 11
} }
M.typedecl_type = { M.typedecl_type = {