[MPlayer-cvslog] r33139 - in trunk/gui: skin/skin.c util/string.c util/string.h
ib
subversion at mplayerhq.hu
Tue Mar 29 10:28:11 CEST 2011
Author: ib
Date: Tue Mar 29 10:28:11 2011
New Revision: 33139
Log:
Move strlower() into auxiliary string function file.
Modified:
trunk/gui/skin/skin.c
trunk/gui/util/string.c
trunk/gui/util/string.h
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Tue Mar 29 10:15:01 2011 (r33138)
+++ trunk/gui/skin/skin.c Tue Mar 29 10:28:11 2011 (r33139)
@@ -87,20 +87,6 @@ static void skin_error(const char *forma
} \
}
-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);
Modified: trunk/gui/util/string.c
==============================================================================
--- trunk/gui/util/string.c Tue Mar 29 10:15:01 2011 (r33138)
+++ trunk/gui/util/string.c Tue Mar 29 10:28:11 2011 (r33139)
@@ -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;
Modified: trunk/gui/util/string.h
==============================================================================
--- trunk/gui/util/string.h Tue Mar 29 10:15:01 2011 (r33138)
+++ trunk/gui/util/string.h Tue Mar 29 10:28:11 2011 (r33139)
@@ -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);
More information about the MPlayer-cvslog
mailing list