Commit Graph

60 Commits

Author SHA1 Message Date
Vincent Torri 2b2b317b30 * src/lib/evil_stdio.c:
Fix returned value of evil_fread_native()
	* doc/Doxyfile:
	* doc/head.html:
	* src/lib/Evil.h:
	* src/lib/dirent.h:
	* src/lib/dlfcn/dlfcn.h:
	* src/lib/evil_fcntl.h:
	* src/lib/evil_inet.h:
	* src/lib/evil_libgen.h:
	* src/lib/evil_stdio.h:
	* src/lib/evil_string.h:
	* src/lib/pwd.h:
	Update documentation



SVN revision: 65105
2011-11-12 22:31:16 +00:00
Vincent Torri 6379fe2264 change typedef for pid_t
SVN revision: 62862
2011-08-26 15:59:42 +00:00
Vincent Torri 0b847b7dc5 Evil : don't define open anymore (useless, now)
SVN revision: 60466
2011-06-17 21:44:25 +00:00
Vincent Torri 43955a6d53 Evil:
* src/lib/dlfcn/dlfcn.c:
change '/' to '\' in paths

* src/lib/evil_inet.c:
* src/lib/evil_inet.h:
* src/lib/Evil.h:
* src/lib/Makefile.am:
* AUTHORS:
add inet_pton() function. Implementation from curl library.
See AUTHORS.

SVN revision: 59530
2011-05-19 12:00:06 +00:00
Vincent Torri faaadaec77 Evil: some headers could define WIN32_LEAN_AND_MEAN. Prevent multiple
define of that macro


SVN revision: 57505
2011-03-03 21:12:45 +00:00
Vincent Torri 4e50c40cb0 use _tzset instead of tzset with vc++
SVN revision: 55631
2010-12-18 17:37:50 +00:00
Vincent Torri 66b9ed8926 * src/lib/Evil.h:
* src/lib/evil_string.h:
	Fix doxygen documentation



SVN revision: 54220
2010-11-06 07:10:12 +00:00
Vincent Torri a2a90c6131 * src/lib/Evil.h:
define offsetof for Windows CE



SVN revision: 53982
2010-10-29 08:37:25 +00:00
Vincent Torri 70622ee748 * src/lib/Makefile.am:
* src/lib/Evil.h:
* src/lib/evil_time.c:
* src/lib/evil_time.h:
add locatime_r() for calendar in Elementary.


SVN revision: 52263
2010-09-14 21:24:25 +00:00
Vincent Torri 5120168d52 * src/lib/Evil.h:
mkdir() does not accept 2 arguments.
	Define hypot to remove huge amount of warnings in
	Evas withvc++



SVN revision: 47739
2010-04-03 19:06:20 +00:00
Vincent Torri d989abb2aa * configure.ac:
move version management at the beginning
	* src/bin/evil_suite.c:
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_environment.c:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_mkstemp.c:
	* src/bin/evil_test_pipe.c:
	* src/bin/evil_test_realpath.c:
	* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_errno.c:
	* src/lib/evil_main.c:
	* src/lib/evil_main.h:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	* src/lib/evil_util.c:
	fix warnings



SVN revision: 47669
2010-04-01 20:13:40 +00:00
Vincent Torri 9793cb0681 tzset is also defined with vc++...
SVN revision: 47152
2010-03-12 06:34:18 +00:00
Vincent Torri a64d92ba6f * src/lib/Makefile.am:
* src/lib/evil_time.c (deleted):
	remove evil_time.c as tzset is defined with mingw
	and as _tzset is defined with vc++
	* src/lib/Evil.h:
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/dlfcn/dlfcn.h:
	remove __CEGCC__ occurences



SVN revision: 47150
2010-03-12 06:16:41 +00:00
Vincent Torri 3ef3435fed * src/lib/Evil.h:
actually, ssize_t is defined with all mingw versions
	but not with vc++. So move it in vc++ part of Evil.h



SVN revision: 47137
2010-03-11 18:49:11 +00:00
Vincent Torri c0f295f2de * remove cegcc compiler support. Only mingw32ce is supported now
* remove some shadow declarations


SVN revision: 46639
2010-02-28 07:57:03 +00:00
Vincent Torri e49ce78f00 * src/lib/Evil.h:
change again the redefinition of open(). Needed
	for the gif loader. But the compilation with vc++
	is certainly broken. Will be fixed later with a specific
	case for vc++.



