From: Kalle Wallin Date: Sat, 27 Mar 2004 20:54:30 +0000 (+0000) Subject: Moved IS_WHITESPACE macor to support.h X-Git-Tag: v0.12_alpha1~639 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8caa261efdd583a18dad6729d9aa1ec1029e525;p=ncmpc.git Moved IS_WHITESPACE macor to support.h git-svn-id: https://svn.musicpd.org/ncmpc/trunk@516 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/conf.c b/conf.c index 1ea1fd9..12fc15a 100644 --- a/conf.c +++ b/conf.c @@ -35,9 +35,6 @@ #define CONF_COLOR_ALERT "alert_color" -#define IS_WHITESPACE(c) (c==' ' || c=='\t' || c=='\r' || c=='\n') - - static int str2bool(char *str) { diff --git a/support.h b/support.h index fc0e205..b82751d 100644 --- a/support.h +++ b/support.h @@ -19,6 +19,9 @@ char *basename(char *path); char *strcasestr(const char *haystack, const char *needle); #endif +#define IS_WHITESPACE(c) (c==' ' || c=='\t' || c=='\r' || c=='\n') + +char *trim(char *str); char *remove_trailing_slash(char *path); char *lowerstr(char *str); @@ -26,5 +29,6 @@ char *lowerstr(char *str); int charset_init(void); int charset_close(void); char *utf8_to_locale(char *str); +char *locale_to_utf8(char *str);