[MPlayer-cvslog] r37489 - in trunk/gui: skin/font.c skin/skin.c util/string.c util/string.h

ib subversion at mplayerhq.hu
Mon Sep 7 10:24:53 CEST 2015


Author: ib
Date: Mon Sep  7 10:24:53 2015
New Revision: 37489

Log:
Cosmetic: Rename trim() despace().

Modified:
   trunk/gui/skin/font.c
   trunk/gui/skin/skin.c
   trunk/gui/util/string.c
   trunk/gui/util/string.h

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Sat Sep  5 22:39:27 2015	(r37488)
+++ trunk/gui/skin/font.c	Mon Sep  7 10:24:53 2015	(r37489)
@@ -127,7 +127,7 @@ int fntRead(char *path, char *fname)
 
     while (fgetstr(buf, sizeof(buf), file)) {
         strswap(buf, '\t', ' ');
-        trim(buf);
+        despace(buf);
         decomment(buf);
 
         if (!*buf)

Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c	Sat Sep  5 22:39:27 2015	(r37488)
+++ trunk/gui/skin/skin.c	Mon Sep  7 10:24:53 2015	(r37489)
@@ -1224,7 +1224,7 @@ int skinRead(char *sname)
         linenumber++;
 
         strswap(line, '\t', ' ');
-        trim(line);
+        despace(line);
         decomment(line);
 
         if (!*line)

Modified: trunk/gui/util/string.c
==============================================================================
--- trunk/gui/util/string.c	Sat Sep  5 22:39:27 2015	(r37488)
+++ trunk/gui/util/string.c	Mon Sep  7 10:24:53 2015	(r37489)
@@ -109,7 +109,7 @@ char *strswap(char *in, char from, char
  *
  * @note This is an in-place processing.
  */
-char *trim(char *in)
+char *despace(char *in)
 {
     char *src, *dest;
     int freeze = False;

Modified: trunk/gui/util/string.h
==============================================================================
--- trunk/gui/util/string.h	Sat Sep  5 22:39:27 2015	(r37488)
+++ trunk/gui/util/string.h	Mon Sep  7 10:24:53 2015	(r37489)
@@ -31,6 +31,7 @@
 int cutInt(char *in, char sep, int num);
 void cutString(char *in, char *out, char sep, int num, size_t maxout);
 char *decomment(char *in);
+char *despace(char *in);
 char *gstrchr(const char *str, int c);
 int gstrcmp(const char *a, const char *b);
 char *gstrdup(const char *str);
@@ -40,6 +41,5 @@ void setdup(char **old, const char *str)
 char *strlower(char *in);
 char *strswap(char *in, char from, char to);
 char *strupper(char *in);
-char *trim(char *in);
 
 #endif /* MPLAYER_GUI_STRING_H */


More information about the MPlayer-cvslog mailing list