Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
18f59c9c
Commit
18f59c9c
authored
Jul 14, 2006
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEANUP] Remove closeCharSetConversion from the
header, there's no need to export it. Static it. git-svn-id:
https://svn.musicpd.org/mpd/trunk@4330
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
7154c510
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
charConv.c
src/charConv.c
+4
-2
charConv.h
src/charConv.h
+0
-2
No files found.
src/charConv.c
View file @
18f59c9c
...
@@ -36,11 +36,13 @@ mpd_sint8 char_conv_use_iconv = 0;
...
@@ -36,11 +36,13 @@ mpd_sint8 char_conv_use_iconv = 0;
/* 1 is to use latin1ToUtf8
/* 1 is to use latin1ToUtf8
0 is not to use latin1/utf8 converter
0 is not to use latin1/utf8 converter
-1 is to use utf8ToLatin1*/
-1 is to use utf8ToLatin1*/
mpd_sint8
char_conv_latin1ToUtf8
=
0
;
mpd_sint8
char_conv_latin1ToUtf8
=
0
;
#define BUFFER_SIZE 1024
#define BUFFER_SIZE 1024
static
void
closeCharSetConversion
();
int
setCharSetConversion
(
char
*
to
,
char
*
from
)
{
int
setCharSetConversion
(
char
*
to
,
char
*
from
)
{
if
(
char_conv_to
&&
char_conv_from
&&
if
(
char_conv_to
&&
char_conv_from
&&
strcmp
(
to
,
char_conv_to
)
==
0
&&
strcmp
(
from
,
char_conv_from
)
==
0
)
strcmp
(
to
,
char_conv_to
)
==
0
&&
strcmp
(
from
,
char_conv_from
)
==
0
)
...
@@ -133,7 +135,7 @@ char * convStrDup(char * string) {
...
@@ -133,7 +135,7 @@ char * convStrDup(char * string) {
return
NULL
;
return
NULL
;
}
}
void
closeCharSetConversion
()
{
static
void
closeCharSetConversion
()
{
if
(
char_conv_to
)
{
if
(
char_conv_to
)
{
#ifdef HAVE_ICONV
#ifdef HAVE_ICONV
if
(
char_conv_use_iconv
)
iconv_close
(
char_conv_iconv
);
if
(
char_conv_use_iconv
)
iconv_close
(
char_conv_iconv
);
...
...
src/charConv.h
View file @
18f59c9c
...
@@ -25,6 +25,4 @@ int setCharSetConversion(char * to, char * from);
...
@@ -25,6 +25,4 @@ int setCharSetConversion(char * to, char * from);
char
*
convStrDup
(
char
*
string
);
char
*
convStrDup
(
char
*
string
);
void
closeCharSetConversion
();
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment