Iván Matellanes : msvcirt: Add filebuf static fields.
Module: wine Branch: master Commit: 30e33a406c80ccc5f8ab69b2d9592e018ec1ec94 URL: http://source.winehq.org/git/wine.git/?a=commit;h=30e33a406c80ccc5f8ab69b2d9... Author: Iván Matellanes <matellanesivan(a)gmail.com> Date: Mon Aug 3 16:48:43 2015 +0200 msvcirt: Add filebuf static fields. --- dlls/msvcirt/msvcirt.c | 13 +++++++++++++ dlls/msvcirt/msvcirt.spec | 12 ++++++------ dlls/msvcrt20/msvcrt20.spec | 12 ++++++------ dlls/msvcrt40/msvcrt40.spec | 12 ++++++------ 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c index 9a39b1a..f860c95 100644 --- a/dlls/msvcirt/msvcirt.c +++ b/dlls/msvcirt/msvcirt.c @@ -32,6 +32,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcirt); #define RESERVE_SIZE 512 #define STATEBUF_SIZE 8 +/* ?sh_none(a)filebuf@@2HB */ +const int filebuf_sh_none = 0x800; +/* ?sh_read(a)filebuf@@2HB */ +const int filebuf_sh_read = 0xa00; +/* ?sh_write(a)filebuf@@2HB */ +const int filebuf_sh_write = 0xc00; +/* ?openprot(a)filebuf@@2HB */ +const int filebuf_openprot = 420; +/* ?binary(a)filebuf@@2HB */ +const int filebuf_binary = 0x8000; +/* ?text(a)filebuf@@2HB */ +const int filebuf_text = 0x4000; + /* ?adjustfield(a)ios@@2JB */ const LONG ios_adjustfield = FLAGS_left | FLAGS_right | FLAGS_internal; /* ?basefield(a)ios@@2JB */ diff --git a/dlls/msvcirt/msvcirt.spec b/dlls/msvcirt/msvcirt.spec index 249ee91..ffb6f21 100644 --- a/dlls/msvcirt/msvcirt.spec +++ b/dlls/msvcirt/msvcirt.spec @@ -415,7 +415,7 @@ @ thiscall -arch=win32 ?base(a)streambuf@@IBEPADXZ(ptr) streambuf_base @ cdecl -arch=win64 ?base(a)streambuf@@IEBAPEADXZ(ptr) streambuf_base @ extern ?basefield(a)ios@@2JB ios_basefield -# @ extern ?binary(a)filebuf@@2HB # static int const filebuf::binary +@ extern ?binary(a)filebuf@@2HB filebuf_binary @ cdecl ?bitalloc(a)ios@@SAJXZ() ios_bitalloc @ thiscall -arch=win32 ?blen(a)streambuf@@IBEHXZ(ptr) streambuf_blen @ cdecl -arch=win64 ?blen(a)streambuf@@IEBAHXZ(ptr) streambuf_blen @@ -570,7 +570,7 @@ @ stub -arch=win64 ?open(a)ifstream@@QEAAXPEBDHH(a)Z @ stub -arch=win32 ?open(a)ofstream@@QAEXPBDHH(a)Z # void __thiscall ofstream::open(char const *,int,int) @ stub -arch=win64 ?open(a)ofstream@@QEAAXPEBDHH(a)Z -# @ extern ?openprot(a)filebuf@@2HB # static int const filebuf::openprot +@ extern ?openprot(a)filebuf@@2HB filebuf_openprot @ stub -arch=win32 ?opfx(a)ostream@@QAEHXZ # int __thiscall ostream::opfx(void) @ stub -arch=win64 ?opfx(a)ostream@@QEAAHXZ @ stub -arch=win32 ?osfx(a)ostream@@QAEXXZ # void __thiscall ostream::osfx(void) @@ -697,9 +697,9 @@ @ cdecl -arch=win64 ?sgetc(a)streambuf@@QEAAHXZ(ptr) streambuf_sgetc @ thiscall -arch=win32 ?sgetn(a)streambuf@@QAEHPADH(a)Z(ptr ptr long) streambuf_sgetn @ cdecl -arch=win64 ?sgetn(a)streambuf@@QEAAHPEADH(a)Z(ptr ptr long) streambuf_sgetn -# @ extern ?sh_none(a)filebuf@@2HB # static int const filebuf::sh_none -# @ extern ?sh_read(a)filebuf@@2HB # static int const filebuf::sh_read -# @ extern ?sh_write(a)filebuf@@2HB # static int const filebuf::sh_write +@ extern ?sh_none(a)filebuf@@2HB filebuf_sh_none +@ extern ?sh_read(a)filebuf@@2HB filebuf_sh_read +@ extern ?sh_write(a)filebuf@@2HB filebuf_sh_write @ thiscall -arch=win32 ?snextc(a)streambuf@@QAEHXZ(ptr) streambuf_snextc @ cdecl -arch=win64 ?snextc(a)streambuf@@QEAAHXZ(ptr) streambuf_snextc @ thiscall -arch=win32 ?sputbackc(a)streambuf@@QAEHD(a)Z(ptr long) streambuf_sputbackc @@ -736,7 +736,7 @@ @ stub -arch=win64 ?tellg(a)istream@@QEAAJXZ @ stub -arch=win32 ?tellp(a)ostream@@QAEJXZ # long __thiscall ostream::tellp(void) @ stub -arch=win64 ?tellp(a)ostream@@QEAAJXZ -# @ extern ?text(a)filebuf@@2HB # static int const filebuf::text +@ extern ?text(a)filebuf@@2HB filebuf_text @ thiscall -arch=win32 ?tie(a)ios@@QAEPAVostream@@PAV2@@Z(ptr ptr) ios_tie_set @ cdecl -arch=win64 ?tie(a)ios@@QEAAPEAVostream@@PEAV2@@Z(ptr ptr) ios_tie_set @ thiscall -arch=win32 ?tie(a)ios@@QBEPAVostream@@XZ(ptr) ios_tie_get diff --git a/dlls/msvcrt20/msvcrt20.spec b/dlls/msvcrt20/msvcrt20.spec index ab59dde..ade81ae 100644 --- a/dlls/msvcrt20/msvcrt20.spec +++ b/dlls/msvcrt20/msvcrt20.spec @@ -403,7 +403,7 @@ @ thiscall -arch=win32 ?base(a)streambuf@@IBEPADXZ(ptr) msvcirt.?base(a)streambuf@@IBEPADXZ @ cdecl -arch=win64 ?base(a)streambuf@@IEBAPEADXZ(ptr) msvcirt.?base(a)streambuf@@IEBAPEADXZ @ extern ?basefield(a)ios@@2JB msvcirt.?basefield(a)ios@@2JB -# @ extern ?binary(a)filebuf@@2HB +@ extern ?binary(a)filebuf@@2HB msvcirt.?binary(a)filebuf@@2HB @ cdecl ?bitalloc(a)ios@@SAJXZ() msvcirt.?bitalloc(a)ios@@SAJXZ @ thiscall -arch=win32 ?blen(a)streambuf@@IBEHXZ(ptr) msvcirt.?blen(a)streambuf@@IBEHXZ @ cdecl -arch=win64 ?blen(a)streambuf@@IEBAHXZ(ptr) msvcirt.?blen(a)streambuf@@IEBAHXZ @@ -556,7 +556,7 @@ @ stub -arch=win64 ?open(a)ifstream@@QEAAXPEBDHH(a)Z @ stub -arch=win32 ?open(a)ofstream@@QAEXPBDHH(a)Z @ stub -arch=win64 ?open(a)ofstream@@QEAAXPEBDHH(a)Z -# @ extern ?openprot(a)filebuf@@2HB +@ extern ?openprot(a)filebuf@@2HB msvcirt.?openprot(a)filebuf@@2HB @ stub -arch=win32 ?opfx(a)ostream@@QAEHXZ @ stub -arch=win64 ?opfx(a)ostream@@QEAAHXZ @ stub -arch=win32 ?osfx(a)ostream@@QAEXXZ @@ -685,9 +685,9 @@ @ cdecl -arch=win64 ?sgetc(a)streambuf@@QEAAHXZ(ptr) msvcirt.?sgetc(a)streambuf@@QEAAHXZ @ thiscall -arch=win32 ?sgetn(a)streambuf@@QAEHPADH(a)Z(ptr ptr long) msvcirt.?sgetn(a)streambuf@@QAEHPADH(a)Z @ cdecl -arch=win64 ?sgetn(a)streambuf@@QEAAHPEADH(a)Z(ptr ptr long) msvcirt.?sgetn(a)streambuf@@QEAAHPEADH(a)Z -# @ extern ?sh_none(a)filebuf@@2HB -# @ extern ?sh_read(a)filebuf@@2HB -# @ extern ?sh_write(a)filebuf@@2HB +@ extern ?sh_none(a)filebuf@@2HB msvcirt.?sh_none(a)filebuf@@2HB +@ extern ?sh_read(a)filebuf@@2HB msvcirt.?sh_read(a)filebuf@@2HB +@ extern ?sh_write(a)filebuf@@2HB msvcirt.?sh_write(a)filebuf@@2HB @ thiscall -arch=win32 ?snextc(a)streambuf@@QAEHXZ(ptr) msvcirt.?snextc(a)streambuf@@QAEHXZ @ cdecl -arch=win64 ?snextc(a)streambuf@@QEAAHXZ(ptr) msvcirt.?snextc(a)streambuf@@QEAAHXZ @ thiscall -arch=win32 ?sputbackc(a)streambuf@@QAEHD(a)Z(ptr long) msvcirt.?sputbackc(a)streambuf@@QAEHD(a)Z @@ -725,7 +725,7 @@ @ stub -arch=win32 ?tellp(a)ostream@@QAEJXZ @ stub -arch=win64 ?tellp(a)ostream@@QEAAJXZ @ cdecl ?terminate@@YAXXZ() msvcrt.?terminate@@YAXXZ -# @ extern ?text(a)filebuf@@2HB +@ extern ?text(a)filebuf@@2HB msvcirt.?text(a)filebuf@@2HB @ thiscall -arch=win32 ?tie(a)ios@@QAEPAVostream@@PAV2@@Z(ptr ptr) msvcirt.?tie(a)ios@@QAEPAVostream@@PAV2@@Z @ cdecl -arch=win64 ?tie(a)ios@@QEAAPEAVostream@@PEAV2@@Z(ptr ptr) msvcirt.?tie(a)ios@@QEAAPEAVostream@@PEAV2@@Z @ thiscall -arch=win32 ?tie(a)ios@@QBEPAVostream@@XZ(ptr) msvcirt.?tie(a)ios@@QBEPAVostream@@XZ diff --git a/dlls/msvcrt40/msvcrt40.spec b/dlls/msvcrt40/msvcrt40.spec index 0f5811a..33e4f16 100644 --- a/dlls/msvcrt40/msvcrt40.spec +++ b/dlls/msvcrt40/msvcrt40.spec @@ -468,7 +468,7 @@ @ extern ?basefield(a)ios@@2JB msvcirt.?basefield(a)ios@@2JB @ thiscall -arch=i386 ?before(a)type_info@@QBEHABV1@@Z(ptr ptr) msvcrt.?before(a)type_info@@QBEHABV1@@Z @ cdecl -arch=win64 ?before(a)type_info@@QEBAHAEBV1@@Z(ptr ptr) msvcrt.?before(a)type_info@@QEBAHAEBV1@@Z -# @ extern ?binary(a)filebuf@@2HB +@ extern ?binary(a)filebuf@@2HB msvcirt.?binary(a)filebuf@@2HB @ cdecl ?bitalloc(a)ios@@SAJXZ() msvcirt.?bitalloc(a)ios@@SAJXZ @ thiscall -arch=win32 ?blen(a)streambuf@@IBEHXZ(ptr) msvcirt.?blen(a)streambuf@@IBEHXZ @ cdecl -arch=win64 ?blen(a)streambuf@@IEBAHXZ(ptr) msvcirt.?blen(a)streambuf@@IEBAHXZ @@ -625,7 +625,7 @@ @ stub -arch=win64 ?open(a)ifstream@@QEAAXPEBDHH(a)Z @ stub -arch=win32 ?open(a)ofstream@@QAEXPBDHH(a)Z @ stub -arch=win64 ?open(a)ofstream@@QEAAXPEBDHH(a)Z -# @ extern ?openprot(a)filebuf@@2HB +@ extern ?openprot(a)filebuf@@2HB msvcirt.?openprot(a)filebuf@@2HB @ stub -arch=win32 ?opfx(a)ostream@@QAEHXZ @ stub -arch=win64 ?opfx(a)ostream@@QEAAHXZ @ stub -arch=win32 ?osfx(a)ostream@@QAEXXZ @@ -757,9 +757,9 @@ @ cdecl -arch=win64 ?sgetc(a)streambuf@@QEAAHXZ(ptr) msvcirt.?sgetc(a)streambuf@@QEAAHXZ @ thiscall -arch=win32 ?sgetn(a)streambuf@@QAEHPADH(a)Z(ptr ptr long) msvcirt.?sgetn(a)streambuf@@QAEHPADH(a)Z @ cdecl -arch=win64 ?sgetn(a)streambuf@@QEAAHPEADH(a)Z(ptr ptr long) msvcirt.?sgetn(a)streambuf@@QEAAHPEADH(a)Z -# @ extern ?sh_none(a)filebuf@@2HB -# @ extern ?sh_read(a)filebuf@@2HB -# @ extern ?sh_write(a)filebuf@@2HB +@ extern ?sh_none(a)filebuf@@2HB msvcirt.?sh_none(a)filebuf@@2HB +@ extern ?sh_read(a)filebuf@@2HB msvcirt.?sh_read(a)filebuf@@2HB +@ extern ?sh_write(a)filebuf@@2HB msvcirt.?sh_write(a)filebuf@@2HB @ thiscall -arch=win32 ?snextc(a)streambuf@@QAEHXZ(ptr) msvcirt.?snextc(a)streambuf@@QAEHXZ @ cdecl -arch=win64 ?snextc(a)streambuf@@QEAAHXZ(ptr) msvcirt.?snextc(a)streambuf@@QEAAHXZ @ thiscall -arch=win32 ?sputbackc(a)streambuf@@QAEHD(a)Z(ptr long) msvcirt.?sputbackc(a)streambuf@@QAEHD(a)Z @@ -797,7 +797,7 @@ @ stub -arch=win32 ?tellp(a)ostream@@QAEJXZ @ stub -arch=win64 ?tellp(a)ostream@@QEAAJXZ @ cdecl ?terminate@@YAXXZ() msvcrt.?terminate@@YAXXZ -# @ extern ?text(a)filebuf@@2HB +@ extern ?text(a)filebuf@@2HB msvcirt.?text(a)filebuf@@2HB @ thiscall -arch=win32 ?tie(a)ios@@QAEPAVostream@@PAV2@@Z(ptr ptr) msvcirt.?tie(a)ios@@QAEPAVostream@@PAV2@@Z @ cdecl -arch=win64 ?tie(a)ios@@QEAAPEAVostream@@PEAV2@@Z(ptr ptr) msvcirt.?tie(a)ios@@QEAAPEAVostream@@PEAV2@@Z @ thiscall -arch=win32 ?tie(a)ios@@QBEPAVostream@@XZ(ptr) msvcirt.?tie(a)ios@@QBEPAVostream@@XZ
participants (1)
-
Alexandre Julliard