Commit Graph

188 Commits

Author SHA1 Message Date
Vincent Torri 04ccb0a4b4 * src/lib/evil_stdio.c:
make vasprintf() compile on Windows CE
	* src/lib/evil_time.c:
	* src/lib/evil_time.h:
	add stub tzset() for Windows CE



SVN revision: 57273
2011-02-23 19:34:27 +00:00
Vincent Torri 56940cdb32 * src/lib/evil_stdio.c:
* src/lib/evil_stdio.h:
	Add asprintf() function.
	Add documentation for vasprintf().
	Use _vcprintf() instead of vsnprintf() to get the length
	of the string, as recommended by MSDN.



SVN revision: 56705
2011-02-04 09:16:11 +00:00
Vincent Torri b16da2d20f * src/lib/evil_stdio.c:
* src/lib/evil_stdio.h:
	better perror() declaration / definition



SVN revision: 55954
2011-01-06 19:32:03 +00:00
Vincent Torri 4bc3bb0962 * src/lib/evil_unistd.c:
* src/lib/evil_unistd.h:
	declare and define getpid() for Windows CE.



SVN revision: 55854
2011-01-04 18:52:28 +00:00
Vincent Torri 84512c288a dirent.h should be installed once only
SVN revision: 55851
2011-01-04 17:39:22 +00:00
Vincent Torri d7ed7006ac * src/lib/dlfcn/dlfcn.h:
define (temporary) PATH_MAX on Windows CE.
	cegcc has a bug with limits.h.
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	undefine temporary the definition of perror() on Windows CE



SVN revision: 55845
2011-01-04 13:37:24 +00:00
Vincent Torri 741aaf1016 fix segmentation fault in basename() and dirname()
SVN revision: 55632
2010-12-18 18:30:32 +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 0fe21742f6 add dirname() function
SVN revision: 55530
2010-12-13 05:20:56 +00:00
Vincent Torri 562d84c432 add usleep() for vc++
SVN revision: 55525
2010-12-12 22:44:06 +00:00
Vincent Torri 4fb7d6e26b fix warning
SVN revision: 55472
2010-12-10 23:45:29 +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 38f3d012d6 [evil] use our own dirent structure and implementation instead of
mingw one.

SVN revision: 53773
2010-10-22 16:47:28 +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
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Vincent Torri 59384ec82a * doc/Doxyfile:
define _MSC_VER so that code guarded by it can
	be processed by doxygen
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	vasprintf() is also not in mingw crt
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	getpid is declared and defined in mingw crt



SVN revision: 49287
2010-05-29 10:51:06 +00:00
Vincent Torri c1f0bf9bbd * src/lib/evil_stdio.c:
* src/lib/evil_stdio.h:
	add vasprintf() function



SVN revision: 48001
2010-04-14 17:47:40 +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 361446fafe * src/lib/evil_string.c:
* src/lib/evil_string.h:
	add strcasecmp wrapper for vc++



SVN revision: 47485
2010-03-26 08:05:02 +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 5f5973c6c2 * src/lib/evil_unistd.c:
fix gettimeofday(). Thanks to Mathieu SCHROETER,
	from the GeexBox project, for having spotted this.



SVN revision: 46116
2010-02-12 16:03:08 +00:00
Vincent Torri 367a8d9154 * remove useless pipe() test
* add missing files


SVN revision: 45737
2010-01-30 19:58:10 +00:00
Vincent Torri 65d13f2085 * src/lib/evil_fcntl.c:
verify that the data passed to fcntl() is really a socket
	and fix ioctlsocket() returned value check.
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	add unit test for pipe().



SVN revision: 45736
2010-01-30 19:55:45 +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 7a09cb73a6 * src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
	fix fcntl() with F_SETFL command



SVN revision: 45723
2010-01-30 00:03:47 +00:00
Vincent Torri 29db27970c * src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
	* src/lib/evil_unistd.c:
	make pipe() blocking by default and allow fcntl()
	to set a socket to be non-blocking
	* src/lib/evil_stdlib.c:
	fix warning



