Commit Graph

25 Commits

Author SHA1 Message Date
Stefan Schmidt d0f69cf2e2 exotic: remove left-overs from Exotic support
This seems to have been gone a long time ago and only references left
that have not been disturbing the build. Time to clean up!

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10793
2019-12-04 12:21:28 -08:00
Mike Blumenkrantz 39f384bba1 ecore/getopt: handle negative return in arg parsing
Summary:
_ecore_getopt_parse_find_nonargs_base() can return -1 on errors

CID 1402615

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10393
2019-10-18 13:28:54 -04:00
Gustavo Sverzut Barbieri c05152fcd4 ecore_getopt: allow empty strings as parameters.
Sometimes we want to specify an empty string, that should be allowed.
2016-10-31 19:38:22 -02:00
Daniel Kolesa 9a3cf2ff49 ecore_getopt: correct fix for CID 98382 and 98383 2014-08-27 11:57:19 +01:00
Tom Hacohen 27f738115e Revert "ecore_getopt - fix possible null arg"
This breaks terminology, look at the previous commit for more info.

This reverts commit d8130825d5.
2014-08-27 11:50:14 +01:00
Tom Hacohen 2f249a6436 Revert "ecore_getopt - fix possible null arg"
Breaks getopt completely, try terminology --help.

You committing it again doesn't fix the fact it doesn't work. :)

This reverts commit e876ec527f.
2014-08-27 11:50:14 +01:00
Carsten Haitzler e876ec527f ecore_getopt - fix possible null arg
fixes CID 98382
2014-08-27 17:55:06 +09:00
Carsten Haitzler d8130825d5 ecore_getopt - fix possible null arg
fixes CID 98383
2014-08-27 17:53:42 +09:00
Daniel Kolesa 8c8a2b1098 ecore_getopt: correct fix for CID 98382 and 98383 2014-08-22 15:13:44 +01:00
Daniel Kolesa 50632600e6 Revert "ecore_getopt - fix arg_val being null"
It's as wrong as the other commit which TAsn already reverted.
This needs a fix elsewhere, particularly in the functions that
use arg_val.

This reverts commit ab53900364.
2014-08-22 15:07:21 +01:00
Tom Hacohen 41ec0da2aa Revert "ecore_getopt - handle if arg_val is null"
This completely breaks getopt. Try running terminology --help.

This reverts commit 1bb6a8a4e4.
2014-08-22 14:51:35 +01:00
Carsten Haitzler ab53900364 ecore_getopt - fix arg_val being null
fix CID 98382
2014-08-22 20:14:58 +09:00
Carsten Haitzler 1bb6a8a4e4 ecore_getopt - handle if arg_val is null
fix CID 98383
2014-08-22 20:14:58 +09:00
Carsten Haitzler 164ea41b3e move ecore documentation not in headers to .h files for consistency 2014-07-26 12:30:12 +09:00
Vincent Torri 9631585f24 efl: remove Windows CE support 2014-07-13 15:17:17 +02:00
Felipe Magno de Almeida 1816949ee5 ecore: Fixed se of EINA_MAIN_LOOP_CHECK_RETURN macros with functions with return types
Summary:
Changed uses of EINA_MAIN_LOOP_CHECK_RETURN for EINA_MAIN_LOOP_CHECK_RETURN_VAL
for functions that doesn't have void return types.

These only error out when compiling with --with-profile=debug

@fixed

Reviewers: raster, cedric, smohanty

CC: cedric

Differential Revision: https://phab.enlightenment.org/D765
2014-04-17 21:08:43 +02:00
Daniel Kolesa f2c9fcf5f1 a small ecore_getopt bugfix 2014-01-24 10:12:41 +00:00
Daniel Kolesa edc548fac5 ecore_getopt: support for per-category help listing 2014-01-20 17:32:28 +00:00
Daniel Kolesa d660dd12bb ecore_getopt: support for categories 2014-01-15 20:22:27 +00:00
Gustavo Sverzut Barbieri 0b86e5119f getopt: add positional argument handling.
positional arguments must appear at the end of the description array
(after the last option) and should have a metavar set and not have
shortname or longname. Simple, elegant and fit :-)

There is a new function to parse the positional arguments,
ecore_getopt_parse_positional() because we may want to not try to
parse them in the case of a quit-option such as --help, --license,
--copyright, --version or some user-defined action. This avoids us
producing errors of missing positional arguments when printing help
and adds some flexibility as well.

This should make Tasn happy :-)
2013-12-17 21:06:53 -02:00
Gustavo Sverzut Barbieri 99ba5822c8 getopt: fix line wrapping issues in help strings. 2013-12-17 17:51:48 -02:00
Carsten Haitzler 6b6f689718 fix flang nonnull complaint 2013-07-16 16:58:45 +09:00
Gustavo Sverzut Barbieri 0a2d116119 efl: eina_alloca.h to simplify alloca() usage.
having to replicate 18 lines per file just to access alloca() is
insane. Let's do that in Eina.h and avoid that crap :-/



SVN revision: 82082
2013-01-03 15:10:34 +00:00
Gustavo Sverzut Barbieri c5667e3802 efl/ecore_getopt: add ECORE_GETOPT_ACTION_BREAK.
Thanks to PrinceAMD (Deon Thomas) for bugging me to implement this,
then test and add a fix, now we can implement something similar to
"xterm -e" in terminology.

ECORE_GETOPT_ACTION_BREAK will allow generic options to behave the
same as GNU's --, breaking out of argument parsing logic.



SVN revision: 80619
2012-12-10 18:43:36 +00:00
Vincent Torri 7d6010b12c merge: add escape ecore, fix several bugs
SVN revision: 79995
2012-12-02 22:35:45 +00:00