Piotr Caban
8440658494
msvcp: Remove MSVCP_ prefix from RTTI and vtable related code.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-07 22:36:11 +02:00
Arkadiusz Hiler
f3f948a5a3
msvcp90: Add helpers for creating base class RTTI.
...
Suggested by Piotr Caban.
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-06 22:46:12 +02:00
Piotr Caban
6568a8cb62
msvcp90: Add macro that define type_info vtable.
...
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-06 22:46:12 +02:00
Piotr Caban
3657c8b829
msvcp90: Add _Wcsxfrm implementation.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50401
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-03 20:59:25 +01:00
Piotr Caban
7c5b40ed2a
msvcp90: Return required buffer size in _Strxfrm.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-03 20:59:15 +01:00
Piotr Caban
b54ab691a7
ucrtbase: Fix _Syserror_map behavior on unknown error.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50407
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-02 21:09:44 +01:00
Piotr Caban
af5f928e69
msvcp90: Remove MSVCP_bool type.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:40 +01:00
Piotr Caban
1990a5e0bc
msvcp90/tests: Use wide-char string literals.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:40 +01:00
Piotr Caban
4deb599d5a
msvcp90: Use wide-char string literals.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:40 +01:00
Piotr Caban
0237785d9d
msvcp90: Remove MSVCP_size_t type.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:40 +01:00
Alexandre Julliard
375278ccb7
msvcp: Use a constant string as fprintf format.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 15:57:07 +01:00
Alexandre Julliard
579fc688af
include: Use proper dllimports for msvcrt functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-24 18:50:06 +01:00
Arkadiusz Hiler
b3428ac9d0
msvcirt: Include iostream in strstream's and stdiostream's rtti hierarchy.
...
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-07 21:07:25 +02:00
Jacek Caban
03b4bffbbb
msvcp: Use BitScanReverse in log2i.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-10 22:38:49 +02:00
Jacek Caban
12ead6742f
msvcp: Use __ASM_USE_THISCALL_WRAPPER macro.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-27 12:50:45 +02:00
Jacek Caban
1cc92377a1
msvcp: Get rid of no longer needed hack.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-27 11:57:12 +02:00
Jacek Caban
ddd4a7c3fb
msvcp90: Use __ASM_BLOCK_BEGIN and __ASM_BLOCK_END macros.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-24 22:03:16 +02:00
Piotr Caban
70c3e08d32
msvcp90: Add std:_XLgamma implementation.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48806
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-27 21:16:13 +01:00
Piotr Caban
e91be16283
msvcp140: Don't load __processing_throw dynamically.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-20 16:42:09 +01:00
Piotr Caban
6160e0ea58
msvcp140: Remove custom standard streams definition.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-20 16:42:09 +01:00
Jacek Caban
cef2139207
locale.h: Add _Strftime declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-19 17:27:12 +01:00
Jacek Caban
9bfd465236
stdio.h: Add ucrt _scprintf declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:20 +01:00
Jacek Caban
84dbedc922
stdio.h: Provide sprintf and _snprintf as inline wrappers.
...
It's enough for Wine debug functions to use _vsnprintf from ucrtbase
importlib instead of ntdll for modules that link to ucrtbase.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 20:55:18 +01:00
Piotr Caban
daff3be7d2
msvcp90: Don't pass NULL as reference in runtime_error and logic_error constructors.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48561
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-05 20:42:13 +01:00
Sven Baars
aeeb299f98
msvcp140: Add an _Equivalent implementation that allows for directories.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 20:44:47 +02:00
Sven Baars
fb1fa3a404
msvcp120: Add a helper for tr2_sys__Equivalent.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 20:44:44 +02:00
Kevin Puetz
925e56acff
msvcp: Use fput[w]c in basic_filebuf_char_overflow.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-03 22:58:07 +02:00
Alexandre Julliard
031116cff7
msvcp90: Avoid depending on config.h for the __builtin_clz check.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-14 09:28:14 +02:00
Piotr Caban
c5530b276d
msvcp: Add _Init_locks class implementation.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46982
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-05 21:40:55 +02:00
Piotr Caban
2513b09c3c
msvcp: Fix _Lockit::_Lockit_ctor and _Lockit::_Lockit_dtor implementation.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-05 21:40:55 +02:00
Piotr Caban
1ad48d1b3c
msvcp: Add _Strxfrm implementation.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-04 23:06:18 +02:00
Alexandre Julliard
a16ef96dc6
include/msvcrt: Add INFINITY and NAN definitions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:03:37 +02:00
Alexandre Julliard
030a460934
ucrtbase: Move the vsnprintf() wrapper function to the ucrtbase import library.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47250
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 12:30:04 +02:00
Alexandre Julliard
651179469c
msvcp90: Use the standard -mno-cygwin build flag.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Alexandre Julliard
0a79eb3608
include: Use the __thiscall attribute directly for the Mingw build.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Alexandre Julliard
ee4db2005e
include: Define thiscall assembly wrappers globally.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 20:11:19 +02:00
Alexandre Julliard
d5a372abbb
include: Move inline assembly definitions to a new wine/asm.h header.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 13:45:07 +02:00
Alexandre Julliard
d4ef782db7
makefiles: Build all tests with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-24 12:10:51 +02:00
Jacek Caban
e8f083bd37
msvcp140: Add _Resize implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-22 19:48:27 +02:00
Alexandre Julliard
8b7b4e5140
msvcp: Rename clog variable to avoid conflict with builtin function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-10 19:08:42 +02:00
Alexandre Julliard
4f1f95b1b3
msvcp: Define _vsnprintf().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-02 19:20:21 +02:00
Alexandre Julliard
f0fbf6f584
msvcp: Use C runtime wchar functions instead of wine/unicode.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-01 12:42:05 +02:00
Piotr Caban
e7bd1b03da
msvcp140: Don't forward __ExceptionPtrDestroy to msvcr120.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46800
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-29 21:26:34 +01:00
Piotr Caban
8a82912b28
msvcp90: Add support for more creation flags in _Mtx class.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46908
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-26 20:35:55 +01:00
Ken Thomases
849daa9c85
msvcp90: Fix vtable alignment on macOS and certain non-x86 architectures.
...
On some platforms and architectures, the .align <n> directive aligns to 2^n
bytes, not n bytes. The .balign <n> directive always aligns to n bytes.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-18 21:42:04 +01:00
Piotr Caban
a91c1e054a
msvcp140: Don't forward __ExceptionPtrCreate to msvcr120.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46583
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-28 21:37:30 +01:00
Gijs Vermeulen
e978b3aa84
msvcp: Return ERROR_INVALID_PARAMETER on NULL input in _Copy_file.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 18:35:45 +01:00
Gijs Vermeulen
b51cee00a7
msvcp: Set target to null on error in _Open_dir.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-25 23:09:07 +01:00
Gijs Vermeulen
64aba27f6a
msvcp: Set correct error code on non-existing path in _Open_dir.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-25 23:09:07 +01:00
Alex Henrie
551cf701aa
msvcp90: Turn two static variables into constants.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-14 18:24:46 +01:00