diff options
Diffstat (limited to 'src/LuaSL/LuaSL_test.c')
-rw-r--r-- | src/LuaSL/LuaSL_test.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/LuaSL/LuaSL_test.c b/src/LuaSL/LuaSL_test.c index 27b9626..8fc86c0 100644 --- a/src/LuaSL/LuaSL_test.c +++ b/src/LuaSL/LuaSL_test.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "LuaSL.h" | 2 | #include "LuaSL.h" |
3 | 3 | ||
4 | 4 | ||
5 | int logDom; // Our logging domain. | ||
5 | static Eina_Strbuf *clientStream; | 6 | static Eina_Strbuf *clientStream; |
6 | static int scriptCount = 0; | 7 | static int scriptCount = 0; |
7 | static int compiledCount = 0; | 8 | static int compiledCount = 0; |
@@ -313,7 +314,7 @@ int main(int argc, char **argv) | |||
313 | 314 | ||
314 | if (eina_init()) | 315 | if (eina_init()) |
315 | { | 316 | { |
316 | ourGlobals.logDom = loggingStartup("LuaSL_test", ourGlobals.logDom); | 317 | logDom = loggingStartup("LuaSL_test", logDom); |
317 | ourGlobals.scripts = eina_hash_string_superfast_new(NULL); | 318 | ourGlobals.scripts = eina_hash_string_superfast_new(NULL); |
318 | 319 | ||
319 | if (ecore_con_init()) | 320 | if (ecore_con_init()) |
@@ -373,7 +374,7 @@ int main(int argc, char **argv) | |||
373 | ourGlobals.ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); | 374 | ourGlobals.ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); |
374 | if (!ourGlobals.ee) | 375 | if (!ourGlobals.ee) |
375 | { | 376 | { |
376 | PEm("You got to have at least one evas engine built and linked up to ecore-evas for this example to run properly."); | 377 | PE("You got to have at least one evas engine built and linked up to ecore-evas for this example to run properly."); |
377 | edje_shutdown(); | 378 | edje_shutdown(); |
378 | ecore_evas_shutdown(); | 379 | ecore_evas_shutdown(); |
379 | return -1; | 380 | return -1; |
@@ -397,7 +398,7 @@ int main(int argc, char **argv) | |||
397 | { | 398 | { |
398 | int err = edje_object_load_error_get(ourGlobals.edje); | 399 | int err = edje_object_load_error_get(ourGlobals.edje); |
399 | const char *errmsg = edje_load_error_str(err); | 400 | const char *errmsg = edje_load_error_str(err); |
400 | PEm("Could not load '%s' from %s: %s\n", group, buf, errmsg); | 401 | PE("Could not load '%s' from %s: %s\n", group, buf, errmsg); |
401 | 402 | ||
402 | evas_object_del(ourGlobals.edje); | 403 | evas_object_del(ourGlobals.edje); |
403 | ecore_evas_free(ourGlobals.ee); | 404 | ecore_evas_free(ourGlobals.ee); |
@@ -447,18 +448,18 @@ int main(int argc, char **argv) | |||
447 | edje_shutdown(); | 448 | edje_shutdown(); |
448 | } | 449 | } |
449 | else | 450 | else |
450 | PCm("Failed to init edje!"); | 451 | PC("Failed to init edje!"); |
451 | ecore_evas_shutdown(); | 452 | ecore_evas_shutdown(); |
452 | } | 453 | } |
453 | else | 454 | else |
454 | PCm("Failed to init ecore_evas!"); | 455 | PC("Failed to init ecore_evas!"); |
455 | } | 456 | } |
456 | else | 457 | else |
457 | PCm("Failed to connect to server!"); | 458 | PC("Failed to connect to server!"); |
458 | ecore_con_shutdown(); | 459 | ecore_con_shutdown(); |
459 | } | 460 | } |
460 | else | 461 | else |
461 | PCm("Failed to init ecore_con!"); | 462 | PC("Failed to init ecore_con!"); |
462 | } | 463 | } |
463 | else | 464 | else |
464 | fprintf(stderr, "Failed to init eina!"); | 465 | fprintf(stderr, "Failed to init eina!"); |