Evil: move the inclusion of all headers in evil_private.h
Summary: first step for making Evil private. evil_private.h will be included in the EFL source code instead of Evil.h Test Plan: compilation Reviewers: raster, cedric, zmike Reviewed By: raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8893
This commit is contained in:
parent
b60ca22839
commit
d8cb3e7f71
|
@ -11,8 +11,6 @@ lib/evil/evil_dlfcn.h \
|
||||||
lib/evil/evil_fcntl.h \
|
lib/evil/evil_fcntl.h \
|
||||||
lib/evil/evil_langinfo.h \
|
lib/evil/evil_langinfo.h \
|
||||||
lib/evil/evil_locale.h \
|
lib/evil/evil_locale.h \
|
||||||
lib/evil/evil_macro.h \
|
|
||||||
lib/evil/evil_macro_pop.h \
|
|
||||||
lib/evil/evil_macro_wrapper.h \
|
lib/evil/evil_macro_wrapper.h \
|
||||||
lib/evil/evil_main.h \
|
lib/evil/evil_main.h \
|
||||||
lib/evil/evil_stdio.h \
|
lib/evil/evil_stdio.h \
|
||||||
|
|
|
@ -94,15 +94,6 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include <sys/stat.h> /* for mkdir in evil_macro_wrapper */
|
|
||||||
|
|
||||||
|
|
||||||
typedef unsigned long uid_t;
|
typedef unsigned long uid_t;
|
||||||
typedef unsigned long gid_t;
|
typedef unsigned long gid_t;
|
||||||
|
|
||||||
|
@ -117,20 +108,6 @@ typedef unsigned short mode_t;
|
||||||
# define strdup(str) _strdup(str)
|
# define strdup(str) _strdup(str)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_dlfcn.h"
|
|
||||||
#include "evil_fcntl.h"
|
|
||||||
#include "evil_langinfo.h"
|
|
||||||
#include "evil_locale.h"
|
|
||||||
#include "evil_main.h"
|
|
||||||
#include "evil_stdlib.h"
|
|
||||||
#include "evil_stdio.h"
|
|
||||||
#include "evil_string.h"
|
|
||||||
#include "evil_time.h"
|
|
||||||
#include "evil_unistd.h"
|
|
||||||
#include "evil_util.h"
|
|
||||||
|
|
||||||
#ifndef S_ISDIR
|
#ifndef S_ISDIR
|
||||||
# define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
|
# define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
|
||||||
#endif
|
#endif
|
||||||
|
@ -177,10 +154,7 @@ typedef unsigned short mode_t;
|
||||||
#define _S_IWUSR _S_IWRITE
|
#define _S_IWUSR _S_IWRITE
|
||||||
#define _S_IRUSR _S_IREAD
|
#define _S_IRUSR _S_IREAD
|
||||||
|
|
||||||
#define sigsetjmp(Env, Save) setjmp(Env)
|
#include "evil_private.h"
|
||||||
|
|
||||||
#include "evil_macro_wrapper.h"
|
|
||||||
#include "evil_macro_pop.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,19 +4,10 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#include "evil_private.h"
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include <psapi.h> /* EnumProcessModules(Ex) */
|
#include <psapi.h> /* EnumProcessModules(Ex) */
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_util.h"
|
|
||||||
#include "evil_dlfcn.h"
|
|
||||||
#include "evil_private.h"
|
|
||||||
|
|
||||||
|
|
||||||
static char *_dl_err = NULL;
|
static char *_dl_err = NULL;
|
||||||
static int _dl_err_viewed = 0;
|
static int _dl_err_viewed = 0;
|
||||||
|
|
|
@ -8,8 +8,7 @@
|
||||||
#include <winsock2.h> /* for ioctlsocket */
|
#include <winsock2.h> /* for ioctlsocket */
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
#include "evil_macro.h"
|
#include "evil_private.h"
|
||||||
#include "evil_fcntl.h"
|
|
||||||
|
|
||||||
/* SOCKET is defined as a uintptr_t, so passing a fd (int) is not a problem */
|
/* SOCKET is defined as a uintptr_t, so passing a fd (int) is not a problem */
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "evil_macro.h"
|
#include "evil_private.h"
|
||||||
#include "evil_langinfo.h"
|
|
||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
|
|
@ -6,14 +6,7 @@
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#include "evil_private.h"
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_locale.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LOCALE_SISO639LANGNAME and LOCALE_SISO3166CTRYNAME need at least a buffer
|
* LOCALE_SISO639LANGNAME and LOCALE_SISO3166CTRYNAME need at least a buffer
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
#ifndef __EVIL_MACRO_H__
|
|
||||||
#define __EVIL_MACRO_H__
|
|
||||||
|
|
||||||
#if _WIN32_WINNT < 0x0600
|
|
||||||
# error Windows XP not supported anymore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef EAPI
|
|
||||||
# undef EAPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef EFL_BUILD
|
|
||||||
# ifdef DLL_EXPORT
|
|
||||||
# define EAPI __declspec(dllexport)
|
|
||||||
# else
|
|
||||||
# define EAPI
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# define EAPI __declspec(dllimport)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
|
||||||
# define PATH_MAX MAX_PATH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __EVIL_MACRO_H__ */
|
|
|
@ -1,8 +0,0 @@
|
||||||
#ifndef __EVIL_MACRO_POP_H__
|
|
||||||
#define __EVIL_MACRO_POP_H__
|
|
||||||
|
|
||||||
#undef EAPI
|
|
||||||
#define EAPI
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __EVIL_MACRO_POP_H__ */
|
|
|
@ -4,15 +4,6 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <winsock2.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_unistd.h"
|
|
||||||
#include "evil_main.h"
|
|
||||||
#include "evil_private.h"
|
#include "evil_private.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,17 +7,9 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "sys/mman.h"
|
#include "sys/mman.h"
|
||||||
#include "evil_util.h"
|
|
||||||
#include "evil_private.h"
|
#include "evil_private.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef __EVIL_PRIVATE_H__
|
#ifndef __EVIL_PRIVATE_H__
|
||||||
#define __EVIL_PRIVATE_H__
|
#define __EVIL_PRIVATE_H__
|
||||||
|
|
||||||
|
#if _WIN32_WINNT < 0x0600
|
||||||
|
# error Windows XP not supported anymore
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -14,6 +17,52 @@ extern "C" {
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
|
#include <windows.h>
|
||||||
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
|
#include <sys/stat.h> /* for mkdir in evil_macro_wrapper */
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef EFL_BUILD
|
||||||
|
# ifdef DLL_EXPORT
|
||||||
|
# define EAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define EAPI __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
# define PATH_MAX MAX_PATH
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "evil_dlfcn.h"
|
||||||
|
#include "evil_fcntl.h"
|
||||||
|
#include "evil_langinfo.h"
|
||||||
|
#include "evil_locale.h"
|
||||||
|
#include "evil_main.h"
|
||||||
|
#include "evil_stdlib.h"
|
||||||
|
#include "evil_stdio.h"
|
||||||
|
#include "evil_string.h"
|
||||||
|
#include "evil_time.h"
|
||||||
|
#include "evil_unistd.h"
|
||||||
|
#include "evil_util.h"
|
||||||
|
|
||||||
|
#define sigsetjmp(Env, Save) setjmp(Env)
|
||||||
|
|
||||||
|
#include "evil_macro_wrapper.h"
|
||||||
|
|
||||||
|
#undef EAPI
|
||||||
|
#define EAPI
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <lmcons.h>
|
#include <lmcons.h>
|
||||||
|
|
||||||
#include "evil_macro.h"
|
#include "evil_private.h"
|
||||||
#include "pwd.h"
|
#include "pwd.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_stdio.h"
|
|
||||||
#include "evil_private.h"
|
#include "evil_private.h"
|
||||||
|
|
||||||
#undef rename
|
#undef rename
|
||||||
|
|
|
@ -5,20 +5,14 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
#include <direct.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#include "evil_private.h"
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_stdlib.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Environment variable related functions
|
* Environment variable related functions
|
||||||
|
@ -146,7 +140,7 @@ mkdtemp(char *__template)
|
||||||
{
|
{
|
||||||
val = _mkstemp(suffix, val);
|
val = _mkstemp(suffix, val);
|
||||||
|
|
||||||
if (mkdir(__template) == 0)
|
if (_mkdir(__template) == 0)
|
||||||
return __template;
|
return __template;
|
||||||
|
|
||||||
if (errno == EFAULT ||
|
if (errno == EFAULT ||
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "evil_macro.h"
|
#include "evil_private.h"
|
||||||
#include "evil_string.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_time.h"
|
|
||||||
#include "evil_macro_wrapper.h"
|
|
||||||
#include "evil_private.h"
|
#include "evil_private.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
#include "evil_macro.h"
|
#include "evil_private.h"
|
||||||
#include "evil_unistd.h"
|
|
||||||
|
|
||||||
|
|
||||||
LONGLONG _evil_time_freq;
|
LONGLONG _evil_time_freq;
|
||||||
|
|
|
@ -8,14 +8,7 @@
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#include "evil_private.h"
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include "evil_macro.h"
|
|
||||||
#include "evil_util.h"
|
|
||||||
|
|
||||||
DWORD _evil_tls_index;
|
DWORD _evil_tls_index;
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,6 @@ if target_machine.system() == 'windows'
|
||||||
'evil_fcntl.h',
|
'evil_fcntl.h',
|
||||||
'evil_langinfo.h',
|
'evil_langinfo.h',
|
||||||
'evil_locale.h',
|
'evil_locale.h',
|
||||||
'evil_macro.h',
|
|
||||||
'evil_macro_pop.h',
|
|
||||||
'evil_macro_wrapper.h',
|
'evil_macro_wrapper.h',
|
||||||
'evil_main.h',
|
'evil_main.h',
|
||||||
'evil_stdio.h',
|
'evil_stdio.h',
|
||||||
|
|
|
@ -3,7 +3,19 @@
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <evil_macro.h>
|
#ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef EFL_BUILD
|
||||||
|
# ifdef DLL_EXPORT
|
||||||
|
# define EAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define EAPI
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define EAPI __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -148,7 +160,8 @@ EAPI int munmap(void *addr,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <evil_macro_pop.h>
|
#undef EAPI
|
||||||
|
#define EAPI
|
||||||
|
|
||||||
|
|
||||||
#endif /* __EVIL_SYS_MMAN_H__ */
|
#endif /* __EVIL_SYS_MMAN_H__ */
|
||||||
|
|
Loading…
Reference in New Issue