Ecore: include orders, minor formatting

SVN revision: 79438
This commit is contained in:
Vincent Torri 2012-11-19 06:26:48 +00:00
parent bf9ce78446
commit a263978d34
17 changed files with 70 additions and 52 deletions

View File

@ -21,6 +21,7 @@ ecore_anim.c \
ecore_app.c \
ecore_events.c \
ecore_getopt.c \
ecore_glib.c \
ecore_idle_enterer.c \
ecore_idle_exiter.c \
ecore_idler.c \
@ -31,7 +32,6 @@ ecore_poll.c \
ecore_time.c \
ecore_timer.c \
ecore_thread.c \
ecore_glib.c \
ecore_throttle.c \
ecore_private.h
@ -69,5 +69,5 @@ endif
endif
libecore_la_LIBADD = @dlopen_libs@ @EINA_LIBS@ @EVIL_LIBS@ @GLIB_LIBS@ @WIN32_LIBS@ @LTLIBINTL@ @EFL_PTHREAD_LIBS@ @rt_libs@ -lm
libecore_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @GLIB_LIBS@ @WIN32_LIBS@ @LTLIBINTL@ @EFL_PTHREAD_LIBS@ @rt_libs@ -lm
libecore_la_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@ @EFL_PTHREAD_LIBS@

View File

@ -9,7 +9,7 @@
#include <fcntl.h>
#include <errno.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

View File

@ -5,11 +5,11 @@
#include <stdlib.h>
#include <math.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"
#include "Eo.h"
#define MY_CLASS ECORE_ANIMATOR_CLASS
#define MY_CLASS_NAME "ecore_animator"

View File

@ -4,9 +4,11 @@
#include <stdlib.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#else
#endif
#ifdef _MSC_VER
# include <process.h>
#endif

View File

@ -2,21 +2,30 @@
# include <config.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#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
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
void *alloca(size_t);
#endif
#include <stdlib.h>

View File

@ -9,7 +9,7 @@
#include "ecore_private.h"
#ifdef HAVE_GLIB
#include <glib.h>
# include <glib.h>
static Eina_Bool _ecore_glib_active = EINA_FALSE;
static Ecore_Select_Function _ecore_glib_select_original;

View File

@ -4,11 +4,11 @@
#include <stdlib.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"
#include "Eo.h"
#define MY_CLASS ECORE_IDLE_ENTERER_CLASS
#define MY_CLASS_NAME "ecore_idle_enterer"

View File

@ -4,11 +4,11 @@
#include <stdlib.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"
#include "Eo.h"
#define MY_CLASS ECORE_IDLE_EXITER_CLASS
#define MY_CLASS_NAME "ecore_idle_exiter"

View File

@ -4,11 +4,11 @@
#include <stdlib.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"
#include "Eo.h"
#define MY_CLASS ECORE_IDLER_CLASS
#define MY_CLASS_NAME "ecore_idler"

View File

@ -2,10 +2,10 @@
# include <config.h>
#endif
#include <Eo.h>
#include <stdlib.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"

View File

@ -23,10 +23,15 @@
#include <errno.h>
#include <fcntl.h>
#ifndef _MSC_VER
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#else
#endif
#ifdef _MSC_VER
# include <float.h>
#endif
@ -113,15 +118,15 @@ epoll_ctl(int epfd __UNUSED__,
#endif
#ifdef HAVE_SYS_TIMERFD_H
#include <sys/timerfd.h>
# include <sys/timerfd.h>
#else
/* fallback code if we don't have real timerfd - reduces number of ifdefs */
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 0 /* bogus value */
#endif
#ifndef TFD_NONBLOCK
#define TFD_NONBLOCK 0 /* bogus value */
#endif
# ifndef CLOCK_MONOTONIC
# define CLOCK_MONOTONIC 0 /* bogus value */
# endif
# ifndef TFD_NONBLOCK
# define TFD_NONBLOCK 0 /* bogus value */
# endif
static inline int
timerfd_create(int clockid __UNUSED__,
int flags __UNUSED__)

View File

@ -40,12 +40,6 @@
# include <Exotic.h>
#endif
#include "Ecore.h"
#include "ecore_private.h"
/* How of then we should retry to write to the pipe */
#define ECORE_PIPE_WRITE_RETRY 6
/*
* On Windows, pipe() is implemented with sockets.
* Contrary to Linux, Windows uses different functions
@ -78,9 +72,12 @@
#endif /* ! _WIN32 */
#include <Ecore.h>
#include "Ecore.h"
#include "ecore_private.h"
/* How of then we should retry to write to the pipe */
#define ECORE_PIPE_WRITE_RETRY 6
struct _Ecore_Pipe
{
ECORE_MAGIC;

View File

@ -4,11 +4,11 @@
#include <stdlib.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"
#include "Eo.h"
#define MY_CLASS ECORE_POLLER_CLASS
#define MY_CLASS_NAME "ecore_poller"

View File

@ -1,4 +1,3 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@ -7,7 +6,10 @@
#include <sys/time.h>
#include <assert.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_EVIL
# include <Evil.h>

View File

@ -3,7 +3,10 @@
#endif
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "Ecore.h"
#include "ecore_private.h"

View File

@ -16,11 +16,11 @@
# include <mach/mach_time.h>
#endif
#include <time.h>
#include "Ecore.h"
#include "ecore_private.h"
#include <time.h>
#if defined (HAVE_CLOCK_GETTIME) || defined (EXOTIC_PROVIDE_CLOCK_GETTIME)
static clockid_t _ecore_time_clock_id = -1;
#elif defined(__APPLE__) && defined(__MACH__)

View File

@ -5,11 +5,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <Eo.h>
#include "Ecore.h"
#include "ecore_private.h"
#include "Eo.h"
#define MY_CLASS ECORE_TIMER_CLASS
#define MY_CLASS_NAME "ecore_timer"