SVN revision: 45725
2010-01-30 00:28:11 +00:00
Vincent Torri 48bebf06fa necessary declarations for vc++
SVN revision: 44598
2009-12-20 12:08:54 +00:00
Vincent Torri 95995b2148 ssize_t is needed in edje on Windows CE too
SVN revision: 44571
2009-12-19 11:59:23 +00:00
Vincent Torri 521d0b273a revert some changes in Evil.h (Windows CE compilation of ecore was broken)
SVN revision: 44570
2009-12-19 11:52:48 +00:00
Vincent Torri 9aa679df36 * src/lib/evil_libgen.c:
* src/lib/evil_libgen.h:
* src/lib/Makefile.am:
* win32/vs8/libevil.vcproj:
* win32/vs9/libevil.vcproj:
add basename() function.

* src/lib/Evil.h:
add basename() function and comment useless wrappers (for now).

* src/lib/dlfcn/dlfcn.h:
remove useless include.

* src/lib/evil_util.c:
formatting.

SVN revision: 44251
2009-12-07 17:23:41 +00:00
Vincent Torri a5454e4245 * add e image on generated doc
* add wrapper on win32 functions

SVN revision: 43249
2009-10-24 15:39:59 +00:00
Vincent Torri 9a08eb668f add more wrapping
SVN revision: 42532
2009-09-16 21:59:37 +00:00
Vincent Torri 98817e4ed3 add other wrapping for Windows function (fileno and fdopen)
SVN revision: 42521
2009-09-16 18:05:04 +00:00
Vincent Torri 17bd8aecf8 add int64_t type when compiling with vc++. Nedded for eina_f*p*.h files
SVN revision: 42518
2009-09-16 17:25:28 +00:00
Vincent Torri a42a91cebc include io.h when using vc++ (requested for _open())
SVN revision: 39100
2009-02-19 20:03:58 +00:00
Vincent Torri ac3bcc3fa9 * src/bin/evil_test_environment.c:
check returned value
	* src/bin/evil_test_memcpy.c:
	define getpagesize() for vc++
	* src/lib/evil_unistd.c:
	move inclusion of time.h after windsock2.h
	include direct.h for vc++
	use _WIN32_WCE for Windows CE compilers in evil_getcwd()
	* src/lib/Evil.h:
	* src/lib/evil_unistd.h:
	move getcwd() define from Evil.h to evil_unistd.h
	add some C99 types to Evil.h for vc++ (will be used in eina)
	* src/lib/evil_fcntl.c:
	include io.h for vc++
	* src/lib/evil_link_xp.cpp:
	use full name for symlink(). Fix symlink on Windows XP with
	the DOS prompt or the debugger of Visual Studio.
	* src/lib/evil_mman.c:
	don't include unistd.h if vc++ is used
	* src/lib/evil_stdio.h:
	formatting
	* src/lib/evil_stdlib.h:
	* src/lib/evil_stdlib.c:
	define putenv only for mingw32ce
	move the returned value of setenv()



SVN revision: 38333
2008-12-27 18:53:56 +00:00
Vincent Torri 89937e8cf5 * src/lib/Evil.h:
be sure to include stdio.h before redefining the
	functions that are declared int it.



SVN revision: 38076
2008-12-10 06:15:03 +00:00
Vincent Torri d7092143aa * src/bin/Makefile.am:
* src/bin/evil_suite.c:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_gettimeofday.h:
	add a small test for gettimeofday
	* src/bin/evil_test_memcpy.c:
	fix warning
	* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_main.c:
	* src/lib/evil_main.h:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	* src/lib/evil_private.h:
	add gettimeofday for Windows CE natively. It is necessary
	to initialise evil with evil_init() now, to have that
	feature.
	* src/lib/evil_stdio.c:
	* src/lib/evil_string.c:
	fix warnings



SVN revision: 37734
2008-11-21 22:57:45 +00:00
Vincent Torri d475a28d93 * src/lib/Evil.h:
* src/lib/evil_stdio.h:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	overload the stat() function for native Windows CE platform.
	move pipe() and fopen() definitions to their own header files



SVN revision: 37452
2008-11-04 07:53:43 +00:00
Vincent Torri de996636ba * configure.ac:
use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE, because it
	leads to more trouble than it improves configure speed...
	* src/lib/Evil.h:
	use __VA_ARGS__ instead of ##args to make gcc happy.



