msvcp60: Merge I/O stream code with msvcp90 where possible to reduce the differences.
This commit is contained in:
parent
ed92458754
commit
402a72a07a
File diff suppressed because it is too large
Load Diff
|
@ -24,6 +24,8 @@ typedef unsigned char MSVCP_bool;
|
|||
typedef SIZE_T MSVCP_size_t;
|
||||
typedef SSIZE_T streamoff;
|
||||
typedef SSIZE_T streamsize;
|
||||
#define STREAMOFF_BITS 32
|
||||
#define STREAMSIZE_BITS 32
|
||||
|
||||
void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*,
|
||||
const wchar_t*, unsigned int, uintptr_t);
|
||||
|
|
|
@ -1405,6 +1405,8 @@ locale* __thiscall basic_streambuf_char_pubimbue(basic_streambuf_char *this, loc
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
|
@ -1431,6 +1433,10 @@ fpos_int* __thiscall basic_streambuf_char_seekoff(basic_streambuf_char *this,
|
|||
|
||||
/* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff, 24)
|
||||
#else
|
||||
|
@ -2298,6 +2304,8 @@ locale* __thiscall basic_streambuf_wchar_pubimbue(basic_streambuf_wchar *this, l
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
/* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
|
@ -2328,6 +2336,10 @@ fpos_int* __thiscall basic_streambuf_wchar_seekoff(basic_streambuf_wchar *this,
|
|||
/* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ioos_base@2@H@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff, 24)
|
||||
#else
|
||||
|
@ -3174,6 +3186,8 @@ int __thiscall basic_filebuf_char_underflow(basic_filebuf_char *this)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
|
@ -3791,6 +3805,8 @@ unsigned short __thiscall basic_filebuf_wchar_underflow(basic_filebuf_wchar *thi
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
/* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
|
@ -3939,6 +3955,8 @@ void __thiscall basic_filebuf_short_imbue(basic_filebuf_wchar *this, const local
|
|||
|
||||
/* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
|
||||
/* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
|
||||
/* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
|
||||
/* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
|
||||
DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate, 8)
|
||||
int __thiscall basic_stringbuf_char__Getstate(basic_stringbuf_char *this, IOSB_openmode mode)
|
||||
{
|
||||
|
@ -4191,6 +4209,8 @@ int __thiscall basic_stringbuf_char_underflow(basic_stringbuf_char *this)
|
|||
return EOF;
|
||||
}
|
||||
|
||||
/* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
|
@ -4310,6 +4330,8 @@ basic_string_char* __thiscall basic_stringbuf_char_str_get(const basic_stringbuf
|
|||
/* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
|
||||
/* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
|
||||
/* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
|
||||
/* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
|
||||
/* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
|
||||
DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate, 8)
|
||||
int __thiscall basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar *this, IOSB_openmode mode)
|
||||
{
|
||||
|
@ -4604,6 +4626,8 @@ unsigned short __thiscall basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
|
|||
return WEOF;
|
||||
}
|
||||
|
||||
/* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
/* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
|
@ -4763,7 +4787,7 @@ void __thiscall ios_base_Callfns(ios_base *this, IOS_BASE_event event)
|
|||
|
||||
/* ?_Tidy@ios_base@std@@AAAXXZ */
|
||||
/* ?_Tidy@ios_base@std@@AEAAXXZ */
|
||||
void CDECL ios_base_Tidy(ios_base *this)
|
||||
void __cdecl ios_base_Tidy(ios_base *this)
|
||||
{
|
||||
IOS_BASE_iosarray *arr_cur, *arr_next;
|
||||
IOS_BASE_fnarray *event_cur, *event_next;
|
||||
|
@ -4787,7 +4811,7 @@ void CDECL ios_base_Tidy(ios_base *this)
|
|||
|
||||
/* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
|
||||
/* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
|
||||
void CDECL ios_base_Ios_base_dtor(ios_base *obj)
|
||||
void __cdecl ios_base_Ios_base_dtor(ios_base *obj)
|
||||
{
|
||||
TRACE("(%p)\n", obj);
|
||||
if(obj->loc) {
|
||||
|
@ -5060,14 +5084,14 @@ MSVCP_bool __thiscall ios_base_operator_bool(const ios_base *this)
|
|||
|
||||
/* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
|
||||
/* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
|
||||
void CDECL ios_base_Addstd(ios_base *add)
|
||||
void __cdecl ios_base_Addstd(ios_base *add)
|
||||
{
|
||||
FIXME("(%p) stub\n", add);
|
||||
}
|
||||
|
||||
/* ?_Index_func@ios_base@std@@CAAAHXZ */
|
||||
/* ?_Index_func@ios_base@std@@CAAEAHXZ */
|
||||
int* CDECL ios_base_Index_func(void)
|
||||
int* __cdecl ios_base_Index_func(void)
|
||||
{
|
||||
TRACE("\n");
|
||||
return &ios_base_Index;
|
||||
|
@ -5093,7 +5117,7 @@ void __thiscall ios_base__Init(ios_base *this)
|
|||
|
||||
/* ?_Sync_func@ios_base@std@@CAAA_NXZ */
|
||||
/* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
|
||||
MSVCP_bool* CDECL ios_base_Sync_func(void)
|
||||
MSVCP_bool* __cdecl ios_base_Sync_func(void)
|
||||
{
|
||||
TRACE("\n");
|
||||
return &ios_base_Sync;
|
||||
|
@ -5257,7 +5281,7 @@ void __thiscall ios_base_setstate_unsigned(ios_base *this, unsigned int state)
|
|||
}
|
||||
|
||||
/* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
|
||||
MSVCP_bool CDECL ios_base_sync_with_stdio(MSVCP_bool sync)
|
||||
MSVCP_bool __cdecl ios_base_sync_with_stdio(MSVCP_bool sync)
|
||||
{
|
||||
_Lockit lock;
|
||||
MSVCP_bool ret;
|
||||
|
@ -5307,7 +5331,7 @@ streamsize __thiscall ios_base_width_get(ios_base *this)
|
|||
}
|
||||
|
||||
/* ?xalloc@ios_base@std@@SAHXZ */
|
||||
int CDECL ios_base_xalloc(void)
|
||||
int __cdecl ios_base_xalloc(void)
|
||||
{
|
||||
_Lockit lock;
|
||||
int ret;
|
||||
|
@ -8425,6 +8449,8 @@ fpos_int* __thiscall basic_istream_char_tellg(basic_istream_char *this, fpos_int
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
|
||||
/* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
|
||||
/* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
|
||||
/* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
|
@ -9764,6 +9790,8 @@ fpos_int* __thiscall basic_istream_wchar_tellg(basic_istream_wchar *this, fpos_i
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
|
||||
/* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
|
||||
/* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
|
||||
/* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
|
||||
/* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
|
||||
|
@ -13611,6 +13639,8 @@ int __thiscall strstreambuf_pbackfail(strstreambuf *this, int c)
|
|||
return (unsigned char)(ptr[0] = c);
|
||||
}
|
||||
|
||||
/* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
|
||||
/* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
|
||||
/* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
|
||||
#if STREAMOFF_BITS == 64
|
||||
|
|
Loading…
Reference in New Issue