SVN revision: 45698
2010-01-29 09:34:26 +00:00
Vincent Torri 3697aa349d * src/lib/dlfcn/dlfcn.c:
Fix dladdr() on Windows CE: use the calling process
	address to get the path.



SVN revision: 45325
2010-01-19 13:46:45 +00:00
Vincent Torri 48bebf06fa necessary declarations for vc++
SVN revision: 44598
2009-12-20 12:08:54 +00:00
Vincent Torri 8e9e67f075 * Makefile.am:
remove m4 libtool installed files during the
	maintainer-clean rule
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	add the remove() function



SVN revision: 44577
2009-12-19 19:08:28 +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 b52d4b247f * evil_string.c : add strrstr() win32 port
* include config.h where it is not included
 * various minor formatting

SVN revision: 44228
2009-12-06 19:22:20 +00:00
Vincent Torri b7521b41a2 do not install dirent.h when we are using mingw
SVN revision: 43251
2009-10-25 06:46:49 +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 ac15f9b938 fix Evil documentation
SVN revision: 43077
2009-10-14 18:48:13 +00:00
Vincent Torri 4650a3c6de fix evil_init() when called several times but is failing
SVN revision: 42970
2009-10-08 21:14:55 +00:00
Vincent Torri 9ad128d133 * src/lib/evil_main.c:
Shutdown socket system in evil_shutdown().
	Update init/shutdown scheme.



SVN revision: 42952
2009-10-08 05:01:50 +00:00
Vincent Torri b25ed5342f Improve the implementation of dladdr on Windows. As the symbols are in the DLL's and as the DLL's are in the bin/
subdirectory, installers must put the eina mempools and evas
modules directories in the bin/ subdirectory

SVN revision: 42734
2009-09-26 21:36:01 +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 bb6e659965 * src/lib/dlfcn/dlfcn.c:
fix warnings
	* src/lib/evil_fnmatch_list_of_states.c:
	fix vc++ warning
	* win32/MANIFEST.txt:
	* win32/README.txt:
	* win32/start.bat:
	* win32/vs9/evil.sln:
	* win32/vs9/libdlfcn.vcproj:
	* win32/vs9/libevil.vcproj:
	* win32/vs9/test/out/update_deps.bat:
	* win32/vs9/test/start.bat:
	* win32/vs9/test/test.sln:
	* win32/vs9/test/test.vcproj:
	* win32/vs9/test/test_fnmatch.cpp:
	* win32/vs9 (added):
	* win32/vs9/test (added):
	* win32/vs9/test/test_fnmatch.cpp (added):
	* win32/vs9/test/test.vcproj (added):
	* win32/vs9/test/start.bat (added):
	* win32/vs9/test/out (added):
	* win32/vs9/test/out/update_deps.bat (added):
	* win32/vs9/test/test.sln (added):
	* win32/vs9/libdlfcn.vcproj (added):
	* win32/vs9/libevil.vcproj (added):
	* win32/vs9/evil.sln (added):
	* win32/start.bat (added):
	* win32/vs8/libmman.vcproj (deleted):
	* win32/vs8/start.bat (deleted):
	* win32/set_env.bat (deleted):
	update the Visual Studio environment. Now, there is only one
	script to launch (start.bat) in win32/. It detects automatically
	the latest Visual Studio environment which is installed and launch
	the solution. Currently	supported VS are 2005 and 2008.



SVN revision: 42029
2009-08-27 08:19:06 +00:00
Lars Munch 3091ddee09 * src/lib/evil_main.c:
initiate use of the Winsock DLL in evil_init()



SVN revision: 41025
2009-06-13 08:25:28 +00:00
Vincent Torri 0965a704e9 * src/lib/evil_langinfo.c:
* src/lib/evil_langinfo.h:
	add minimal RADIXCHAR support. Must be fixed in
	a better way.



