Author: fabien
Date: 2012-06-05 20:38:02 -0700 (Tue, 05 Jun 2012)
New Revision: 9573
Log:
Minor comments formatting discrepancies fix.

Modified:
   branches/branch-1.3/src/flstring.c
   branches/branch-1.3/src/flstring.h

Modified: branches/branch-1.3/src/flstring.c
===================================================================
--- branches/branch-1.3/src/flstring.c  2012-06-03 11:02:05 UTC (rev 9572)
+++ branches/branch-1.3/src/flstring.c  2012-06-06 03:38:02 UTC (rev 9573)
@@ -93,9 +93,9 @@
 #define C_RANGE(c,l,r) ( (c) >= (l) && (c) <= (r) )
 
 /**
-* locale independent ascii oriented case cmp
-* returns 0 if string successfully compare, -1 if s<t, +1 if s>t
-*/
+ * locale independent ascii oriented case cmp
+ * returns 0 if string successfully compare, -1 if s<t, +1 if s>t
+ */
 int fl_ascii_strcasecmp(const char *s, const char *t) {
   if (!s || !t) return (s==t ? 0 : (!s ? -1 : +1));
   
@@ -103,7 +103,7 @@
     if (*s == *t) continue;
     if (*s < *t) {
       if ( (*s+0x20)!=*t || !C_RANGE(*s,'A','Z') ) return -1;
-    } else {   /* *s > *t */
+    } else {   /* (*s > *t) */
       if ( (*s-0x20)!=*t || !C_RANGE(*s,'a','z') ) return +1;
     }
   }

Modified: branches/branch-1.3/src/flstring.h
===================================================================
--- branches/branch-1.3/src/flstring.h  2012-06-03 11:02:05 UTC (rev 9572)
+++ branches/branch-1.3/src/flstring.h  2012-06-06 03:38:02 UTC (rev 9573)
@@ -84,7 +84,10 @@
 #    define strlcpy fl_strlcpy
 #  endif /* !HAVE_STRLCPY */
 
-/* locale independent ascii compare, does not introduce locale pbs as w/  case 
cmp */
+/*
+ * locale independent ascii compare, does not introduce locale 
+ * pbs as w/  case cmp 
+ */
 FL_EXPORT extern int fl_ascii_strcasecmp(const char *s, const char *t);
 
 #  ifdef __cplusplus

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to