Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_misc.c 


Log Message:
- add the ability to set the debug level on the cmd line if debug is
  complied in

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_misc.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -3 -r1.85 -r1.86
--- ewl_misc.c  11 Nov 2004 05:56:33 -0000      1.85
+++ ewl_misc.c  8 Dec 2004 04:16:32 -0000       1.86
@@ -26,6 +26,7 @@
 static unsigned int    use_engine = EWL_ENGINE_ALL;
 static unsigned int    phase_status = 0;
 static unsigned int    print_theme_keys = 0;
+static unsigned int    debug_level = 0;
 
 static int _ewl_init_count = 0;
 
@@ -149,6 +150,11 @@
        if (print_theme_keys)
                ewl_config.theme.print_keys = print_theme_keys;
 
+       if (debug_level) {
+               ewl_config.debug.enable = 1;
+               ewl_config.debug.level = debug_level;
+       }
+
        if (!ewl_ev_init()) {
                DERROR("Could not init event data....");
                ewl_shutdown();
@@ -354,7 +360,15 @@
                        use_engine = EWL_ENGINE_FB;
                        matched++;
                }
-
+               else if (!strcmp(argv[i], "--ewl-debug")) {
+                       if (i + i < *argc) {
+                               debug_level = atoi(argv[i + 1]);
+                               matched++;
+                       } else {
+                               debug_level = 1;
+                       }
+                       matched ++;
+               }
                if (matched > 0) {
                        while (matched) {
                                ewl_init_remove_option(argc, argv, i);




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to