ecore_getopt_help() cant be called from a thread either in the process.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@69728
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
#include "Ecore_Getopt.h"
static const char *prog = NULL;
-static char **argv = NULL;
-static int argc = 0;
+static char **_argv = NULL;
+static int _argc = 0;
static int cols = 80;
static int helpcol = 80 / 3;
{
const char *var;
+ EINA_MAIN_LOOP_CHECK_RETURN;
if (!parser) return;
- if (argc < 1)
+ if (_argc < 1)
{
- ecore_app_args_get(&argc, &argv);
- if ((argc > 0) && (argv[0]))
- prog = argv[0];
+ ecore_app_args_get(&_argc, &_argv);
+ if ((_argc > 0) && (_argv[0]))
+ prog = _argv[0];
else
prog = parser->prog;
}