[prev in list] [next in list] [prev in thread] [next in thread]
List: enlightenment-svn
Subject: E SVN: caro IN trunk/ecore: . src/lib/ecore src/lib/ecore_con
From: "Enlightenment SVN" <no-reply () enlightenment ! org>
Date: 2009-01-31 18:33:39
Message-ID: 20090131183340.4B2951183FC () e2 ! enlightenment ! org
[Download RAW message or body]
Log:
remove a bit the mess n ecore. It's just the first patch...
* add vim header
* include config.h when necessary
* fix the order of some include
* move the standard header in ecore_private.h to the source files
I have recompiled all the efl and e17, and e17 seems to work fine with these \
changes. If you encounter problems with that commit, let me know.
Author: caro
Date: 2009-01-31 10:33:39 -0800 (Sat, 31 Jan 2009)
New Revision: 38864
Modified:
trunk/ecore/configure.ac trunk/ecore/src/lib/ecore/Ecore_Getopt.h \
trunk/ecore/src/lib/ecore/Makefile.am trunk/ecore/src/lib/ecore/ecore.c \
trunk/ecore/src/lib/ecore/ecore_anim.c trunk/ecore/src/lib/ecore/ecore_app.c \
trunk/ecore/src/lib/ecore/ecore_events.c trunk/ecore/src/lib/ecore/ecore_exe.c \
trunk/ecore/src/lib/ecore/ecore_getopt.c trunk/ecore/src/lib/ecore/ecore_hash.c \
trunk/ecore/src/lib/ecore/ecore_idle_enterer.c \
trunk/ecore/src/lib/ecore/ecore_idle_exiter.c trunk/ecore/src/lib/ecore/ecore_idler.c \
trunk/ecore/src/lib/ecore/ecore_list.c trunk/ecore/src/lib/ecore/ecore_main.c \
trunk/ecore/src/lib/ecore/ecore_path.c trunk/ecore/src/lib/ecore/ecore_pipe.c \
trunk/ecore/src/lib/ecore/ecore_plugin.c trunk/ecore/src/lib/ecore/ecore_poll.c \
trunk/ecore/src/lib/ecore/ecore_private.h trunk/ecore/src/lib/ecore/ecore_sheap.c \
trunk/ecore/src/lib/ecore/ecore_signal.c trunk/ecore/src/lib/ecore/ecore_str.c \
trunk/ecore/src/lib/ecore/ecore_strbuf.c trunk/ecore/src/lib/ecore/ecore_time.c \
trunk/ecore/src/lib/ecore/ecore_timer.c trunk/ecore/src/lib/ecore/ecore_tree.c \
trunk/ecore/src/lib/ecore/ecore_value.c trunk/ecore/src/lib/ecore_con/Ecore_Con.h \
trunk/ecore/src/lib/ecore_con/ecore_con.c \
trunk/ecore/src/lib/ecore_con/ecore_con_dns.c \
trunk/ecore/src/lib/ecore_con/ecore_con_info.c \
trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c \
trunk/ecore/src/lib/ecore_con/ecore_con_url.c \
trunk/ecore/src/lib/ecore_config/ecore_config.c \
trunk/ecore/src/lib/ecore_config/ecore_config_db.c \
trunk/ecore/src/lib/ecore_config/ecore_config_extra.c \
trunk/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c \
trunk/ecore/src/lib/ecore_config/ecore_config_ipc_main.c \
trunk/ecore/src/lib/ecore_config/ecore_config_storage.c \
trunk/ecore/src/lib/ecore_config/ecore_config_util.c \
trunk/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h \
trunk/ecore/src/lib/ecore_directfb/ecore_directfb.c \
trunk/ecore/src/lib/ecore_evas/ecore_evas.c \
trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c \
trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c \
trunk/ecore/src/lib/ecore_evas/ecore_evas_quartz
.c trunk/ecore/src/lib/ecore_evas/ecore_evas_sdl.c \
trunk/ecore/src/lib/ecore_evas/ecore_evas_util.c \
trunk/ecore/src/lib/ecore_evas/ecore_evas_x.c trunk/ecore/src/lib/ecore_fb/ecore_fb.c \
trunk/ecore/src/lib/ecore_fb/ecore_fb_li.c \
trunk/ecore/src/lib/ecore_fb/ecore_fb_private.h \
trunk/ecore/src/lib/ecore_fb/ecore_fb_ts.c trunk/ecore/src/lib/ecore_fb/ecore_fb_vt.c \
trunk/ecore/src/lib/ecore_file/ecore_file.c \
trunk/ecore/src/lib/ecore_file/ecore_file_download.c \
trunk/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c \
trunk/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c \
trunk/ecore/src/lib/ecore_file/ecore_file_path.c \
trunk/ecore/src/lib/ecore_imf/Ecore_IMF.h trunk/ecore/src/lib/ecore_imf/ecore_imf.c \
trunk/ecore/src/lib/ecore_imf/ecore_imf_context.c \
trunk/ecore/src/lib/ecore_imf/ecore_imf_module.c \
trunk/ecore/src/lib/ecore_ipc/Ecore_Ipc.h trunk/ecore/src/lib/ecore_ipc/ecore_ipc.c \
trunk/ecore/src/lib/ecore_job/ecore_job.c trunk/ecore/src/lib/ecore_sdl/ecore_sdl.c \
trunk/ecore/src/lib/ecore_txt/ecore_txt.c trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_composite.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_cursor.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_damage.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_e.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_events.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_fixes.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gc.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_icccm.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_mwm.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_netwm.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_pixmap.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_private.h \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_screensaver.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_select ion.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_sync.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_test.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c \
trunk/ecore/src/lib/ecore_x/xlib/ecore_x_xinerama.c
Modified: trunk/ecore/configure.ac
===================================================================
--- trunk/ecore/configure.ac 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/configure.ac 2009-01-31 18:33:39 UTC (rev 38864)
@@ -116,6 +116,7 @@
dnl check common functions and headers
AC_CHECK_FUNCS(gettimeofday)
AC_CHECK_FUNCS(strlcpy)
+AC_FUNC_ALLOCA
dnl gnutls
want_gnutls="yes"
Modified: trunk/ecore/src/lib/ecore/Ecore_Getopt.h
===================================================================
--- trunk/ecore/src/lib/ecore/Ecore_Getopt.h 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/Ecore_Getopt.h 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,8 +1,8 @@
#ifndef _ECORE_GETOPT_H
#define _ECORE_GETOPT_H
+#include <stdio.h>
#include <Eina.h>
-#include <stdio.h>
#ifdef EAPI
# undef EAPI
Modified: trunk/ecore/src/lib/ecore/Makefile.am
===================================================================
--- trunk/ecore/src/lib/ecore/Makefile.am 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/Makefile.am 2009-01-31 18:33:39 UTC (rev 38864)
@@ -12,10 +12,11 @@
libecore_la_SOURCES = \
ecore.c \
+ecore_anim.c \
ecore_app.c \
-ecore_anim.c \
ecore_events.c \
ecore_exe.c \
+ecore_getopt.c \
ecore_hash.c \
ecore_idle_enterer.c \
ecore_idle_exiter.c \
@@ -25,6 +26,7 @@
ecore_path.c \
ecore_pipe.c \
ecore_plugin.c \
+ecore_poll.c \
ecore_sheap.c \
ecore_signal.c \
ecore_str.c \
@@ -32,9 +34,7 @@
ecore_time.c \
ecore_timer.c \
ecore_tree.c \
-ecore_value.c \
-ecore_poll.c \
-ecore_getopt.c
+ecore_value.c
libecore_la_LIBADD = @dlopen_libs@ @EINA_LIBS@ @EVIL_LIBS@ @WIN32_LIBS@ -lm
libecore_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info \
@version_info@
Modified: trunk/ecore/src/lib/ecore/ecore.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,7 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -2,2 +6,8 @@
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <fcntl.h>
+
#ifdef HAVE_LOCALE_H
@@ -10,14 +20,18 @@
# include <langinfo.h>
#endif
-#include "Ecore.h"
-#include "ecore_private.h"
+#ifdef HAVE_SYS_MMAN_H
+# include <sys/mman.h>
+#endif
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
#include <Eina.h>
+#include "Ecore.h"
+#include "ecore_private.h"
+
static const char *_ecore_magic_string_get(Ecore_Magic m);
static int _ecore_init_count = 0;
Modified: trunk/ecore/src/lib/ecore/ecore_anim.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_anim.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_anim.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_app.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_app.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_app.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,7 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -2,2 +6,5 @@
+#include <stdlib.h>
+#include <unistd.h>
+
#ifdef HAVE_EVIL
Modified: trunk/ecore/src/lib/ecore/ecore_events.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_events.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_events.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_exe.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_exe.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_exe.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,7 +1,23 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
#include <errno.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <fcntl.h>
+
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
-#endif /* HAVE_SYS_WAIT_H */
+#endif
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_getopt.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_getopt.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_getopt.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,7 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -7,8 +11,7 @@
#include <stdarg.h>
#include <ctype.h>
-#include <Ecore.h>
-
+#include "Ecore.h"
#include "Ecore_Getopt.h"
static const char *prog = NULL;
@@ -18,7 +21,7 @@
static int helpcol = 80 / 3;
static void
-_ecore_getopt_help_print_replace_program(FILE *fp, const Ecore_Getopt *parser, const \
char *text) +_ecore_getopt_help_print_replace_program(FILE *fp, const Ecore_Getopt \
*parser __UNUSED__, const char *text) {
do
{
@@ -321,7 +324,7 @@
const Ecore_Getopt_Desc_Store *store = &desc->action_param.store;
char buf[64];
const char *str;
- int len;
+ size_t len;
fputc('\n', fp);
for (used = 0; used < base; used++)
@@ -802,7 +805,7 @@
}
static unsigned char
-_ecore_getopt_parse_store(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, \
Ecore_Getopt_Value *value, const char *arg_val) +_ecore_getopt_parse_store(const \
Ecore_Getopt *parser __UNUSED__, const Ecore_Getopt_Desc *desc, Ecore_Getopt_Value \
*value, const char *arg_val) {
const Ecore_Getopt_Desc_Store *store = &desc->action_param.store;
long int v;
@@ -922,7 +925,7 @@
}
static unsigned char
-_ecore_getopt_parse_store_const(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_store_const(const Ecore_Getopt *parser __UNUSED__, const \
Ecore_Getopt_Desc *desc, Ecore_Getopt_Value *val, const char *arg_val __UNUSED__) {
if (!val->ptrp)
{
@@ -935,7 +938,7 @@
}
static unsigned char
-_ecore_getopt_parse_store_true(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_store_true(const Ecore_Getopt *parser __UNUSED__, const \
Ecore_Getopt_Desc *desc, Ecore_Getopt_Value *val, const char *arg_val __UNUSED__) {
if (!val->boolp)
{
@@ -947,7 +950,7 @@
}
static unsigned char
-_ecore_getopt_parse_store_false(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_store_false(const Ecore_Getopt *parser __UNUSED__, const \
Ecore_Getopt_Desc *desc, Ecore_Getopt_Value *val, const char *arg_val __UNUSED__) {
if (!val->boolp)
{
@@ -959,7 +962,7 @@
}
static unsigned char
-_ecore_getopt_parse_choice(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_choice(const Ecore_Getopt *parser __UNUSED__, const \
Ecore_Getopt_Desc *desc, Ecore_Getopt_Value *val, const char *arg_val) {
const char * const *pchoice;
@@ -993,7 +996,7 @@
}
static unsigned char
-_ecore_getopt_parse_append(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_append(const Ecore_Getopt *parser __UNUSED__, const \
Ecore_Getopt_Desc *desc, Ecore_Getopt_Value *val, const char *arg_val) {
void *data;
long int v;
@@ -1113,7 +1116,7 @@
}
static unsigned char
-_ecore_getopt_parse_count(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, \
Ecore_Getopt_Value *val, const char *arg_val) +_ecore_getopt_parse_count(const \
Ecore_Getopt *parser __UNUSED__, const Ecore_Getopt_Desc *desc, Ecore_Getopt_Value \
*val, const char *arg_val __UNUSED__) {
if (!val->intp)
{
@@ -1169,7 +1172,7 @@
}
static unsigned char
-_ecore_getopt_parse_help(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, \
Ecore_Getopt_Value *val, const char *arg_val) +_ecore_getopt_parse_help(const \
Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc __UNUSED__, Ecore_Getopt_Value \
*val, const char *arg_val __UNUSED__) {
if (val->boolp)
(*val->boolp) = 1;
@@ -1178,7 +1181,7 @@
}
static unsigned char
-_ecore_getopt_parse_version(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_version(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val __UNUSED__) {
if (val->boolp)
(*val->boolp) = 1;
@@ -1192,7 +1195,7 @@
}
static unsigned char
-_ecore_getopt_parse_copyright(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_copyright(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val __UNUSED__) {
if (val->boolp)
(*val->boolp) = 1;
@@ -1206,7 +1209,7 @@
}
static unsigned char
-_ecore_getopt_parse_license(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val) \
+_ecore_getopt_parse_license(const Ecore_Getopt *parser, const Ecore_Getopt_Desc \
*desc, Ecore_Getopt_Value *val, const char *arg_val __UNUSED__) {
if (val->boolp)
(*val->boolp) = 1;
@@ -1254,7 +1257,7 @@
}
static unsigned char
-_ecore_getopt_parse_arg_long(const Ecore_Getopt *parser, Ecore_Getopt_Value *values, \
int argc, char **argv, int *idx, int *nonargs, const char *arg) \
+_ecore_getopt_parse_arg_long(const Ecore_Getopt *parser, Ecore_Getopt_Value *values, \
int argc __UNUSED__, char **argv, int *idx, int *nonargs, const char *arg) {
const Ecore_Getopt_Desc *desc;
Ecore_Getopt_Desc_Arg_Requirement arg_req;
@@ -1317,7 +1320,7 @@
}
static unsigned char
-_ecore_getopt_parse_arg_short(const Ecore_Getopt *parser, Ecore_Getopt_Value \
*values, int argc, char **argv, int *idx, int *nonargs, const char *arg) \
+_ecore_getopt_parse_arg_short(const Ecore_Getopt *parser, Ecore_Getopt_Value \
*values, int argc __UNUSED__, char **argv, int *idx, int *nonargs, const char *arg) \
{ int run = 1;
while (run && (arg[0] != '\0'))
@@ -1649,7 +1652,7 @@
* @c callback_data value is ignored, you can safely use @c NULL.
*/
unsigned char
-ecore_getopt_callback_geometry_parse(const Ecore_Getopt *parser, const \
Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage) \
+ecore_getopt_callback_geometry_parse(const Ecore_Getopt *parser __UNUSED__, const \
Ecore_Getopt_Desc *desc __UNUSED__, const char *str, void *data __UNUSED__, \
Ecore_Getopt_Value *storage) {
Eina_Rectangle *v = (Eina_Rectangle *)storage->ptrp;
Modified: trunk/ecore/src/lib/ecore/ecore_hash.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_hash.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_hash.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,14 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
+#include <string.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "Ecore_Data.h"
@@ -413,7 +424,7 @@
static int
_ecore_hash_node_add(Ecore_Hash *hash, Ecore_Hash_Node *node)
{
- unsigned int hash_val;
+ unsigned long hash_val;
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
CHECK_PARAM_POINTER_RETURN("node", node, FALSE);
@@ -424,7 +435,7 @@
/* Compute the position in the table */
if (!hash->hash_func)
- hash_val = (unsigned int)node->key % ecore_prime_table[hash->size];
+ hash_val = (unsigned long)node->key % ecore_prime_table[hash->size];
else
hash_val = ECORE_COMPUTE_HASH(hash, node->key);
@@ -475,14 +486,14 @@
{
Ecore_Hash_Node *node = NULL;
Ecore_Hash_Node *list;
- unsigned int hash_val;
+ unsigned long hash_val;
void *ret = NULL;
CHECK_PARAM_POINTER_RETURN("hash", hash, NULL);
/* Compute the position in the table */
if (!hash->hash_func)
- hash_val = (unsigned int )key % ecore_prime_table[hash->size];
+ hash_val = (unsigned long )key % ecore_prime_table[hash->size];
else
hash_val = ECORE_COMPUTE_HASH(hash, key);
@@ -580,7 +591,7 @@
static Ecore_Hash_Node *
_ecore_hash_node_get(Ecore_Hash *hash, const void *key)
{
- unsigned int hash_val;
+ unsigned long hash_val;
Ecore_Hash_Node *node = NULL;
CHECK_PARAM_POINTER_RETURN("hash", hash, NULL);
@@ -592,7 +603,7 @@
/* Compute the position in the table */
if (!hash->hash_func)
- hash_val = (unsigned int )key % ecore_prime_table[hash->size];
+ hash_val = (unsigned long)key % ecore_prime_table[hash->size];
else
hash_val = ECORE_COMPUTE_HASH(hash, key);
Modified: trunk/ecore/src/lib/ecore/ecore_idle_enterer.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_idle_enterer.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore/ecore_idle_enterer.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_idle_exiter.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_idle_exiter.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_idle_exiter.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_idler.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_idler.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_idler.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_list.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_list.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_list.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,14 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <string.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "Ecore_Data.h"
Modified: trunk/ecore/src/lib/ecore/ecore_main.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_main.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_main.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -11,6 +11,8 @@
# define USER_TIMER_MINIMUM 0x0a
#endif
+#include <stdlib.h>
+#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include <sys/types.h>
Modified: trunk/ecore/src/lib/ecore/ecore_path.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_path.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_path.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -6,6 +6,13 @@
# include <config.h>
#endif
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <dirent.h>
+
#include "ecore_private.h"
#include "Ecore_Data.h"
#include "Ecore_Str.h"
Modified: trunk/ecore/src/lib/ecore/ecore_pipe.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_pipe.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_pipe.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -7,6 +7,7 @@
#endif
#include <stdlib.h>
+#include <stdio.h>
#include <errno.h>
#ifdef HAVE_EVIL
Modified: trunk/ecore/src/lib/ecore/ecore_plugin.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_plugin.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_plugin.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -8,13 +8,19 @@
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <dirent.h>
+
#ifdef HAVE_DLFCN_H
# include <dlfcn.h>
#endif
#ifdef HAVE_EVIL_H
-# include <evil.h>
+# include <Evil.h>
#endif
#include "Ecore_Data.h"
@@ -251,7 +257,7 @@
}
static Eina_Bool
-_hash_keys(const Eina_Hash *hash, const char *key, void *list)
+_hash_keys(const Eina_Hash *hash __UNUSED__, const char *key, void *list)
{
ecore_list_append(list, strdup(key));
return EINA_TRUE;
Modified: trunk/ecore/src/lib/ecore/ecore_poll.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_poll.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_poll.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_private.h
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_private.h 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_private.h 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,33 +1,13 @@
#ifndef _ECORE_PRIVATE_H
#define _ECORE_PRIVATE_H
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
+
#ifdef HAVE_SIGNAL_H
# include <signal.h>
#endif
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <dirent.h>
-#ifdef HAVE_SYS_RESOURCE_H
-# include <sys/resource.h>
-#endif
-#include <eina_types.h>
-
-#ifdef HAVE_SYS_MMAN_H
-# include <sys/mman.h>
-#endif
-
#ifdef EAPI
# undef EAPI
#endif
Modified: trunk/ecore/src/lib/ecore/ecore_sheap.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_sheap.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_sheap.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,14 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <string.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "Ecore_Data.h"
Modified: trunk/ecore/src/lib/ecore/ecore_signal.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_signal.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_signal.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,9 +1,20 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
#ifndef _WIN32
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_str.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_str.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_str.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -17,8 +17,18 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
#include <sys/types.h>
-#include <string.h>
#include "ecore_private.h"
#include "Ecore_Str.h"
Modified: trunk/ecore/src/lib/ecore/ecore_strbuf.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_strbuf.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_strbuf.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <string.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "Ecore_Data.h"
Modified: trunk/ecore/src/lib/ecore/ecore_time.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_time.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_time.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -6,6 +6,8 @@
# include <config.h>
#endif
+#include <stdlib.h>
+
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
Modified: trunk/ecore/src/lib/ecore/ecore_timer.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_timer.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_timer.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,14 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <stdio.h>
+
#include "ecore_private.h"
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore/ecore_tree.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_tree.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_tree.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <string.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "Ecore_Data.h"
Modified: trunk/ecore/src/lib/ecore/ecore_value.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_value.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore/ecore_value.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -24,6 +24,17 @@
*/
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
+#include <string.h>
+
#include "Ecore.h"
#include "Ecore_Data.h"
#include "ecore_private.h"
@@ -100,10 +111,10 @@
EAPI int
ecore_direct_compare(const void *key1, const void *key2)
{
- unsigned int k1, k2;
+ unsigned long k1, k2;
- k1 = (unsigned int) key1;
- k2 = (unsigned int) key2;
+ k1 = (unsigned long) key1;
+ k2 = (unsigned long) key2;
if (k1 > k2)
return 1;
Modified: trunk/ecore/src/lib/ecore_con/Ecore_Con.h
===================================================================
--- trunk/ecore/src/lib/ecore_con/Ecore_Con.h 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_con/Ecore_Con.h 2009-01-31 18:33:39 UTC (rev 38864)
@@ -4,9 +4,17 @@
#ifndef _ECORE_CON_H
#define _ECORE_CON_H
+#include <time.h>
+#include <libgen.h>
+#ifdef HAVE_NETDB_H
+# include <netdb.h>
+#endif
+#include <Ecore_Data.h>
+
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
@@ -25,13 +33,6 @@
# endif
#endif
-#include <time.h>
-#include <libgen.h>
-#ifdef HAVE_NETDB_H
-# include <netdb.h>
-#endif
-#include <Ecore_Data.h>
-
/**
* @file Ecore_Con.h
* @brief Sockets functions.
Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c
===================================================================
--- trunk/ecore/src/lib/ecore_con/ecore_con.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_con/ecore_con.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -2,14 +2,18 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <sys/stat.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
+#include <unistd.h>
+#include <fcntl.h>
-#include <config.h>
-
#include "Ecore.h"
#include "ecore_private.h"
#include "Ecore_Con.h"
Modified: trunk/ecore/src/lib/ecore_con/ecore_con_dns.c
===================================================================
--- trunk/ecore/src/lib/ecore_con/ecore_con_dns.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_con/ecore_con_dns.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,6 +1,7 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* Simple dns lookup
*
@@ -26,10 +27,12 @@
*
* * Need more buffer overflow checks.
*/
-#include "ecore_private.h"
-#include "Ecore.h"
-#include "ecore_con_private.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <string.h>
#include <ctype.h>
#include <netinet/in.h>
#include <sys/socket.h>
@@ -37,6 +40,10 @@
#include <arpa/nameser.h>
#include <netdb.h>
+#include "ecore_private.h"
+#include "Ecore.h"
+#include "ecore_con_private.h"
+
typedef struct _CB_Data CB_Data;
struct _CB_Data
Modified: trunk/ecore/src/lib/ecore_con/ecore_con_info.c
===================================================================
--- trunk/ecore/src/lib/ecore_con/ecore_con_info.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_con/ecore_con_info.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,16 +1,19 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* getaddrinfo with callback
*
* man getaddrinfo
*
*/
-#include "ecore_private.h"
-#include "Ecore.h"
-#include "ecore_con_private.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <string.h>
#include <ctype.h>
#include <netinet/in.h>
#include <sys/socket.h>
@@ -18,6 +21,10 @@
#include <arpa/nameser.h>
#include <netdb.h>
+#include "ecore_private.h"
+#include "Ecore.h"
+#include "ecore_con_private.h"
+
typedef struct _CB_Data CB_Data;
struct _CB_Data
Modified: trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c
===================================================================
--- trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -2,6 +2,10 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if USE_GNUTLS
# include <gnutls/gnutls.h>
#elif USE_OPENSSL
@@ -256,7 +260,7 @@
* should try again later.
*/
static Ecore_Con_State
-_ecore_con_ssl_server_try_gnutls(Ecore_Con_Server *svr)
+_ecore_con_ssl_server_try_gnutls(Ecore_Con_Server *svr __UNUSED__)
{
return ECORE_CON_CONNECTED;
}
Modified: trunk/ecore/src/lib/ecore_con/ecore_con_url.c
===================================================================
--- trunk/ecore/src/lib/ecore_con/ecore_con_url.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_con/ecore_con_url.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -43,15 +43,21 @@
*
* FIXME: Support more CURL features: Authentication, Progress callbacks and more...
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <string.h>
+#include <errno.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+
#include "Ecore.h"
#include "ecore_private.h"
#include "Ecore_Con.h"
#include "ecore_con_private.h"
-#include <errno.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-
/**
* @defgroup Ecore_Con_Url_Group Ecore URL Connection Functions
*
@@ -827,7 +833,7 @@
}
static int
-_ecore_con_url_idler_handler(void *data)
+_ecore_con_url_idler_handler(void *data __UNUSED__)
{
double start;
int done = 1;
Modified: trunk/ecore/src/lib/ecore_config/ecore_config.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <string.h>
#include <ctype.h>
#include <stdio.h>
@@ -11,7 +19,6 @@
#include <unistd.h>
#include "Ecore_Config.h"
-#include "config.h"
#include "ecore_config_private.h"
#include "ecore_config_ipc.h"
Modified: trunk/ecore/src/lib/ecore_config/ecore_config_db.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config_db.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config_db.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -9,10 +17,11 @@
#include <unistd.h>
#include <locale.h>
+#include <Eet.h>
+
#include "Ecore_Config.h"
#include "ecore_config_private.h"
#include "ecore_config_util.h"
-#include <Eet.h>
struct _Ecore_Config_DB_File
{
Modified: trunk/ecore/src/lib/ecore_config/ecore_config_extra.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config_extra.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config_extra.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -8,8 +16,6 @@
#include "Ecore_Config.h"
#include "Ecore.h"
-#include "config.h"
-
typedef struct __Ecore_Config_Arg_Callback _Ecore_Config_Arg_Callback;
struct __Ecore_Config_Arg_Callback
{
Modified: trunk/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
/* by Azundris, with thanks to Corey Donohoe <atmos@atmos.org> */
#include <stdio.h>
#include <stdlib.h>
@@ -18,7 +26,6 @@
#include "ecore_config_private.h"
#include "Ecore_Config.h"
-#include "config.h"
/*****************************************************************************/
Modified: trunk/ecore/src/lib/ecore_config/ecore_config_ipc_main.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config_ipc_main.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config_ipc_main.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
/* ############## bad */
#define HAVE_EVAS2
@@ -15,7 +23,6 @@
#include "ecore_config_util.h"
#include "ecore_config_ipc.h"
-#include "config.h"
#include "ecore_config_private.h"
static Ecore_Config_Server *__ecore_config_servers;
Modified: trunk/ecore/src/lib/ecore_config/ecore_config_storage.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config_storage.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config_storage.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Modified: trunk/ecore/src/lib/ecore_config/ecore_config_util.c
===================================================================
--- trunk/ecore/src/lib/ecore_config/ecore_config_util.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_config/ecore_config_util.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
/* azundris */
#include <sys/types.h>
@@ -2,2 +10,3 @@
#include <stdlib.h> /* malloc(), free() */
+#include <stdio.h>
#include <string.h> /* str...() */
Modified: trunk/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h
===================================================================
--- trunk/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,6 +1,9 @@
#ifndef _ECORE_DIRECTFB_H
#define _ECORE_DIRECTFB_H
+#include <directfb.h>
+#include <Ecore_Data.h>
+
#ifdef EAPI
#undef EAPI
#endif
@@ -22,10 +25,7 @@
# endif
#endif
-#include <Ecore_Data.h>
-#include <directfb.h>
-
#ifdef __cplusplus
extern "C" {
#endif
Modified: trunk/ecore/src/lib/ecore_directfb/ecore_directfb.c
===================================================================
--- trunk/ecore/src/lib/ecore_directfb/ecore_directfb.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_directfb/ecore_directfb.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,14 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
+#include <string.h>
+
#include "ecore_private.h"
#include "Ecore_DirectFB.h"
#include "ecore_directfb_private.h"
@@ -643,7 +654,7 @@
}
EAPI int
-ecore_directfb_init(const char *name)
+ecore_directfb_init(const char *name __UNUSED__)
{
int i = 0;
@@ -695,8 +706,6 @@
EAPI int
ecore_directfb_shutdown(void)
{
- int i;
-
_ecore_directfb_init_count--;
if (_ecore_directfb_init_count > 0) return _ecore_directfb_init_count;
if (_ecore_directfb_init_count < 0)
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,6 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -3,9 +6,10 @@
#endif
+#include <string.h>
+
#include "Ecore.h"
#include "ecore_private.h"
#include "ecore_evas_private.h"
#include "Ecore_Evas.h"
-#include <string.h>
static int _ecore_evas_init_count = 0;
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,4 +1,13 @@
-#include "config.h"
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <string.h>
+
#include "Ecore.h"
#include "ecore_private.h"
#include "ecore_evas_private.h"
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,7 +1,14 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
-#include "config.h"
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <sys/types.h>
+#include <dirent.h>
+
#include "Ecore.h"
#include "ecore_private.h"
#include "ecore_evas_private.h"
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_quartz.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas_quartz.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas_quartz.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,4 +1,11 @@
-#include "config.h"
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#ifdef BUILD_ECORE_EVAS_QUARTZ
#import <Cocoa/Cocoa.h>
#endif
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_sdl.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas_sdl.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas_sdl.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,4 +1,11 @@
-#include "config.h"
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "Ecore.h"
#include "ecore_private.h"
#include "ecore_evas_private.h"
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_util.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas_util.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas_util.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,7 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -2,2 +6,4 @@
+#include <string.h>
+
#include "Ecore.h"
Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_x.c
===================================================================
--- trunk/ecore/src/lib/ecore_evas/ecore_evas_x.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_evas/ecore_evas_x.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -6,6 +6,8 @@
# include "config.h"
#endif
+#include <string.h>
+
#include "Ecore.h"
#include "ecore_private.h"
#ifdef BUILD_ECORE_EVAS_X11
Modified: trunk/ecore/src/lib/ecore_fb/ecore_fb.c
===================================================================
--- trunk/ecore/src/lib/ecore_fb/ecore_fb.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_fb/ecore_fb.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore_Fb.h"
#include "ecore_fb_private.h"
Modified: trunk/ecore/src/lib/ecore_fb/ecore_fb_li.c
===================================================================
--- trunk/ecore/src/lib/ecore_fb/ecore_fb_li.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_fb/ecore_fb_li.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore_Fb.h"
#include "ecore_fb_private.h"
Modified: trunk/ecore/src/lib/ecore_fb/ecore_fb_private.h
===================================================================
--- trunk/ecore/src/lib/ecore_fb/ecore_fb_private.h 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_fb/ecore_fb_private.h 2009-01-31 18:33:39 UTC (rev \
38864) @@ -6,6 +6,7 @@
#include "Ecore_Data.h"
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
#include <termios.h>
#include <sys/types.h>
Modified: trunk/ecore/src/lib/ecore_fb/ecore_fb_ts.c
===================================================================
--- trunk/ecore/src/lib/ecore_fb/ecore_fb_ts.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_fb/ecore_fb_ts.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,11 +1,19 @@
-#include "Ecore_Fb.h"
-#include "ecore_fb_private.h"
-#include "config.h"
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifdef HAVE_TSLIB
-#include <tslib.h>
-#include <errno.h>
+# include <tslib.h>
+# include <errno.h>
#endif
+#include "Ecore_Fb.h"
+#include "ecore_fb_private.h"
+
typedef struct _Ecore_Fb_Ts_Event Ecore_Fb_Ts_Event;
typedef struct _Ecore_Fb_Ts_Calibrate Ecore_Fb_Ts_Calibrate;
typedef struct _Ecore_Fb_Ts_Backlight Ecore_Fb_Ts_Backlight;
Modified: trunk/ecore/src/lib/ecore_fb/ecore_fb_vt.c
===================================================================
--- trunk/ecore/src/lib/ecore_fb/ecore_fb_vt.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_fb/ecore_fb_vt.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore_Fb.h"
#include "ecore_fb_private.h"
Modified: trunk/ecore/src/lib/ecore_file/ecore_file.c
===================================================================
--- trunk/ecore/src/lib/ecore_file/ecore_file.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_file/ecore_file.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -6,6 +6,13 @@
# include <config.h>
#endif
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <dirent.h>
+
#ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
#endif
Modified: trunk/ecore/src/lib/ecore_file/ecore_file_download.c
===================================================================
--- trunk/ecore/src/lib/ecore_file/ecore_file_download.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_file/ecore_file_download.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -6,6 +6,9 @@
# include <config.h>
#endif
+#include <stdio.h>
+#include <string.h>
+
#include "Ecore_Con.h"
#include "ecore_file_private.h"
Modified: trunk/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c
===================================================================
--- trunk/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c 2009-01-31 13:40:46 \
UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c 2009-01-31 18:33:39 \
UTC (rev 38864) @@ -6,6 +6,9 @@
# include <config.h>
#endif
+#include <stdio.h>
+#include <string.h>
+
#include "ecore_file_private.h"
/*
Modified: trunk/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c
===================================================================
--- trunk/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -6,6 +6,9 @@
# include <config.h>
#endif
+#include <stdio.h>
+#include <string.h>
+
#include "ecore_file_private.h"
#ifdef HAVE_POLL
Modified: trunk/ecore/src/lib/ecore_file/ecore_file_path.c
===================================================================
--- trunk/ecore/src/lib/ecore_file/ecore_file_path.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_file/ecore_file_path.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -6,6 +6,9 @@
# include <config.h>
#endif
+#include <stdio.h>
+#include <string.h>
+
#include "ecore_file_private.h"
static int init = 0;
Modified: trunk/ecore/src/lib/ecore_imf/Ecore_IMF.h
===================================================================
--- trunk/ecore/src/lib/ecore_imf/Ecore_IMF.h 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_imf/Ecore_IMF.h 2009-01-31 18:33:39 UTC (rev 38864)
@@ -5,6 +5,8 @@
#ifndef _ECORE_IMF_H
#define _ECORE_IMF_H
+#include <Ecore_Data.h>
+
#ifdef EAPI
# undef EAPI
#endif
@@ -31,8 +33,6 @@
# endif
#endif /* ! _WIN32 */
-#include <Ecore_Data.h>
-
#ifdef __cplusplus
extern "C" {
#endif
Modified: trunk/ecore/src/lib/ecore_imf/ecore_imf.c
===================================================================
--- trunk/ecore/src/lib/ecore_imf/ecore_imf.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_imf/ecore_imf.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -2,13 +2,15 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+#include <Ecore.h>
+
#include "Ecore_IMF.h"
#include "ecore_imf_private.h"
-#include <Ecore.h>
-
EAPI int ECORE_IMF_EVENT_PREEDIT_START = 0;
EAPI int ECORE_IMF_EVENT_PREEDIT_END = 0;
EAPI int ECORE_IMF_EVENT_PREEDIT_CHANGED = 0;
Modified: trunk/ecore/src/lib/ecore_imf/ecore_imf_context.c
===================================================================
--- trunk/ecore/src/lib/ecore_imf/ecore_imf_context.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_imf/ecore_imf_context.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,16 +2,19 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <string.h>
#include <locale.h>
-#include <stdlib.h>
-#include "config.h"
+#include <Ecore.h>
#include "Ecore_IMF.h"
#include "ecore_imf_private.h"
-#include <Ecore.h>
-
/**
* @defgroup Ecore_IMF_Context_Group Ecore Input Method Context Functions
*
Modified: trunk/ecore/src/lib/ecore_imf/ecore_imf_module.c
===================================================================
--- trunk/ecore/src/lib/ecore_imf/ecore_imf_module.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_imf/ecore_imf_module.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,12 +2,15 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
-#include <limits.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
-#include "config.h"
-
#include "ecore_imf_private.h"
static void _ecore_imf_module_load_all(void);
Modified: trunk/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
===================================================================
--- trunk/ecore/src/lib/ecore_ipc/Ecore_Ipc.h 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_ipc/Ecore_Ipc.h 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,9 +1,12 @@
#ifndef _ECORE_IPC_H
#define _ECORE_IPC_H
+#include <Ecore_Data.h>
+
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
@@ -22,8 +25,6 @@
# endif
#endif
-#include <Ecore_Data.h>
-
/**
* @file Ecore_Ipc.h
* @brief Ecore inter-process communication functions.
Modified: trunk/ecore/src/lib/ecore_ipc/ecore_ipc.c
===================================================================
--- trunk/ecore/src/lib/ecore_ipc/ecore_ipc.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_ipc/ecore_ipc.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,5 +1,12 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "Ecore.h"
-#include <config.h>
#include "Ecore_Con.h"
#include "ecore_private.h"
#include "ecore_ipc_private.h"
@@ -8,6 +15,7 @@
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
+
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
Modified: trunk/ecore/src/lib/ecore_job/ecore_job.c
===================================================================
--- trunk/ecore/src/lib/ecore_job/ecore_job.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_job/ecore_job.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,6 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -3,4 +6,6 @@
#endif
+#include <stdlib.h>
+
#include "Ecore.h"
#include "ecore_private.h"
Modified: trunk/ecore/src/lib/ecore_sdl/ecore_sdl.c
===================================================================
--- trunk/ecore/src/lib/ecore_sdl/ecore_sdl.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_sdl/ecore_sdl.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <SDL/SDL.h>
#include "Ecore_Sdl.h"
Modified: trunk/ecore/src/lib/ecore_txt/ecore_txt.c
===================================================================
--- trunk/ecore/src/lib/ecore_txt/ecore_txt.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_txt/ecore_txt.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,6 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -3,10 +6,8 @@
#endif
-#include <iconv.h>
-#include <errno.h>
#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
#include <string.h>
+#include <errno.h>
+#include <iconv.h>
#include "Ecore_Txt.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,6 +1,13 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "ecore_x_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,7 +2,27 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
-#include "config.h"
+#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 "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_composite.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_composite.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_composite.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,11 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_cursor.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_cursor.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_cursor.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_x_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_damage.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_damage.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_damage.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,11 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,6 +1,14 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+#include <string.h>
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,10 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "ecore_x_private.h"
static int _dpms_available;
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,10 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "ecore_x_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_e.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_e.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,9 +1,15 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* OLD E hints
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "config.h"
#include "Ecore.h"
#include "ecore_x_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "ecore_x_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_events.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_events.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_events.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,6 +1,13 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include <langinfo.h>
#include "ecore_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_fixes.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_fixes.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_fixes.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,12 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gc.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gc.c 2009-01-31 13:40:46 UTC (rev 38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gc.c 2009-01-31 18:33:39 UTC (rev 38864)
@@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_icccm.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_icccm.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_icccm.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,12 +1,20 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* Various ICCCM related functions.
- *
+ *
* This is ALL the code involving anything ICCCM related. for both WM and
* client.
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_mwm.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_mwm.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_mwm.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,9 +1,20 @@
/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+/*
* Various MWM related functions.
- *
+ *
* This is ALL the code involving anything MWM related. for both WM and
* client.
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_netwm.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_netwm.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_netwm.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,9 +1,15 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* _NET_WM... aka Extended Window Manager Hint (EWMH) functions.
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "config.h"
#include "Ecore.h"
#include "Ecore_Data.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_pixmap.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_pixmap.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_pixmap.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,3 +1,11 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_private.h
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_private.h 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_private.h 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,8 +1,6 @@
#ifndef _ECORE_X_PRIVATE_H
#define _ECORE_X_PRIVATE_H
-#include "config.h"
-
#include <sys/param.h>
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,12 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_x_private.h"
EAPI int
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_screensaver.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_screensaver.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_screensaver.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,9 +1,15 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* Screensaver code
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,6 +1,13 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "ecore_private.h"
#include "Ecore.h"
#include "ecore_x_private.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_sync.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_sync.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_sync.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,9 +1,15 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* XSync code
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_test.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_test.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_test.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -2,6 +2,16 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
+#ifdef ECORE_XTEST
+# include <X11/extensions/XTest.h>
+#endif
+
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,6 +1,13 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,6 +1,13 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c 2009-01-31 13:40:46 UTC \
(rev 38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c 2009-01-31 18:33:39 UTC \
(rev 38864) @@ -1,3 +1,13 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdlib.h>
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_xinerama.c
===================================================================
--- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_xinerama.c 2009-01-31 13:40:46 UTC (rev \
38863)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_xinerama.c 2009-01-31 18:33:39 UTC (rev \
38864) @@ -1,9 +1,15 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
/*
* Xinerama code
*/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
enlightenment-svn mailing list
enlightenment-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic