update examples to match args change

devs/lauromoura/fix-csharp-life
Carsten Haitzler 5 years ago
parent 566b5c3ee7
commit bc7793f138
  1. 4
      tutorial/c/hello-cmdline/src/cmdline_main.c
  2. 4
      tutorial/c/lib/src/test/runner.c

@ -9,13 +9,13 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
{
Efl_Loop_Arguments *args = ev->info;
if (eina_array_count(args->argv) == 0)
if (eina_array_count(args->argv) == 1)
{
printf("Hello World!\n");
}
else
{
printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 0));
printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 1));
}
efl_exit(0);

@ -18,9 +18,9 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
unsigned int i;
int failed_count = -1;
if (eina_array_count(args->argv) > 0)
if (eina_array_count(args->argv) > 1)
{
test = eina_array_data_get(args->argv, 0);
test = eina_array_data_get(args->argv, 1);
if (!strcmp(test, "--list"))
{

Loading…
Cancel
Save