SVN revision: 40995
2009-06-10 17:33:18 +00:00
Vincent Torri 51fa69fc9e reviewed by: Vincent Torri
patch by: Lance Fetters
	* src/lib/evil_unistd.c:
	make evil_pipe() non blocking



SVN revision: 40758
2009-05-20 17:56:00 +00:00
Vincent Torri b9972c4f6a * configure.ac:
* src/lib/Makefile.am:
	put c++ flags in a variable and use gcc when
	linking the Windows CE code.



SVN revision: 40180
2009-04-18 18:32:58 +00:00
Vincent Torri aace76a3b8 spelling
SVN revision: 40159
2009-04-18 09:19:03 +00:00
Vincent Torri b2b415ac00 * src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
	support of F_GETFD in fcntl() (does nothing, actually
	needed for last ecore change)



SVN revision: 39978
2009-04-11 11:12:34 +00:00
Vincent Torri adf3a95ddc * src/lib/evil_stdlib.c:
manage correctly getenv() when value is NULL.



SVN revision: 39900
2009-04-08 17:22:12 +00:00
Vincent Torri a3f6e333f9 include winsock2.h before Evil.h to avoid conflict with sys/time.h
when using Visual Studio


SVN revision: 39179
2009-02-24 17:44:59 +00:00
Vincent Torri 9d900b283a * src/lib/evil_main.c:
* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	Use high resolution timer for gettimeofday() and
	export a convenient function for ecore_time_get(),
	to save some computations.
	* src/lib/evil_pwd.c:
	Use the correct name for GetUserNameEx() according
	to the platform.



SVN revision: 39148
2009-02-22 19:20:23 +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 a66c46264c * src/lib/evil_stdio.c:
replace / by \ in the path passed to fopen



SVN revision: 39036
2009-02-16 08:42:41 +00:00
Vincent Torri 6a48f60e39 * src/lib/evil_fcntl.c:
fix fcntl()



SVN revision: 38766
2009-01-24 22:29:19 +00:00
Vincent Torri 7da4e5839d * src/bin/Makefile.am:
* src/bin/evil_suite.c:
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_dlfcn.h:
	* src/bin/evil_test_environment.c:
	* src/bin/evil_test_environment.h:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_gettimeofday.h:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_link.h:
	* src/bin/evil_test_mkstemp.c:
	* src/bin/evil_test_mkstemp.h:
	* src/bin/evil_test_realpath.c:
	* src/bin/evil_test_realpath.h:
	various fixes in the test suite.
	add mkstemp() and realpath tests.
	* src/lib/evil_dirent.c:
	fix opendir() when indexation search is not active.
	formatting.
	* src/lib/evil_stdlib.c:
	fir mkstemp() on both platform
	* src/lib/evil_unistd.c:
	remove useless error message.



SVN revision: 38645
2009-01-19 17:51:17 +00:00
Vincent Torri c8c9bf3062 * src/lib/evil_dirent.c:
* src/lib/evil_fnmatch.c:
	* src/lib/evil_link_xp.cpp:
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdlib.c:
	* src/lib/evil_string.c:
	* src/lib/evil_unistd.c:
	* src/lib/evil_util.c:
	warnings fixes



SVN revision: 38552
2009-01-12 06:03:51 +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 55f7df7ef9 * src/bin/Makefile.am:
* src/bin/evil_test_gettimeofday.c:
	fix unit test; now all tests pass, finally
	* src/lib/evil_unistd.c:
	fix gettimeofday() on mingw32ce



SVN revision: 38130
2008-12-13 18:43:16 +00:00
Vincent Torri 87ededafe7 * src/bin/Makefile.am:
and don't compile test_dlfcn...



SVN revision: 38129
2008-12-13 17:19:28 +00:00
Vincent Torri 93bded8fd2 * src/bin/evil_suite.c:
do not access to undefined pointer



SVN revision: 38128
2008-12-13 17:11:31 +00:00
Vincent Torri e4978aeae2 * src/bin/test_dlfcn.c:
remove dlfcn test, is in the unit test now



