aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL_test.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 15:08:55 +1000
committerDavid Walter Seikel2014-05-05 15:08:55 +1000
commit334ba10e01c98b8d0ad2901b9ceafa45071050b9 (patch)
tree3fe60c140f14336ecd314b07d4a528bc7289ba78 /src/LuaSL/LuaSL_test.c
parentPrepare for using GuiLua from extantz, but not going through with it just yet... (diff)
downloadSledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.zip
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.gz
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.bz2
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.xz
Make logDom a stand alone, plus related fix ups and some clean ups.
Diffstat (limited to 'src/LuaSL/LuaSL_test.c')
-rw-r--r--src/LuaSL/LuaSL_test.c15
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
5int logDom; // Our logging domain.
5static Eina_Strbuf *clientStream; 6static Eina_Strbuf *clientStream;
6static int scriptCount = 0; 7static int scriptCount = 0;
7static int compiledCount = 0; 8static 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!");