msvcp90: Added setprecision implementation.
This commit is contained in:
parent
c2c9e9ef7b
commit
7fcffc7b58
dlls/msvcp90
|
@ -131,6 +131,11 @@ static inline const char* debugstr_fpos_int(fpos_int *fpos)
|
|||
return wine_dbg_sprintf("fpos(%ld %s %d)", fpos->off, wine_dbgstr_longlong(fpos->pos), fpos->state);
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
void (__cdecl *pfunc)(ios_base*, streamsize);
|
||||
streamsize arg;
|
||||
} manip_streamsize;
|
||||
|
||||
typedef struct {
|
||||
const vtable_ptr *vtable;
|
||||
mutex lock;
|
||||
|
@ -5541,6 +5546,22 @@ basic_filebuf_char* __thiscall basic_fstream_char_rdbuf(const basic_fstream_char
|
|||
return (basic_filebuf_char*)&this->filebuf;
|
||||
}
|
||||
|
||||
static void __cdecl setprecision_func(ios_base *base, streamsize prec)
|
||||
{
|
||||
ios_base_precision_set(base, prec);
|
||||
}
|
||||
|
||||
/* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
|
||||
/* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
|
||||
manip_streamsize* __cdecl setprecision(manip_streamsize *ret, streamsize prec)
|
||||
{
|
||||
TRACE("(%p %ld)\n", ret, prec);
|
||||
|
||||
ret->pfunc = setprecision_func;
|
||||
ret->arg = prec;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static basic_filebuf_char filebuf_stdin;
|
||||
/* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
|
||||
struct {
|
||||
|
|
|
@ -5348,8 +5348,8 @@
|
|||
@ cdecl -arch=win64 ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z(ptr ptr ptr ptr) basic_streambuf_wchar_setp_next
|
||||
@ thiscall -arch=win32 ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z(ptr ptr ptr) basic_streambuf_wchar_setp
|
||||
@ cdecl -arch=win64 ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z(ptr ptr ptr) basic_streambuf_wchar_setp
|
||||
@ stub -arch=win32 ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z
|
||||
@ stub -arch=win64 ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z
|
||||
@ cdecl -arch=win32 ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z(ptr long) setprecision
|
||||
@ cdecl -arch=win64 ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z(ptr long) setprecision
|
||||
@ thiscall -arch=win32 ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z(ptr long long) basic_ios_char_setstate_reraise
|
||||
@ cdecl -arch=win64 ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z(ptr long long) basic_ios_char_setstate_reraise
|
||||
@ thiscall -arch=win32 ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z(ptr long) basic_ios_char_setstate
|
||||
|
|
Loading…
Reference in New Issue