SVN revision: 38127
2008-12-13 16:07:23 +00:00
Vincent Torri 826fd4ce79 * src/bin/Makefile.am:
* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_dlfcn.h:
	add dflcn unit test
	* src/bin/evil_suite.c:
	show result of the unit tests and add dlfcn unit test
	* src/bin/evil_test_environment.c:
	remove debug
	* src/bin/evil_test_gettimeofday.c:
	debug, not working yet :/
	* src/bin/evil_test_link.c:
	* src/lib/evil_link_ce.c:
	fix link support on Windows CE



SVN revision: 38126
2008-12-13 16:04:05 +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 26d595d0d8 * src/bin/evil_test_gettimeofday.c:
add output
	* src/bin/evil_test_link.c:
	add a unit test for readlink()
	* src/lib/evil_link_xp.cpp:
	fix readlink() and symlink() on Windows XP



SVN revision: 38070
2008-12-09 22:27:53 +00:00
Vincent Torri 7b9b40334f * src/lib/evil_main.c:
always export evil_init() and evil_shutdown()



SVN revision: 37945
2008-12-05 22:50:24 +00:00
Vincent Torri e407285fb1 * src/bin/evil_test_gettimeofday.c:
replace evil_gettimeofday by gettimeofday
	* src/lib/evil_string.c:
	* src/lib/evil_string.h:
	add strcoll() "port" to Windows CE OS. Note it's
	just strcmp, no locale stuff is used onn that OS.



SVN revision: 37910
2008-12-03 00:36:31 +00:00
Vincent Torri e12623ee46 * src/lib/evil_main.c:
define correctly EAPI



SVN revision: 37849
2008-11-29 10:56:20 +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
Samuel F. Baggen fafeb1044d [vtorri patch] include fnmath code for mingw users
SVN revision: 37611
2008-11-13 20:53:16 +00:00
Vincent Torri bd70ea0c86 * src/lib/evil_unistd.h:
export execvp()



SVN revision: 37596
2008-11-12 07:25:38 +00:00
Vincent Torri ad106db9fe * evil.pc.in:
remove -ldl
	* src/lib/evil_dirent.c:
	change guards
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	add some checks,
	add a function that more or less mimic fopen, but with
	native win32 api calls. This is only for the evas loader
	and saver of png files and works only for Windows CE.
	* src/lib/evil_unistd.c:
	move a free() and remove debug calls.



SVN revision: 37570
2008-11-09 19:27:13 +00:00
Vincent Torri 6a7aefef08 * src/lib/evil_stdio.c:
* src/lib/evil_stdio.h:
	overload rewind for Windows CE
	* src/lib/evil_unistd.c:
	remove debug



SVN revision: 37477
2008-11-05 17:27:20 +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 9efc8ecf79 * configure.ac:
add a flag to know if cegcc is used or not
	* src/lib/Makefile.am:
	* src/lib/dirent.h:
	* src/lib/evil_dirent.c:
	add opendir(), closedir() and readdir() implementations
	for Windows XP and CE. Now, the evas engines are correctly
	found.
	* src/lib/fnmatch.h:
	formatting



SVN revision: 37376
2008-11-01 17:07:41 +00:00
Vincent Torri 7e2b141beb * configure.ac:
formatting
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/dlfcn/dlfcn.h:
	fix dladdr declaration



SVN revision: 37370
2008-11-01 09:50:01 +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 9a0b7ebd18 * configure.ac:
add c++ compiler checks
	remove linking against libuid.a	as it's not an import lib.
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_link.h:
	add unit test for links. Must be improved.
	* src/lib/Makefile.am:
	add unistd.cpp and uuid.c
	use -fno-exceptions when compiling c++ code
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.cpp:
	use C++ api to manage links on Windows XP. Can be considered
	as heavy but it's cleaner as the internals can change later.
	I might consider to compile Windows CE code with only C compiler
	as with mingw32ce, libstdc++ is statically linked to the
	DLL / app (legacy of mingw stuff), to reduce a bit the DLL size.
	* src/lib/evil_private.h:
	declare _evil_error_display() as C function (otherwise linker
	not happy)
	* src/lib/evil_stdlib.c:
	use RegCreateKeyEx() instead of RegOpenKeyEx in getenv().
	fix an _evil_error_display() call.
	* src/lib/evil_util.c:
	add more error messages
	* src/lib/evil_uuid.c:
	define IID_IPersistFile (for links on Windows XP)
	* src/lib/evil_unistd.h:
	fix doc