SVN revision: 37302
2008-10-29 11:07:43 +00:00
Vincent Torri 52ea343c44 * configure.ac:
define _WIN32_WCE with the cegcc compiler too
	useless EVIL_HAVE_WINCE define
	* src/bin/evil_test_memcpy.c:
	use _WIN32_WCE insead of EVIL_HAVE_WINCE
	* src/lib/Evil.h:
	try another definition of open(). Need feedback.
	* src/lib/evil_private.h:
	* src/lib/evil_util.c:
	add private error message when GetLastMessage must be called
	* src/lib/Makefile.am:
	* src/lib/evil_link_ce.c:
	* src/lib/evil_link_xp.cpp:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.cpp:
	move specific link code (readlink and symlink) outside
	evil_unistd to evil_link_ce.c for Windows CE and
	evil_link_xp.cpp for Windows XP. This allow the Windows CE
	code not depend on c++ code anymore and above all, not
	statically link libstdc++ on that platform.
	I need feedback on Windows XP, btw :)



SVN revision: 37295
2008-10-29 08:04:52 +00:00
Vincent Torri de07e9bad9 reviewed by: <delete if not using a buddy>
patch by: <delete if not someone else's patch>
	* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_private.h:
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	* src/lib/evil_stdlib.c:
	* src/lib/evil_unistd.c:
	* src/lib/evil_util.c:



SVN revision: 37046
2008-10-24 07:32:08 +00:00
Vincent Torri 3806efd337 * src/lib/Evil.h:
use getcwd() from evil_unistd.c



SVN revision: 36912
2008-10-21 08:31:13 +00:00
Vincent Torri c30004b6c9 * configure.ac:
* src/lib/Makefile.am:
	readd guards suppressed in previous commit
	* src/lib/Evil.h:
	include new header files
	* src/lib/errno.h:
	* src/lib/evil_errno.c:
	add fake errno system with mingw32ce
	* src/lib/evil_fcntl.c:
	* src/lib/evil_fcntl.h:
	fix compilation on cegcc and mingw32 (mainly does
	nothing on Windows CE)
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	add rewind and perror for mingw32ce
	* src/lib/evil_string.c:
	* src/lib/evil_string.h:
	add strerror for mingw32ce



SVN revision: 36587
2008-10-11 14:35:26 +00:00
Vincent Torri b5ac42942c * mingw32ce has no locale stuff
* libmman does not exist anymore


SVN revision: 36127
2008-09-20 10:02:09 +00:00
Vincent Torri a7f00b51bc * Makefile.am:
add autogen.sh in archive distribution

* configure.ac:
remove useless defines
first support of mingw32msvc compiler

* src/lib/Evil.h:
move some macro definitions

* src/lib/Makefile.am:
add evil_(fcntl/langinfo).(c/h) and install pwd.h

* src/lib/dlfcn/dlfcn.h:
remove useless ifdef

* src/lib/evil.c:
comment all code for now. It will be deleted later

* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
* src/lib/evil_langinfo.c:
* src/lib/evil_langinfo.h:
move fcntl and langinfo related code to their own files

* src/lib/evil_mman.c:
remove useless inclusion

* src/lib/evil_pwd.c:
pw var is not needed with cegcc

* src/lib/evil_stdlib.c:
fix bugs, formatting

* src/lib/evil_unistd.c:
add missing declarations and fix header files

* src/lib/evil_unistd.h:
move pid_t typedef to Evil.h

* src/lib/evil_util.c:
additional include and fix a bug in output

* src/lib/pwd.h:
use EAPI from Evil.h, define struct passwd when not using cegcc

* src/lib/sys/mman.h:
use EAPI from Evil.h

* win32/common/fnmatch.c:
* win32/common/fnmatch.h:
* win32/common/fnmatch_list_of_states.c:
* win32/vs8/evil.sln:
fix and cleanup with vc++ compilation
Based on patch by Dmitriy Mazovka


SVN revision: 35993
2008-09-15 06:56:14 +00:00
Vincent Torri 161ab7a975 Fix compilation with vc++. Based on patch by Dmitriy Mazovka
* src/lib/Evil.h:
move typedef's

* src/lib/evil.c:
remove declaration and include

* src/lib/evil_stdlib.c:
simplify mkstmp implementation
fix getenv

* src/lib/evil_unistd.c:
include correct headers for readlink and symlink


SVN revision: 35983
2008-09-14 07:07:39 +00:00
Vincent Torri 146b4a86c6 * big rework of evil: put most of functions in evil.c in their own files
* add unit test for memcpy. more will come later


