diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-10 02:18:10 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-10 02:18:10 +0000 |
commit | 532284dbbe4259a9f2291f44d3eff376849e8031 (patch) | |
tree | 17ea441edf31210f852f2067f23d41320d52eefa /src/lib/ecore | |
parent | 7b0ae69adcb1314c3b2a87f69d7634e357820d1c (diff) |
efl: forward typedef to avoid including useless headers.
do not include Ecore_Input.h just to get Ecore_Window and Ecore_Getopt
to get handful typedefs.
NOTE: why do we have the #ifdefs around these predefs? At least GCC does not warn if we typedef twice the same thing (if they are identical)
SVN revision: 82499
Diffstat (limited to 'src/lib/ecore')
-rw-r--r-- | src/lib/ecore/Ecore_Getopt.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/ecore/Ecore_Getopt.h b/src/lib/ecore/Ecore_Getopt.h index 3574ba5bfa..d4ce3aa709 100644 --- a/src/lib/ecore/Ecore_Getopt.h +++ b/src/lib/ecore/Ecore_Getopt.h | |||
@@ -86,12 +86,21 @@ typedef enum { | |||
86 | ECORE_GETOPT_DESC_ARG_REQUIREMENT_OPTIONAL = 3 | 86 | ECORE_GETOPT_DESC_ARG_REQUIREMENT_OPTIONAL = 3 |
87 | } Ecore_Getopt_Desc_Arg_Requirement; | 87 | } Ecore_Getopt_Desc_Arg_Requirement; |
88 | 88 | ||
89 | typedef union _Ecore_Getopt_Value Ecore_Getopt_Value; | ||
90 | |||
91 | typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store; | 89 | typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store; |
92 | typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback; | 90 | typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback; |
93 | typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc; | 91 | |
94 | typedef struct _Ecore_Getopt Ecore_Getopt; | 92 | #ifndef _ECORE_GETOPT_PREDEF |
93 | typedef struct _Ecore_Getopt Ecore_Getopt; | ||
94 | #define _ECORE_GETOPT_PREDEF 1 | ||
95 | #endif | ||
96 | #ifndef _ECORE_GETOPT_DESC_PREDEF | ||
97 | typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc; | ||
98 | #define _ECORE_GETOPT_DESC_PREDEF 1 | ||
99 | #endif | ||
100 | #ifndef _ECORE_GETOPT_VALUE_PREDEF | ||
101 | typedef union _Ecore_Getopt_Value Ecore_Getopt_Value; | ||
102 | #define _ECORE_GETOPT_VALUE_PREDEF 1 | ||
103 | #endif | ||
95 | 104 | ||
96 | union _Ecore_Getopt_Value | 105 | union _Ecore_Getopt_Value |
97 | { | 106 | { |