forked from enlightenment/efl
* add eina_config.h in all source files. Fix linking with Visual Studio
* move eina_private.h and eina_safety_checks.h just after eina_config.h SVN revision: 42077
This commit is contained in:
parent
c1e675d669
commit
72b87160a2
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "eina_config.h"
|
|
||||||
|
|
||||||
#if HAVE___ATTRIBUTE__
|
#if HAVE___ATTRIBUTE__
|
||||||
# define __UNUSED__ __attribute__((unused))
|
# define __UNUSED__ __attribute__((unused))
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
|
|
||||||
#include "eina_accessor.h"
|
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_accessor.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -150,12 +150,12 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "eina_types.h"
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_array.h"
|
#include "eina_array.h"
|
||||||
#include "eina_inline_array.x"
|
#include "eina_inline_array.x"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -53,6 +53,7 @@ void *alloca (size_t);
|
||||||
# include <Evil.h>
|
# include <Evil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
#include "eina_benchmark.h"
|
#include "eina_benchmark.h"
|
||||||
#include "eina_inlist.h"
|
#include "eina_inlist.h"
|
||||||
#include "eina_counter.h"
|
#include "eina_counter.h"
|
||||||
|
|
|
@ -24,8 +24,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "eina_convert.h"
|
#include "eina_config.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_convert.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -32,11 +32,12 @@
|
||||||
# undef WIN32_LEAN_AND_MEAN
|
# undef WIN32_LEAN_AND_MEAN
|
||||||
#endif /* _WIN2 */
|
#endif /* _WIN2 */
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_counter.h"
|
#include "eina_counter.h"
|
||||||
#include "eina_inlist.h"
|
#include "eina_inlist.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -132,6 +132,16 @@ EAPI int eina_cpu_count(void)
|
||||||
return sysinfo.dwNumberOfProcessors;
|
return sysinfo.dwNumberOfProcessors;
|
||||||
|
|
||||||
# elif defined (__SUNPRO_C)
|
# elif defined (__SUNPRO_C)
|
||||||
|
/*
|
||||||
|
* _SC_NPROCESSORS_ONLN: number of processors that are online, that
|
||||||
|
is available when sysconf is called. The number
|
||||||
|
of cpu can change by admins.
|
||||||
|
* _SC_NPROCESSORS_CONF: maximum number of processors that are available
|
||||||
|
to the current OS instance. That number can be
|
||||||
|
change after a reboot.
|
||||||
|
* _SC_NPROCESSORS_MAX : maximum number of processors that are on the
|
||||||
|
motherboard.
|
||||||
|
*/
|
||||||
return sysconf(_SC_NPROCESSORS_ONLN);
|
return sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
|
|
||||||
# elif defined (__FreeBSD) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__)
|
# elif defined (__FreeBSD) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__)
|
||||||
|
|
|
@ -358,10 +358,11 @@
|
||||||
# include <Evil.h>
|
# include <Evil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_error.h"
|
#include "eina_config.h"
|
||||||
#include "eina_inlist.h"
|
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_error.h"
|
||||||
|
#include "eina_inlist.h"
|
||||||
|
|
||||||
/* TODO
|
/* TODO
|
||||||
* + printing errors to stdout or stderr can be implemented
|
* + printing errors to stdout or stderr can be implemented
|
||||||
|
|
|
@ -61,9 +61,10 @@ void *alloca (size_t);
|
||||||
# define PATH_DELIM '\\'
|
# define PATH_DELIM '\\'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_file.h"
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_file.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Global *
|
* Global *
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
#include "eina_types.h"
|
#include "eina_types.h"
|
||||||
|
#include "eina_hamster.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -30,11 +30,12 @@
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_hash.h"
|
#include "eina_hash.h"
|
||||||
#include "eina_rbtree.h"
|
#include "eina_rbtree.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -23,10 +23,11 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "eina_inlist.h"
|
#include "eina_config.h"
|
||||||
#include "eina_error.h"
|
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_inlist.h"
|
||||||
|
#include "eina_error.h"
|
||||||
|
|
||||||
/* FIXME: TODO please, refactor this :) */
|
/* FIXME: TODO please, refactor this :) */
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
|
|
||||||
#include "eina_iterator.h"
|
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_iterator.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -22,9 +22,10 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "eina_lalloc.h"
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_lalloc.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -73,11 +73,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_config.h"
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_list.h"
|
#include "eina_list.h"
|
||||||
#include "eina_mempool.h"
|
#include "eina_mempool.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
|
|
|
@ -289,10 +289,11 @@
|
||||||
# include <Evil.h>
|
# include <Evil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_log.h"
|
#include "eina_config.h"
|
||||||
#include "eina_inlist.h"
|
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_log.h"
|
||||||
|
#include "eina_inlist.h"
|
||||||
|
|
||||||
/* TODO
|
/* TODO
|
||||||
* + printing logs to stdout or stderr can be implemented
|
* + printing logs to stdout or stderr can be implemented
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_config.h"
|
#include "eina_config.h"
|
||||||
#include "eina_magic.h"
|
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_inlist.h"
|
#include "eina_inlist.h"
|
||||||
|
#include "eina_magic.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
#include "eina_types.h"
|
#include "eina_types.h"
|
||||||
#include "eina_main.h"
|
#include "eina_main.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
|
|
|
@ -25,11 +25,12 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_mempool.h"
|
#include "eina_mempool.h"
|
||||||
#include "eina_hash.h"
|
#include "eina_hash.h"
|
||||||
#include "eina_module.h"
|
#include "eina_module.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -52,11 +52,12 @@ void *alloca (size_t);
|
||||||
# include <Evil.h>
|
# include <Evil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_module.h"
|
#include "eina_module.h"
|
||||||
#include "eina_file.h"
|
#include "eina_file.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -24,10 +24,11 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "eina_rbtree.h"
|
#include "eina_config.h"
|
||||||
#include "eina_array.h"
|
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
#include "eina_safety_checks.h"
|
#include "eina_safety_checks.h"
|
||||||
|
#include "eina_rbtree.h"
|
||||||
|
#include "eina_array.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "eina_config.h"
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_rectangle.h"
|
#include "eina_rectangle.h"
|
||||||
#include "eina_magic.h"
|
#include "eina_magic.h"
|
||||||
#include "eina_inlist.h"
|
#include "eina_inlist.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
#include "eina_mempool.h"
|
#include "eina_mempool.h"
|
||||||
#include "eina_list.h"
|
#include "eina_list.h"
|
||||||
#include "eina_trash.h"
|
#include "eina_trash.h"
|
||||||
|
|
|
@ -74,13 +74,13 @@
|
||||||
# include <Evil.h>
|
# include <Evil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "eina_config.h"
|
||||||
|
#include "eina_private.h"
|
||||||
|
#include "eina_safety_checks.h"
|
||||||
#include "eina_stringshare.h"
|
#include "eina_stringshare.h"
|
||||||
#include "eina_hash.h"
|
#include "eina_hash.h"
|
||||||
#include "eina_rbtree.h"
|
#include "eina_rbtree.h"
|
||||||
#include "eina_error.h"
|
#include "eina_error.h"
|
||||||
#include "eina_private.h"
|
|
||||||
#include "eina_magic.h"
|
|
||||||
#include "eina_safety_checks.h"
|
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -29,8 +29,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "eina_tiler.h"
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
|
#include "eina_tiler.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
|
|
|
@ -28,7 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_types.h"
|
#include "eina_config.h"
|
||||||
#include "eina_private.h"
|
#include "eina_private.h"
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
|
|
Loading…
Reference in New Issue