Put everything in edje_private. It should fix a compilation
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 25 Sep 2010 17:10:33 +0000 (17:10 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 25 Sep 2010 17:10:33 +0000 (17:10 +0000)
bug on Windows

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@52736 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

20 files changed:
src/lib/edje_cache.c
src/lib/edje_calc.c
src/lib/edje_edit.c
src/lib/edje_embryo.c
src/lib/edje_entry.c
src/lib/edje_load.c
src/lib/edje_lua.c
src/lib/edje_lua2.c
src/lib/edje_lua_script_only.c
src/lib/edje_main.c
src/lib/edje_match.c
src/lib/edje_message_queue.c
src/lib/edje_module.c
src/lib/edje_private.h
src/lib/edje_program.c
src/lib/edje_script_only.c
src/lib/edje_text.c
src/lib/edje_textblock_styles.c
src/lib/edje_util.c
src/lib/edje_var.c

index 6fa66a0..b2a0f8c 100644 (file)
@@ -1,27 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca (size_t);
-#endif
-
-#include <string.h>
-#include <sys/stat.h>
-
 #include "edje_private.h"
 
 
index 364c7a5..be21e17 100644 (file)
@@ -1,6 +1,3 @@
-#include <string.h>
-#include <math.h>
-
 #include "edje_private.h"
 
 #define FLAG_NONE 0
index 184211e..22bcebf 100644 (file)
@@ -7,27 +7,6 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <limits.h>
-#include <sys/stat.h>
-#include <errno.h>
-
-#ifndef _MSC_VER
-# include <unistd.h>
-#endif
-
-#ifdef HAVE_LOCALE_H
-# include <locale.h>
-#endif
-
-#ifdef HAVE_EVIL
-# include <Evil.h>
-#endif
-
 #include "edje_private.h"
 
 #define EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT
index 9c602ed..f9d3440 100644 (file)
@@ -1,26 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca (size_t);
-#endif
-
 #include "edje_private.h"
 
 /*
index d273e03..bfd5817 100644 (file)
@@ -1,30 +1,6 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca (size_t);
-#endif
-
 #include "edje_private.h"
 
 #ifdef HAVE_ECORE_IMF
-#include <Ecore_IMF_Evas.h>
 
 static int _edje_entry_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos);
 static Eina_Bool _edje_entry_imf_event_commit_cb(void *data, int type, void *event);
index 325af02..660eff0 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 #include "edje_private.h"
 
 #ifdef EDJE_PROGRAM_CACHE
index a99c364..7b599b9 100644 (file)
@@ -1,26 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca(size_t);
-#endif
-
 #include "edje_private.h"
 
 #if 0
index 406c260..8484dd5 100644 (file)
  * @endcode
  * 
  */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-  void *alloca(size_t);
-#endif
 
 #include "edje_private.h"
 
index e3268ec..e283c83 100644 (file)
@@ -1,24 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca(size_t);
-#endif
-
 #include "edje_private.h"
 
 Eina_Bool
index bf0c188..6ac0221 100644 (file)
@@ -1,5 +1,3 @@
-#include <time.h>
-
 #include "edje_private.h"
 
 static Edje_Version _version = { VMAJ, VMIN, VMIC, VREV };
index caa7084..8bf7d07 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 #include "edje_private.h"
 
 /* States manipulations. */
index a66ad4b..8640f76 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 #include "edje_private.h"
 
 static int _injob = 0;
index 915d6a0..6499290 100644 (file)
@@ -1,37 +1,3 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca (size_t);
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <libgen.h>
-
-#ifdef HAVE_EVIL
-# include <Evil.h>
-#endif
-
-#include <Eina.h>
-#include <Ecore_File.h>
-
-#include "Edje.h"
 #include "edje_private.h"
 
 Eina_Hash *_registered_modules = NULL;
index 8ffc141..7c70ca6 100644 (file)
@@ -5,6 +5,10 @@
 # include <config.h>
 #endif
 
+#ifndef _WIN32
+# define _GNU_SOURCE
+#endif
+
 #ifdef HAVE_ALLOCA_H
 # include <alloca.h>
 #elif defined __GNUC__
 void *alloca (size_t);
 #endif
 
+#include <string.h>
+#include <limits.h>
+#include <sys/stat.h>
+#include <time.h>
+#include <sys/time.h>
+#include <errno.h>
+#include <libgen.h>
+
+#include <lua.h>
+#include <lualib.h>
+#include <lauxlib.h>
+#include <setjmp.h>
+
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif
+
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif
+
 #ifdef HAVE_EVIL
 # include <Evil.h>
 #endif
 
 #include <Eina.h>
+#include <Eet.h>
 #include <Evas.h>
 #include <Ecore.h>
+#include <Ecore_File.h>
 #ifdef HAVE_ECORE_IMF
 # include <Ecore_IMF.h>
+# include <Ecore_IMF_Evas.h>
 #endif
-#include <Eet.h>
 #include <Embryo.h>
-#include <time.h>
-#include <sys/time.h>
 
 #include "Edje.h"
 
-#include <lua.h>
-#include <lualib.h>
-#include <lauxlib.h>
-#include <setjmp.h>
-
 EAPI extern int _edje_default_log_dom ; 
 
 #ifdef EDJE_DEFAULT_LOG_COLOR
index 45a3a2b..209af77 100644 (file)
@@ -1,30 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifndef _WIN32
-# define _GNU_SOURCE
-#endif
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca (size_t);
-#endif
-
-#include <string.h>
-
 #include "edje_private.h"
 
 static void _edje_emit_cb(Edje *ed, const char *sig, const char *src);
index 6a57c02..bd5c0f0 100644 (file)
@@ -1,24 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef  __cplusplus
-extern "C"
-# endif
-void *alloca(size_t);
-#endif
-
 #include "edje_private.h"
 
 /*
index 2fdb0c5..a37ad10 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 #include "edje_private.h"
 
 
index d2013af..13a68ad 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 #include "edje_private.h"
 
 static int
index 994eb92..b7dd24a 100644 (file)
@@ -1,6 +1,3 @@
-#include <string.h>
-#include <ctype.h>
-
 #include "edje_private.h"
 
 typedef struct _Edje_Box_Layout Edje_Box_Layout;
index 2bd87e4..3031355 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 #include "edje_private.h"
 
 static Eina_Bool _edje_var_timer_cb(void *data);