Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_text_fmt.c 


Log Message:
spit out a warning if the length of the fmt is not equal to the length of the 
text

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_fmt.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_text_fmt.c      18 Aug 2007 00:26:47 -0000      1.5
+++ ewl_text_fmt.c      20 Aug 2007 18:22:20 -0000      1.6
@@ -421,6 +421,13 @@
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("fmt", fmt);
+
+       if (fmt->length.char_len != EWL_TEXT(fmt->text)->length.chars) {
+               DWARNING("The character length of the ftm (%u) is not"
+                               " equal to the length of the text (%u)\n",
+                               fmt->length.char_len,
+                               EWL_TEXT(fmt->text)->length.chars);
+       }
        
        if (idx >= fmt->length.char_len)
        {



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to