SVN revision: 37267
2008-10-28 08:59:12 +00:00
Vincent Torri 3aa052f73c display the correct function name when displaying an error
SVN revision: 37212
2008-10-27 08:39:13 +00:00
Vincent Torri bb5f1a561a * src/lib/evil_unistd.c:
* src/lib/evil_unistd.h:
	add execvp stub function for ecore_app. Does nothing,
	only here to make compilation working with mingw32ce.



SVN revision: 37102
2008-10-25 17:39:59 +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 ccab8e2101 missing files
SVN revision: 37041
2008-10-24 06:06:57 +00:00
Vincent Torri 44d632008b * configure.ac:
* src/lib/Makefile.am:
	store cpp flags in a variable instead of using an
	automake conditional
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_memcpy.c:
	add test for getenv / setenv. More tests on it will
	come later
	* src/lib/evil_stdlib.c:
	fix getenv code and minor cleanup



SVN revision: 37004
2008-10-22 21:36:55 +00:00
Vincent Torri 0eb2aaab4d * m4/ac_attribute.m4:
use newer file from PROTO/autotools
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/evil_mman.c:
	no need to define __UNUSED__ anymore with the new m4 macro
	* src/lib/Makefile.am:
	* src/lib/evil.c:
	remove useless file



SVN revision: 36921
2008-10-21 11:01:36 +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 d2b7c8f93c * src/lib/Makefile.am:
* src/lib/evil_time.c:
	add tzset implementation ofr mingw32ce (does nothing...),
	needed for embryo
	* src/lib/evil_stdio.h:
	formatting



SVN revision: 36911
2008-10-21 07:41:39 +00:00
Vincent Torri e67164459d * src/bin/evil_suite.c:
* src/bin/evil_suite.h:
	* src/bin/evil_test_memcpy.c:
	* src/bin/evil_test_memcpy.h:
	clean suite and memcpy test code



SVN revision: 36835
2008-10-20 04:42:26 +00:00
Vincent Torri 1293953743 * src/lib/errno.h:
* src/lib/evil_errno.c:
	export errno symbol.
	* src/lib/evil_string.c:
	* src/lib/evil_string.h:
	add a (slow) implementation of ffs(). Needed for eina



SVN revision: 36824
2008-10-19 19:06:19 +00:00
Vincent Torri 26e3986a81 * configure.ac:
* src/lib/Makefile.am:
	fix compilation on MinGW. Windows 2000 is
	the minimum version supported by Evil (hence
	other EFL). Goodbye Windows 98.
	* src/bin/evil_test_memcpy.c:
	re-enable small memcpy tests. It seems that memcpy
	provided by glibc and the oem driver on Ipaq
	3970 I have, have the same speed.



SVN revision: 36724
2008-10-16 17:12:59 +00:00
Vincent Torri a3f8f5f27b * Makefile.am:
add the doc subdir
	* src/lib/Makefile.am:
	add evil_fnmatch_private.h in tarballs



SVN revision: 36705
2008-10-16 07:04:38 +00:00
Vincent Torri ffa00324c4 adding missing files
SVN revision: 36652
2008-10-14 07:58:57 +00:00
Vincent Torri d8fda87e83 * src/lib/evil_fcntl.h:
don't use it with the cegcc compiler
	* src/lib/evil_fnmatch.c:
	fix warning
	* src/lib/evil_stdlib.c:
	fix putenv and mkstemp with cegcc and mingw32ce



SVN revision: 36651
2008-10-14 06:52:09 +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