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
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
* 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
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
* 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
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
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
* 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
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