From b0e9d30a9e43de7191a301fd0c13826e82c483f1 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Tue, 15 Jul 2014 18:29:48 -0300 Subject: [PATCH] Fixes order of typedefs C++ compilers refuse to compile typedefs for types not declared yet. The typedefs in the elm_interface_atspi_accessible.h were out of order with the definition (and consequently its declaration) of its struct. This fixes by modifying the order of the typedefs to be after the struct definition. --- .../src/lib/elm_interface_atspi_accessible.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/legacy/elementary/src/lib/elm_interface_atspi_accessible.h b/legacy/elementary/src/lib/elm_interface_atspi_accessible.h index 0cfdaa7e17..b38ef08970 100644 --- a/legacy/elementary/src/lib/elm_interface_atspi_accessible.h +++ b/legacy/elementary/src/lib/elm_interface_atspi_accessible.h @@ -20,8 +20,6 @@ typedef uint64_t Elm_Atspi_State_Set; #define STATE_TYPE_GET(state_set, type) (state_set & (1 << type)) -typedef enum _Elm_Atspi_Role Elm_Atspi_Role; - /** * @enum _Elm_Atspi_Role * Describes the role of an object visible to AT-SPI Clients. @@ -134,7 +132,7 @@ enum _Elm_Atspi_Role ELM_ATSPI_ROLE_LAST_DEFINED, }; -typedef enum _Elm_Atspi_State_Type Elm_Atspi_State_Type; +typedef enum _Elm_Atspi_Role Elm_Atspi_Role; /** * @enum _Elm_Atspi_State_Type @@ -186,7 +184,7 @@ enum _Elm_Atspi_State_Type ELM_ATSPI_STATE_LAST_DEFINED, }; -typedef enum _Elm_Atspi_Relation_Type Elm_Atspi_Relation_Type; +typedef enum _Elm_Atspi_State_Type Elm_Atspi_State_Type; /** * Elm_Atspi_Relation_Type describes relation between two objects. @@ -214,8 +212,7 @@ enum _Elm_Atspi_Relation_Type { ELM_ATSPI_RELATION_LAST_DEFINED, }; - -typedef struct _Elm_Atspi_Event_State_Changed_Data Elm_Atspi_Event_State_Changed_Data; +typedef enum _Elm_Atspi_Relation_Type Elm_Atspi_Relation_Type; struct _Elm_Atspi_Event_State_Changed_Data { @@ -223,7 +220,8 @@ struct _Elm_Atspi_Event_State_Changed_Data Eina_Bool new_value; }; -typedef struct _Elm_Atspi_Event_Children_Changed_Data Elm_Atspi_Event_Children_Changed_Data; + +typedef struct _Elm_Atspi_Event_State_Changed_Data Elm_Atspi_Event_State_Changed_Data; struct _Elm_Atspi_Event_Children_Changed_Data { @@ -231,7 +229,7 @@ struct _Elm_Atspi_Event_Children_Changed_Data Eo *child; }; -typedef struct _Elm_Atspi_Attribute Elm_Atspi_Attribute; +typedef struct _Elm_Atspi_Event_Children_Changed_Data Elm_Atspi_Event_Children_Changed_Data; struct _Elm_Atspi_Attribute { @@ -239,7 +237,7 @@ struct _Elm_Atspi_Attribute const char *value; }; -typedef struct _Elm_Atspi_Relation Elm_Atspi_Relation; +typedef struct _Elm_Atspi_Attribute Elm_Atspi_Attribute; struct _Elm_Atspi_Relation { @@ -247,6 +245,8 @@ struct _Elm_Atspi_Relation const Eo *obj; }; +typedef struct _Elm_Atspi_Relation Elm_Atspi_Relation; + /** * Free Elm_Atspi_Attributes_List */