#endif
-static char *locale_fast (const char *string, vlc_bool_t from)
+static char *locale_fast (const char *string, bool from)
{
#if defined (USE_ICONV)
if (find_charset ())
}
-static inline char *locale_dup (const char *string, vlc_bool_t from)
+static inline char *locale_dup (const char *string, bool from)
{
#if defined (USE_ICONV)
if (find_charset ())
*/
char *FromLocale (const char *locale)
{
- return locale_fast (locale, VLC_TRUE);
+ return locale_fast (locale, true);
}
char *FromLocaleDup (const char *locale)
{
- return locale_dup (locale, VLC_TRUE);
+ return locale_dup (locale, true);
}
*/
char *ToLocale (const char *utf8)
{
- return locale_fast (utf8, VLC_FALSE);
+ return locale_fast (utf8, false);
}
static char *ToLocaleDup (const char *utf8)
{
- return locale_dup (utf8, VLC_FALSE);
+ return locale_dup (utf8, false);
}
FILE *utf8_fopen (const char *filename, const char *mode)
{
int rwflags = 0, oflags = 0;
- vlc_bool_t append = VLC_FALSE;
+ bool append = false;
for (const char *ptr = mode; *ptr; ptr++)
{
case 'a':
rwflags = O_WRONLY;
oflags |= O_CREAT;
- append = VLC_TRUE;
+ append = true;
break;
case 'w':
}
static int utf8_statEx( const char *filename, struct stat *buf,
- vlc_bool_t deref )
+ bool deref )
{
#if defined (WIN32) || defined (UNDER_CE)
/* retrieve Windows OS version */
int utf8_stat( const char *filename, struct stat *buf)
{
- return utf8_statEx( filename, buf, VLC_TRUE );
+ return utf8_statEx( filename, buf, true );
}
int utf8_lstat( const char *filename, struct stat *buf)
{
- return utf8_statEx( filename, buf, VLC_FALSE );
+ return utf8_statEx( filename, buf, false );
}
/**