SVN revision: 35979
2008-09-13 21:19:22 +00:00
doursse 52fbecb588 * src/lib/Evil.h:
declare pid_t, ssize_t and mode_t for vc++ before flock
structure (vc++)
* src/lib/dlfcn/dlfcn.h:
include limits.h for vc++
* src/lib/evil.c: (symlink), (readlink):
use UNICODE instead of checking the OS. Use PATH_MAX instead
of MB_CUR_MAX when needed


SVN revision: 35098
2008-07-13 17:34:53 +00:00
doursse 287f9c9edf * src/lib/Evil.h:
uid_t and gid_t exist on cegcc


SVN revision: 34998
2008-07-03 09:08:59 +00:00
doursse 6aba69be2f * configure.ac:
* src/lib/Evil.h:
* src/lib/Makefile.am:
* src/lib/evil.c:
* src/lib/pwd/Makefile.am:
* src/lib/pwd/pwd.h:
add langinfo and getpwuid support
* src/lib/mman/sys/mman.h:
* src/lib/dlfcn/dlfcn.h:
fix comment


SVN revision: 34942
2008-06-29 12:09:48 +00:00
doursse 8bd0e92e81 * src/lib/Evil.h:
add defines for vc++. Thanks to Dmitriy Mazovka


SVN revision: 34801
2008-06-11 21:34:09 +00:00
doursse ef5ef75eab * configure.ac:
* src/lib/dlfcn/dlfcn.h:
* src/lib/mman/sys/mman.h:
define EFL_EVIL_MMAN_BUILD and EFL_EVIL_DLFCN_BUILD so
that functions in Evil.h are not declared as import
* src/lib/evil.c: (setenv), (unsetenv), (realpath),
(evil_sockets_init), (evil_sockets_shutdown), (evil_pipe),
(evil_tmpdir_get), (evil_homedir_get):
rename pipe() to evil_pipe().
set tmpdir to "Temp" and homedir to "My Documents" on WinCE
* src/lib/Evil.h:
define pipe() as evil_pipe(). This allow to use our pipe()
implementation to be usedwith cegcc, as it is broken on that
platform.
move the defines at the end of the file


SVN revision: 34787
2008-06-10 07:16:53 +00:00
doursse 98a11ae8cf * src/lib/Evil.h:
add strdup define
* src/lib/evil.c: (evil_tmpdir_get), (evil_homedir_get):
include stdlib.h to define MB_CUR_MAX
On Windows CE, tmpdir and homedir are defined as "\windows"
* src/lib/mman/mman.c: (mmap), (munmap):
compile the big fat hack of mmap only on Windows CE


SVN revision: 34784
2008-06-09 18:35:49 +00:00
doursse 0fbdc23c40 * src/lib/Evil.h:
* src/lib/evil.c: (evil_last_error_get):
add evil_last_error_get() function to get
useful error string creation.
* src/lib/dlfcn/dlfcn.c: (get_last_error), (dlopen), (dlsym),
(dladdr):
use UNICODE check instead of compiler checks when needed.
use evil_last_error_get()
* src/lib/mman/mman.c: (mmap), (munmap):
file mapping does not work on Windows CE < 5.0.
if it is the case, just read the file and return
the data.
use evil_last_error_get()
* src/lib/mman/Makefile.am:
* src/lib/Makefile.am:
add libevil dependancy


SVN revision: 34775
2008-06-08 21:39:49 +00:00
doursse 2830a8186a * src/lib/Evil.h:
include windows.h instead of windef.h
undefine PATH_MATH before defining it
* src/lib/dlfcn/dlfcn.c:
remove useless header file


SVN revision: 34763
2008-06-07 06:38:54 +00:00
doursse 7dc315e9dc * src/lib/Evil.h:
add PATH_MAX macro
* src/lib/dlfcn/dlfcn.c: (get_last_error):
free correctly strings


SVN revision: 34760
2008-06-06 17:44:59 +00:00
doursse c1ea673e9a * src/lib/Evil.h:
* src/lib/evil.c: (setenv), (unsetenv):
setenv and unsetenv are already defined with cegcc


SVN revision: 34723
2008-06-02 04:53:41 +00:00
doursse d8e6039ece Fix open, add getcwd, lstat, setenv, unsetenv and evil_homedir_get and fix typo in doc
SVN revision: 34718
2008-06-01 17:09:14 +00:00
doursse d72b07f4aa add wrapper around GetCurrentProcessId()
SVN revision: 34536
2008-05-11 09:32:52 +00:00