Commit Graph

18 Commits

Author SHA1 Message Date
Vincent Torri 0a42091076 * configure.ac:
* src/lib/Makefile.am:
	* src/lib/evil_pformata.c:
	* src/lib/evil_printa.c:
	* src/lib/gdtoa (added):
	* src/lib/gdtoa/gdtoa.c (added):
	* src/lib/gdtoa/dmisc.c (added):
	* src/lib/gdtoa/gdtoa_fltrnds.h (added):
	* src/lib/gdtoa/ulp.c (added):
	* src/lib/gdtoa/g_dfmt.c (added):
	* src/lib/gdtoa/gmisc.c (added):
	* src/lib/gdtoa/g_ffmt.c (added):
	* src/lib/gdtoa/gdtoa.h (added):
	* src/lib/gdtoa/sum.c (added):
	* src/lib/gdtoa/gdtoaimp.h (added):
	* src/lib/gdtoa/README (added):
	* src/lib/gdtoa/gd_qnan.h (added):
	* src/lib/gdtoa/hd_init.c (added):
	* src/lib/gdtoa/smisc.c (added):
	* src/lib/gdtoa/strtof.c (added):
	* src/lib/gdtoa/hexnan.c (added):
	* src/lib/gdtoa/strtopx.c (added):
	* src/lib/gdtoa/gethex.c (added):
	* src/lib/gdtoa/g_xfmt.c (added):
	* src/lib/gdtoa/gd_arith.h (added):
	* src/lib/gdtoa/strtodg.c (added):
	* src/lib/gdtoa/dtoa.c (added):
	* src/lib/gdtoa/Makefile.am (added):
	* src/lib/gdtoa/misc.c (added):
	* src/lib/gdtoa/g__fmt.c (added):
	* src/lib/gdtoa/README.mingw (added):
	* src/lib/gdtoa/qnan.c (added):
	* src/lib/gdtoa/arithchk.c (added):
	Define some missing functions, so that Evil also
	compile with MinGW, vc++ and later with Cedric
	compatibility layer
	* src/lib/evil_util.c:
	Include limits.h for ULONG_MAX definition



SVN revision: 68304
2012-02-23 06:10:36 +00:00
Vincent Torri b9728980ab * AUTHORS:
* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_inet.c:
	* src/lib/evil_mman.c:
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	* src/lib/evil_stdlib.c:
	* src/lib/evil_util.c:
	* src/lib/sys/mman.h:
	* src/lib/evil_printa.c (added):
	* src/lib/evil_pformatw.c (added):
	* src/lib/evil_pformat.h (added):
	* src/lib/evil_printw.c (added):
	* src/lib/evil_print.h (added):
	* src/lib/evil_macro.h (added):
	* src/lib/evil_pformata.c (added):
	Add POSIX printf family. Code taken from the MinGW-w64
	project and modified to be integrated into Evil.
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_util.h (added):
	* src/bin/evil_test_print.c (added):
	* src/bin/evil_test_print.h (added):
	* src/bin/evil_test_util.c (added):
	Add util and printf unit tests
	* src/lib/evil_errno.c:
	* src/lib/errno.h (deleted):
	* src/lib/mingw32ce (added):
	* src/lib/mingw32ce/errno.h (added):
	Move errno.h for Windows CE in its own directory to
	suppress conflicts with standard errno.h when compiling
	for Windows XP.
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/evil_link_ce.c:
	* src/lib/evil_main.c:
	* src/lib/evil_unistd.c:
	Define WIN32_LEAN_AND_MEAN only if it's not defined.
	* src/lib/evil_fcntl.c:
	Remove debug.
	* 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:
	Remove warnings.
	* src/lib/evil_link_xp.cpp:
	Formatting.



SVN revision: 68084
2012-02-17 20:48:11 +00:00
Vincent Torri 1c6ea6ff65 * Makefile.am:
Fix EXTRA_DIST variable
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/lib/evil_libgen.c:
	* src/lib/evil_util.c:
	* src/lib/evil_util.h:
	Add evil_path_is_absolute() API and use it.
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_realpath.c:
	clean up.



SVN revision: 67389
2012-01-20 12:44:05 +00:00
Vincent Torri a6ed843005 wrong test
SVN revision: 64637
2011-11-02 07:29:09 +00:00
Vincent Torri c664467025 * src/lib/evil_util.c:
* src/lib/evil_util.h:
	Add evil_utf16_to_utf8() function, display error messages
	and fix a bit the documentation of the other conversion
	functions.



SVN revision: 64636
2011-11-02 07:22:11 +00:00
Vincent Torri 3859b0ea96 Evil: simplify evil_wchar_to_char()
SVN revision: 64023
2011-10-12 18:50:11 +00:00
Vincent Torri 585938123d Evil: add RTLD_DEFAULT support for dlsym()
SVN revision: 63373
2011-09-14 07:44:09 +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 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 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 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 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 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 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 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 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