svn path=/trunk/; revision=17443
#define nelem(x) ( sizeof(x) / sizeof(x[0]) )
#endif//nelem
#define nelem(x) ( sizeof(x) / sizeof(x[0]) )
#endif//nelem
-using File::filesize_t;
-using File::fileoff_t;
+typedef File::filesize_t filesize_t;
+typedef File::fileoff_t fileoff_t;
fileoff_t File::seek ( fileoff_t offset )
fileoff_t File::seek ( fileoff_t offset )
typedef __int64 fileoff_t;
typedef unsigned __int64 filesize_t;
#else//_MSC_VER
typedef __int64 fileoff_t;
typedef unsigned __int64 filesize_t;
#else//_MSC_VER
{
ASSERT ( i < _end );
reserve ( i + 1 );
{
ASSERT ( i < _end );
reserve ( i + 1 );
}
void push_back ( auto_ptr<T>& p )
}
void push_back ( auto_ptr<T>& p )
-static int string(std::string& f, const char* s, int len, int field_width, int precision, int flags)
+static int stringa(std::string& f, const char* s, int len, int field_width, int precision, int flags)
{
int i, done = 0;
if (s == NULL)
{
int i, done = 0;
if (s == NULL)
long double _ldouble;
double _double;
const char *s;
long double _ldouble;
double _double;
const char *s;
- const unsigned short* sw;
int result;
std::string f;
int result;
std::string f;
case 's':
if (qualifier == 'l' || qualifier == 'w') {
/* print unicode string */
case 's':
if (qualifier == 'l' || qualifier == 'w') {
/* print unicode string */
- sw = va_arg(args, wchar_t *);
+ sw = (const wchar_t*)va_arg(args, wchar_t *);
result = stringw(f, sw, -1, field_width, precision, flags);
} else {
/* print ascii string */
s = va_arg(args, char *);
result = stringw(f, sw, -1, field_width, precision, flags);
} else {
/* print ascii string */
s = va_arg(args, char *);
- result = string(f, s, -1, field_width, precision, flags);
+ result = stringa(f, s, -1, field_width, precision, flags);
if (qualifier == 'h') {
/* print ascii string */
s = va_arg(args, char *);
if (qualifier == 'h') {
/* print ascii string */
s = va_arg(args, char *);
- result = string(f, s, -1, field_width, precision, flags);
+ result = stringa(f, s, -1, field_width, precision, flags);
} else {
/* print unicode string */
} else {
/* print unicode string */
- sw = va_arg(args, wchar_t *);
+ sw = (const wchar_t*)va_arg(args, wchar_t *);
result = stringw(f, sw, -1, field_width, precision, flags);
}
if (result < 0)
result = stringw(f, sw, -1, field_width, precision, flags);
}
if (result < 0)
s = pas->Buffer;
len = pas->Length;
}
s = pas->Buffer;
len = pas->Length;
}
- result = string(f, s, -1, field_width, precision, flags);
+ result = stringa(f, s, -1, field_width, precision, flags);
}
if (result < 0)
return -1;
}
if (result < 0)
return -1;