summaryrefslogtreecommitdiff
path: root/src/lib/evil (follow)
AgeCommit message (Collapse)Author
2019-10-07evil: make it clear in the docs that this library is private to eflStefan Schmidt
Since the 1.23 release we are stricter with the use of evil. It is supposed to be used inside efl only and not exposed as API. Make this clear in the docs as well. Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Differential Revision: https://phab.enlightenment.org/D10295
2019-10-07evil: remove stray x character from docs sectionStefan Schmidt
Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Differential Revision: https://phab.enlightenment.org/D10294
2019-10-07evil: bring back doxygen intro page for evil libraryStefan Schmidt
While we switched evil to be not a public AP, but internal lib only, we still want to have its documentation shown. Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Differential Revision: https://phab.enlightenment.org/D10270
2019-09-12Evil: fix mmap() and define HAVE_MMAPVincent Torri
Summary: add size of file mapping to fix invalid parameter Test Plan: compilation (edje succeeds) and elm_test Reviewers: zmike, cedric, raster Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9913
2019-09-05evil: add newline at end of meson.buildVincent Torri
Reviewers: cedric, raster, zmike, bu5hm4n Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9848
2019-09-05Evil: remove installation of header and pc files, remove from git Evil.hVincent Torri
this patch finishes to remove Evil public headers Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9847
2019-08-19make mman.h privateVincent Torri
Summary: integrate mman.h to make Evil private to the EFL, as mman.h does not exist on Windows. After a discussion with raster, i include sys/mman.h only on non Windows platform. One issue, though, is that src/modules/emotion/generic/Emotion_Generic_Plugin.h has inlined functions using mmap() Test Plan: compilation on Windows Reviewers: cedric, raster, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9542
2019-08-05evil: add mprotect() and fix a bit mmap(). Elm_test is workingVincent Torri
Test Plan: compilation aand elm_test working Reviewers: raster, cedric, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9493
2019-07-28Evil: remove pwd code in Evil and fix compilation failures after the removalVincent Torri
Summary: remove pwd code in Evil Test Plan: compilation Reviewers: zmike, cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9420
2019-07-16Evil: remove getpwuid() from Evil.Vincent Torri
Summary: getpwuid() is used only in eina_test_vpath() and is called when getpwent() is available, which is not the case on Windows Test Plan: compilation Reviewers: raster, cedric, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9326
2019-06-18define HAVE_REALPATH in evil_stdlib.hVincent Torri
Summary: instead of relying on build system, define HAVE_REALPATH in Evil header file Reviewers: zmike, raster, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9107
2019-05-28Evil: fix infinite loop with setlocaleVincent Torri
Summary: evil_setlocale was defined as setlocale in evil_private.h *before* evil_setlocale, hence evil_setlocale was calling itself. The solution was to not call evil_private.h in evil_locale.c Test Plan: compialtion and elementary_test Reviewers: zmike, raster, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7985 Differential Revision: https://phab.enlightenment.org/D9030
2019-05-16Evil: remove fall through warningVincent Torri
Summary: gcc and clang support the usage of "fall through" comment to suppress this warning Test Plan: compilation Reviewers: raster, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8904
2019-05-15Evil: move the inclusion of all headers in evil_private.hVincent Torri
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
2019-05-08Evil: fix warning on 64 bitsVincent Torri
Summary: int is 32 bits, HANDLE is void *, so cast to uintptr_t in between Test Plan: compilation Reviewers: raster, cedric, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8865
2019-05-08Evil: remove localtime_r as mingw-w64 defines it when _POSIX_C_SOURCE is definedVincent Torri
Summary: localtime_r() is already defined by mingw-w64 when _POSIX_C_SOURCE is defined edit: also only define _POSIX_C_SOURCE (correctly) on windows Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8859
2019-05-08Revert "Evil: remove localtime_r as mingw-w64 defines it when ↵Carsten Haitzler (Rasterman)
_POSIX_C_SOURCE is defined" This reverts commit a4c44e5e744dba15dfe512668127906afd4b6dba. this breaks on osx it seems... :(
2019-05-08Evil: remove wrapper around getcwd()Vincent Torri
Summary: getcwd() is declared in direct.h Test Plan: compilation Reviewers: raster, cedric, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8858
2019-05-08Evil: remove localtime_r as mingw-w64 defines it when _POSIX_C_SOURCE is definedVincent Torri
Summary: localtime_r() is already defined by mingw-w64 when _POSIX_C_SOURCE is defined Test Plan: compilation Reviewers: raster, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7907 Differential Revision: https://phab.enlightenment.org/D8854
2019-05-06meson: add versioning to and install the evil dllMike Blumenkrantz
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8730
2019-05-06evil: explicitly define HAVE_DL$FUNC for dl functionsMike Blumenkrantz
these would normally be set by the build system when detecting the system's libdl functions, but since we are providing them then we must advertise the functionality to ensure that the right codepaths will be used Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8729
2019-05-03replace strndup with eina_strndup, remove strndup definition in evil and ↵Vincent Torri
elm_test_dnd Test Plan: compilation Reviewers: cedric, zmike, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8814
2019-04-18Windows: remove fnmatch and regex in Evil and use the ones in regex DLL ↵Vincent Torri
installed by ewpi Test Plan: compilation with autotools and meson (at least as far as it can go) Reviewers: zmike, raster Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8646
2019-04-16evil: remove tmp and home dir getVincent Torri
Summary: eina implement them for all OSes Test Plan: compilation Reviewers: raster, cedric, zmike Reviewed By: raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8621
2019-04-02docs: Fix common misspellings in H filesXavi Artigas
Fixed all appearances of words from this list in H files: https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
2019-03-26evil : remove mkstemp, which is already defined in mingw-w64Vincent Torri
Summary: mkstemp is already defined in mingw-w64 Test Plan: compilation Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8454
2019-03-22evil: fix wrong values in timevalVincent Torri
Summary: time values are of type long, but a double values was used Test Plan: compilation Reviewers: raster, zmike, q66, simotek Reviewed By: zmike, simotek Subscribers: simotek, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8444
2019-02-28Eina: implement strtod in C locale and remove linkl against msvcr100.Vincent Torri
Summary: This fixes compilation on Windows More precisely edje_cc could not compile emotion edc files, so it was a runtime problem because of msvcr100 link. Add more tests than before Test Plan: compilation Reviewers: raster Subscribers: zmike, stefan_schmidt, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7926
2018-12-07meson: add inital support for windows compilationMarcel Hollerbach
Differential Revision: https://phab.enlightenment.org/D7416
2018-06-29Evil: fix usage of Evil in a program compiled with vc++ this should be ↵Vincent Torri
enough to fix T5206 Summary: Fix EFL errors when compiling a program with vc++ Test Plan: compilation Reviewers: zmike, devilhorns, an.kroitor Reviewed By: zmike Subscribers: cedric, an.kroitor, zmike, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6478
2018-01-30Evil: remove "symlink" code (it was for .lnk files anyway...)Vincent Torri
2018-01-18all: Simplify definition of EAPIVincent Torri
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
2018-01-12Evil: remove useless dirent codeVincent Torri
Test Plan: compilation of the EFL Reviewers: cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D5735 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2018-01-12efl: remove inclusion of dirent.h where it is not usedVincent Torri
Test Plan: compilation Reviewers: cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D5733 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-12-31Fix and simpligy windows behaviour.Andy Williams
Author: Vincent Torri
2017-12-11Evil: use static buffer to store error messagesVincent Torri
Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5394
2017-11-10evil: add tests for Windows port.Vincent Torri
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-10-24Evil: really drop Windows XP supportVincent Torri
Summary: set WINVER macro to at least Vista macro value Test Plan: compilation Reviewers: cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D5369
2017-10-13efl: unused variable removed, removing local variable assignment which has ↵Prince Kumar Dubey
no use at all. Reviewers: raster, cedric Reviewed By: cedric Subscribers: rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5304 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-10-13evil: remove strrstr and ffs - not used in the EFL on WindowsVincent Torri
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-10-01Windows: remove XP support and forbid compilation and run on this platformVincent Torri
Test Plan: run on XP Reviewers: jpeg, cedric, ajwillia.ms Reviewed By: ajwillia.ms Subscribers: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D5245
2017-06-12evil: Fix edc scripts compilation on windowsIvan Furs
Fixes T5410 Summary: should fix the error T5410 Reviewers: vtorri, t.naumenko, cedric, raster, an.kroitor, rimmed, NikaWhite, FurryMyad Subscribers: artem.popov, cedric, jpeg Maniphest Tasks: T5410 Differential Revision: https://phab.enlightenment.org/D4830
2017-04-03Evil: fix fcntl() with socketsVincent Torri
On Windows, fd and sockets are different. Sockets are actually HANDLES, hence _get_osfhandle() should not be used with sockets, and GetHandleInformation() and SetHandleInformation() can be used directly with sockets. This is fixed by adding a function to test if the 'fd passed to fcntl() is a socket or not.
2017-03-29evil_string: fix strndup() for non-NULL terminated strings.Gustavo Sverzut Barbieri
If the given string is not null-terminated, then strlen() will go out of boundaries, we must limit the lookup to given 'n' parameter. To do so use strnlen(), that is a strlen() bounded by a maximum size.
2017-01-17evil: include "sys/types.h" where is define off_tVyacheslav Reutskiy
2016-08-01autotools: since it has been broken for some times and nobody noticed, let's ↵Cedric BAIL
remove per directory support.
2016-06-16Evil: fix EAPI when dirent.h and mman.h are included (Windows only)Vincent Torri
Test Plan: compilatioN Reviewers: cedric, jpeg, stefan_schmidt Differential Revision: https://phab.enlightenment.org/D4055
2016-04-14evil: make it possible to build the library alone.Cedric BAIL
So I have been battling with autotools on this for a full week now, and what we want is basically impossible. A.k.a. one file definition and possibility to do a full build or just a partial build of efl. Even moving to just partial build require to land a massive patch that change everything in our build system and this is just not a road I want to take. For reference, if one day automake allow the use of any kind of variable (autoconf AC_SUBST expansion or $()) in the _SOURCES parameter, it will be possible to fix. Alternatively if they allow to build subdirectory before they do BUILT_SOURCE, it would make it possible to incrementaly move to only partial build. In the mean time, a less problematic solution is to duplicate source code.
2016-03-14Evil: the addr argument of dladdr is acually usedVincent Torri
2016-03-14Evil: cosmetic changeVincent Torri