get rid of getopt, because of it cause problem on mac os x.

This commit is contained in:
Evgeniy Dushistov
2007-09-30 18:10:19 +00:00
parent db87b6a7c2
commit c7c8dab8db
9 changed files with 137 additions and 1525 deletions

View File

@@ -27,7 +27,7 @@
#include "utils.hpp"
bool stdio_getline(FILE *in, string & str)
bool stdio_getline(FILE *in, std::string & str)
{
str.clear();
int ch;
@@ -38,11 +38,11 @@ bool stdio_getline(FILE *in, string & str)
return true;
}
string utf8_to_locale_ign_err(const string& utf8_str)
std::string utf8_to_locale_ign_err(const std::string& utf8_str)
{
gsize bytes_read, bytes_written;
GError *err=NULL;
string res;
std::string res;
const char * charset;
if (g_get_charset(&charset))