changeset 33052:956c67bb5198

Move strlower() into auxiliary string function file.
author ib
date Tue, 29 Mar 2011 08:28:11 +0000
parents cec61c9f27f4
children f64d41dac10b
files gui/skin/skin.c gui/util/string.c gui/util/string.h
diffstat 3 files changed, 15 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Tue Mar 29 08:15:01 2011 +0000
+++ b/gui/skin/skin.c	Tue Mar 29 08:28:11 2011 +0000
@@ -87,20 +87,6 @@
         } \
     }
 
-static char *strlower(char *in)
-{
-    char *p = in;
-
-    while (*p) {
-        if (*p >= 'A' && *p <= 'Z')
-            *p += 'a' - 'A';
-
-        p++;
-    }
-
-    return in;
-}
-
 int skinBPRead(char *fname, txSample *bf)
 {
     int i = bpRead(fname, bf);
--- a/gui/util/string.c	Tue Mar 29 08:15:01 2011 +0000
+++ b/gui/util/string.c	Tue Mar 29 08:28:11 2011 +0000
@@ -18,6 +18,20 @@
 
 #include "string.h"
 
+char *strlower(char *in)
+{
+    char *p = in;
+
+    while (*p) {
+        if (*p >= 'A' && *p <= 'Z')
+            *p += 'a' - 'A';
+
+        p++;
+    }
+
+    return in;
+}
+
 char *strswap(char *in, char from, char to)
 {
     char *p = in;
--- a/gui/util/string.h	Tue Mar 29 08:15:01 2011 +0000
+++ b/gui/util/string.h	Tue Mar 29 08:28:11 2011 +0000
@@ -19,6 +19,7 @@
 #ifndef MPLAYER_GUI_STRING_H
 #define MPLAYER_GUI_STRING_H
 
+char *strlower(char *in);
 char *strswap(char *in, char from, char to);
 char *trim(char *in);