https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3a61dd7fe771cb2a6b122…
commit 3a61dd7fe771cb2a6b122ec93a94bee28421fc14
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Wed Nov 27 10:37:18 2024 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Nov 27 10:37:18 2024 +0200
[CRT] Sync wine code to wine-7.0 (#7520)
* [WINESYNC] msvcrt: Respect allocation mode in malloc.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 70ac780e6ed26380fd2fcdfbb96352ca8548bc79 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _callnewh in operator new implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 7e9cba139d30d3b48567baaf6a8b901143c738e7 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Reimplement _set_new_mode function.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6113a251ef3955f2ac3436d90a523faf4c03bc0a by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] ucrtbase: Change ptd fields offsets to match with native.
Makes it possible to use native vcruntime140_1.dll.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 9b94e4c80580325e62097ed6c08cc37c28575470 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use __ASM_BLOCK_BEGIN and __ASM_BLOCK_END macros.
Signed-off-by: Jacek Caban <jacek(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 3f8ac955de59da9f81a17ccf9d20c7402d6b1773 by Jacek Caban
<jacek(a)codeweavers.com>
* [WINESYNC] msvcrt: Use __ASM_USE_THISCALL_WRAPPER macro.
Signed-off-by: Jacek Caban <jacek(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 95e117b3dcd604b544b816c230a4ee8252f0f2f9 by Jacek Caban
<jacek(a)codeweavers.com>
* [WINESYNC] msvcrt: Use internal sprintf implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id bfa1e3ef8f592d74f1dfcc89ba940946ad327591 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Print assertion failure messages to stderr.
This matches Windows behaviour. In particular, redirecting stderr with freopen()
followed by assert(0) will print the failure message to the relevant file.
Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 3533605293e8083dae19c5fbd41e2077faf5adc6 by Zebediah Figura
<z.figura12(a)gmail.com>
* [WINESYNC] msvcrt: Don't use strncmpW in msvcrt_get_flags.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c6f19b121e74935689eb9666d0d21729a713c2ad by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _wcsnicmp instead of strnicmpW.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 54b2a10659871032720df31ae9ca6cba2ff4acf0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Don't use tolowerW in _tolower_l.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 0b35b779151d766f6741bc32d3b6d3c8d81f1cc4 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Don't use tolowerW.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id bc47bff4a888872363005da93fe0b714493c835b by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Don't use toupperW.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a81f55093e11a12c25938dada2e3d7f0c8dfe86c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcalnum_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 19c05e60a3cbb7dfa040b919e8783d571fc6ae01 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcdigit_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id fd74aeb726e65c62a9e110bdbf282549cb8afce0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcgraph_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 71cd3d5e8ce831abe5f601671b307ecff8692f01 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcalpha_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5f294e34d6eab6a217991994443c347aa44684b7 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbclower_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1ad209428442e5c571b8a8478c3821e6c303b3a9 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcupper_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 95b3ff9f74ada220295128ceee34a8e191b93baa by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcprint_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1750a6969becfb02f0fee9447878d4374db652ab by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add _ismbcpunct_l implementation.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 986aa52fc41e1cf022cc72a0f40996937bb567dc by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Don't use get_char_typeW in _iswctype_l.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 068a419e4219c5bb5d8156ff9177676d9c174021 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Copy wcscat implementation from ntdll.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 2c5bf68a5e7525ae9c50ee0dfc6d819da79c4861 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Don't use wine/unicode.h header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 536be09b8449537925ad4635a06ae45283075c2e by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Introduce fpnum structure that can be used to represent 64 and
80-bit double.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 450015781e7ad45a79df01225ee75271563317ce by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Don't use strtold in __STRINGTOLD_L.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a22adf1893d510660d7eeea5ef290399ce21e8b5 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] ucrtbase: Support _CRT_INTERNAL_PRINTF_STANDARD_ROUNDING flag in
printf.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 25cc6ff62d22220f6da742fa47a7f5fe80ed0c1b by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Handle rethrowing from nested try blocks on x64.
Signed-off-by: Paul Gofman <pgofman(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f65fb09dff86dbb87564264481a23b1179e8d890 by Paul Gofman
<pgofman(a)codeweavers.com>
* [WINESYNC] msvcr120: Add imaxabs.
Signed-off-by: Myah Caron <qsniyg(a)protonmail.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1bb193238fa9eb73668b1dd1bb086105af25727c by Myah Caron
<qsniyg(a)protonmail.com>
* [WINESYNC] msvcrt: Fix count parameter type in printf functions family.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 68ca61a555b3118836dbf7b666686e1de3d988b0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Implement _mbbtype_l().
Fixes Midnight Castle Succubus.
Signed-off-by: Paul Gofman <pgofman(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id ebe3fe536c6c0eb8d8144e9235ea8d1f88aa5657 by Paul Gofman
<pgofman(a)codeweavers.com>
* [WINESYNC] msvcrt: Terminate on noexcept function trying to propagate exception
(i386).
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 26c1f8fb07790f51c0fbe0012144e213edccd8ed by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Terminate on noexcept function trying to propagate exception
(x86_64).
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 8468a3ed77ba22d9a33b2251240e2a4e5462e1b7 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Make locale and thread helper functions CDECL.
This prevent callers from having to save SSE registers to the stack.
It is for instance the case in MSVCRT__towlower_l, which is called on
every character by MSVCRT__wcsicmp_l.
Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a24ad51e3f2515c1970b56f8dfe2206e2b282dc9 by Rémi Bernon
<rbernon(a)codeweavers.com>
* [WINESYNC] msvcrt: Introduce noalloc current locale lookup helpers.
Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id faf92fdedb16a6e35c556e389bf5ac7241058f75 by Rémi Bernon
<rbernon(a)codeweavers.com>
* [WINESYNC] msvcrt: Add floating point classification macros.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id b9002cc8c7ae16b4a61476834318bcefd638e34f by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Use the msvcrt math functions internally.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1be5e83859229d0e8a6c4fb3913865beea00a085 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Use the msvcrt ctype functions internally.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id b7fe06d0fa6dbad7d2c3ae380557adcaa10b89f8 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Use the msvcrt atoi() function internally.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f48648aeec69f74899ba2f074b60aeb0de03615b by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Use the msvcrt string functions internally.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 2fb08bed46fec302954578038566593bb108b57c by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Move math functions to a new Unix library.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c72e1b096d16a1e9a36b86fbc8c403ec3653a504 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Share ctype tables between threadlocinfo instances.
Signed-off-by: Chip Davis <cdavis(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5ec7cb5a7f20afd6eef33d5799fb4c5c1ddaebe1 by Chip Davis
<cdavis(a)codeweavers.com>
* [WINESYNC] msvcrt: Share __lc_time_data between threadlocinfo instances.
My testing shows that unk[1] is some sort of refcount.
Signed-off-by: Chip Davis <cdavis(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 898abfc18f409357939e66cd9a6767d4bc5b0672 by Chip Davis
<cdavis(a)codeweavers.com>
* [WINESYNC] msvcrt: Enable multi-thread locking by default.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6482ce7666a5f8beb92879af5ae3fde3782627d7 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Build with msvcrt headers.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 191bdeaff3676f192148e17c6369865ec94c2ba2 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Don't overwrite threadmbcinfostruct structure in _setmbcp.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 35a8f15361022d9195bd141aa67b22e06007fa16 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt/tests: Remove the headers test.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 86b0a633c68dfceb884a74528c407ba359f10991 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Remove some duplicate definitions from msvcrt.h.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1f11f41f613264dd5b937d0df0a3ee746db0517c by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Move the fenv_t definition to the public header.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 34422eb56cad1ba799270bc6dd56f31bec86023a by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Use the public standard type definitions where possible in
msvcrt.h.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 0edef50dfae4ec294a949654fa1e03700b954dcb by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Introduce flags field to describe locale stored in thread data.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 4fc2b7293378be93275e316c3940e7d21b5bda09 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Lock _MB_CP_LOCK lock in setmbcp.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d5b2c3f233d2a7263f3b79133ce6216fa991c1f2 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_lconv type.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 70c06601e6bc44aa7b78f440b43c5accbcf32038 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_pthreadlocinfo type.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d5c0458bd17e1759d25a94038414bf5d4f84a828 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_pthreadmbcinfo type.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d496099c74ba7ce4d445a14dceb22b2de2ab0ec5 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT__locale_t type.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5114c85a0365d29f49c63ca967dfd2e9159c6338 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT prefix from locale functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 17f3f548861dc2c7502690b7d3183e3b9b8a5510 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_wchar_t type.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c302397c7375157ccca7de977d83c95f38015238 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use type ranges definition from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 758460faf7080efaadfe92a221ad6c623f561be9 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use simple type definitions from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id fa272adaeb9df503a8fe04d503e07a41ae0c32a0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use WEOF from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 7acfe8fb73d88c354dcec0f56c3cdc6acacbdc04 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use EOF from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 8180f4001a6d5a0befe6dfb4c0c3118853b7a413 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use struct tm from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6c4b7758c691fad6fd5b5f629a8a01b6bc2f961a by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from cpp.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 772f0331aa1c4e24f97ca5c5ae27a65805cea8d9 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _beginthread_start_routine_t from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id fbc9110d232fd5e86113fc73153b754278e0f5e9 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use errno values from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1317b935efaa841e8842b848d422d1bf2471e448 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _onexit_table_t from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id babe6ceb7f7b206ce8181e35934fc0aa1ee02ae5 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use printf and scanf flags from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id eb6f79f96a81371d328476d255e27d3a47925b13 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _CRT_FLOAT and _CRT_DBL from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 811647dff44ab93b89200d873d7707a02331d89a by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _exception definiotion from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 595ee43c48dc75ebc03900b027d000ebd15dffd4 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use locale category definiotion from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id e9a1ff11302bbcbb3db68fa4bbd827a7958067ca by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from errno.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id eeada5682b68ae2400271dbda0634be186f962b7 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from heap.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d784dbb89993d0565ea132109b110cc9500c97f4 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use FILE from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 926179938308b49a2ede5e9196d28535cfec782c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use __utimbuf{32,64} from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 2d471db92f0df5d0682369651c0cbb94312cc988 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use ctype definition from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id eabef91a9701ac72c91e64d946d31d829da92d3a by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use status word flags from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 09d018c73d4dbaeddf19333e9c5c6fae51d4c1ec by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use fpclass constants from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 480e25a5f6ae432f4688c79dbf7f0008a740aab6 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _ARGMAX from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 45ac13551966f7a89ad4678fbc0f76f858663bcb by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use floating point exception signals definition from public
header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 9e085387ac8e6a6c34bc6e7bec8135ef84a247d6 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use signal definitions from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 2d96d03006798dd64d42735ffbc3dc76fe6a1174 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use fpclassify constants from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d571f377e40082bf234c5b2e3b128598a370ae6b by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use FPU control word definitions from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 4674860303badca0b88436fdc9c7d5be4f00b1b8 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from ctype.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 176aebb0c568e75043012fb0e6d61d6862323993 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from data.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 495f24ebb82af9864287f9cbc39aa4db108979d2 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use heap structures and definitions from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6d799bfa06a818b068bec6ce540477f89d4f63e1 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use stdio.h definitions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 0d479b9d8c54184cce9678b3095bf01d5b4a473c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from environ.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 9011b0b7c05c481ff043357be655f1fc7e66b924 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from except.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6bd9ea5be9c1e53d2cf7369c5eb75817b3c80df5 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from exit.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 2c35caa7671ec4fbf90651e3301cfc58c011031c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from mbcs.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 065cf4e71496d96baf5f7ff35af4f0bbfee9d1a8 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from misc.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 0364b7681fd6f628b06a9653119cd4f7d1c5cfdb by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from process.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f10c1118e2c2159140d32730f2e49ec70f37bd33 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from scanf.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a1662e3f7d6626618dc0158627ffbe8cf2c81be0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from string.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1514c54ce560acadb4cacb77cd4ee5915e8dbd67 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from wcs.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6ad42ee7f4df2a3a731e404f090abe383d40dd1c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from math.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 4f2f3545e59c00aac92448aebe7484467a8cedce by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from dir.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 41fa6e4b6f0e64bfe8be35c215a3c01d8290700c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove MSVCRT_ prefix from file.c functions.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1913affb7b4ee57740a0322e6962d588ae62aca0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _invalid_parameter_handler from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 264ba46bcdcd2119c2f9712ba52bb74c35bd369b by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _purecall_handler from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 200fe8ac42ff0800c784ec686ccf494391f6907b by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _Dcomplex definition from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 494a78940735ab31bef9a8ae1d5e58175667df37 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _JUMP_BUFFER from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 835a83e3f9699a83482bc5e74d2e931d87cb1a5a by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _finddata_t definition from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 8a2dc3aa42551da56dfc3fb9f1b3979c032a9738 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _stat64 definition from public header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 951968c88a2a705ebe7bbb1ac02cd64f8f899f5b by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove non-needed defines from msvcrt.h.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f67f1ce79ee98f88aedde3a915bb6d85b9a934ab by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Remove non-needed function declarations from msvcrt.h.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 79e950bb7989809f62573e3209f2cb1bc0852d6e by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use _configthreadlocale arguments definition from public
header.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a7b9948f396a904b43851105f14e86455ebae703 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] ucrtbase: Improve __intrinsic_abnormal_termination stub.
Signed-off-by: Jacek Caban <jacek(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id e734d729461855a5ddaf81f4e08e0cc2b3286e37 by Jacek Caban
<jacek(a)codeweavers.com>
* [WINESYNC] msvcrt: Use __ASM_USE_THISCALL_WRAPPER in cxx.h.
Signed-off-by: Jacek Caban <jacek(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id df446b9c21f52b917a9c2a360bccaed35896a32e by Jacek Caban
<jacek(a)codeweavers.com>
* [WINESYNC] msvcrt: Improve memmove performance on i386 and x86_64 architectures.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49663
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 38c490496000c5852f14e9c022868c5107d9ff03 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Make __lc_time_data more similar to native.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 859261f4809a47fd030b605a6e418b7ac52f0790 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Lazily initialize console handles.
Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d5ab1401c0988b8c8c14ae7c64da0a55f4e4bbeb by Rémi Bernon
<rbernon(a)codeweavers.com>
* [WINESYNC] msvcrt: Add helpers for creating base class RTTI.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 16f6a567f4c259bc9b856558f4deebd2f4aeb88c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Fix _unDName crash when demangling class function pointer.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 7a1e7cbeee94756f3c474ba63b9fe9db8bddde3a by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] include: Disallow wcsncpy() in Wine, similarly to strncpy().
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id b35404aa61bf9d5c95ba9b51adb57df7cec1827b by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Make UCRT _beginthread[ex]() hold the DLL reference.
MSVCRT's _beginthread[ex]() doesn't exhibit the same behavior and using
ThreadExit() does leak the reference.
FreeLibraryAndExit() has to be used because the DLL may be the only user
of the given CRT.
This fixes Baldur's Gate 3 crashing shortly after launch.
Signed-off-by: Arkadiusz Hiler <ahiler(a)codeweavers.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 7435ca85453079283da43d716fac48aa1bf5ca3f by Arkadiusz Hiler
<ahiler(a)codeweavers.com>
* [WINESYNC] msvcrt: Allow specifying destructor in DEFINE_CXX_DATA macro.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id bc05707364d722c7b8c105709962cb78c0469cd4 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Add macro that defines type_info vtable.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6c4cddc4f6324cfd6d37e269aaec111a8a665e22 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Rename scheduler.c file to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id eff57ac9c6280751f5f51a66fcac05d6f842fecb by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move _Trace_ppl_function to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id ce5c989171f458842bee6e168a65dc36d2ec61d5 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Rename exception::what() implementation to exception_what.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f1fa214b9f936bd91fecbfd6f05436d22311f4dd by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Introduce macro for creating exception class.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f6f8b30c47bc28be5df692743fcf81c7952153ce by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move improper_lock implementation to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id ef81cfb5fbc6d8f2b892c2782bdd469a5bb2f526 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move scheduler_resource_allocation_error to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a8decf5c1511019e3cb22a0e4db06cb0e6b121b2 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move invalid_scheduler_policy_key to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 635f59f2765c03a91b589b810a898bb0b0e566e5 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move invalid_scheduler_policy_value to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a7bbdea08994625411c94da97ef6b5fbcfb5aaf6 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move invalid_scheduler_policy_thread_specification to
concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c9189a411b7941377cb414eed15d1ce02d43959c by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move improper_scheduler_attach to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 9694fc11fee300134486ee359b525afe098748c8 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Move improper_scheduler_detach to concurrency.c.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 1c9a30f217ef0afcfeb86acf3911e51e81f49880 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Simplify throw_exception helper.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5e3f959aed66b719d845e9e81b282210758444b0 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Fix _CxxThrowException prototype.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c306c527e708df33a67d31667be75adcbcbc7d7e by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] ntdll: Move some exception definitions to winternl.h.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 97479d3d32cd1adf1a77f74b19ecfd0560b78128 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] include: Use the standard va_list instead of __ms_va_list when building
with msvcrt.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 2a92c58e1152e1d80395cf31d7cd3f282d094540 by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] ucrtbase: Avoid bool optimization in __std_exception_copy.
Otherwise GCC changes do_free = 1 assignment to *dst = *src which breaks
ucrtbase/cpp tests.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 21da1f2f1143cfc154a8d46c51d4922ff71008d6 by Piotr Caban
<piotr(a)codeweavers.com>
* [WINESYNC] msvcrt: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id d8ed47ec21b255976131c82e4c14653846765adb by Alexandre Julliard
<julliard(a)winehq.org>
* [WINESYNC] msvcrt: Don't set frame to 0 in arm and arm64 setjmp.
This matches what was done for x86_64 in
882980c17a9a033fa8e49a4c116af9583698d218.
Signed-off-by: Martin Storsjö <martin(a)martin.st>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 6a072b98c100f38a61fad00b6c96c86b3445efac by Martin Storsjö
<martin(a)martin.st>
* [WINESYNC] msvcrt: Do not acquire fd lock in msvcrt_create_io_inherit_block.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=51647
Signed-off-by: Doug Lyons <douglyons(a)douglyons.com>
Signed-off-by: Thomas Faber <thomas.faber(a)reactos.org>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5a514d3f45472ce1a169f33d14cdcfb07c51441e by Doug Lyons
<douglyons(a)douglyons.com>
* [WINESYNC] msvcrt: Fix double-free and memory leak in type_info destructor.
Spotted by toying with the gcc's static analyzer.
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 01111b941d469cb13ed9d3f63c2935930679bcb8 by Eric Pouech
<eric.pouech(a)gmail.com>
* [WINESYNC]: crt is now in sync with wine-staging wine-7.0
---------
Co-authored-by: winesync <ros-dev(a)reactos.org>
---
dll/win32/crtdll/crtdll.spec | 6 +-
dll/win32/msvcrt/msvcrt.spec | 320 ++++----
dll/win32/msvcrt20/msvcrt20.spec | 26 +-
dll/win32/msvcrt40/msvcrt40.spec | 106 +--
media/doc/WINESYNC.txt | 16 +-
sdk/include/reactos/wine/asm.h | 8 +
sdk/lib/crt/crt.cmake | 1 -
sdk/lib/crt/except/amd64/cpp.s | 112 +--
sdk/lib/crt/except/arm/cpp.s | 100 +--
sdk/lib/crt/except/i386/cpp.s | 118 +--
sdk/lib/crt/include/internal/wine_msc.h | 72 +-
sdk/lib/crt/signal/xcptinfo.c | 9 -
sdk/lib/crt/wine/cpp.c | 969 +++++-----------------
sdk/lib/crt/wine/cppexcept.h | 151 +++-
sdk/lib/crt/wine/cxx.h | 73 +-
sdk/lib/crt/wine/except.c | 146 ++--
sdk/lib/crt/wine/except_arm.c | 12 +-
sdk/lib/crt/wine/except_arm64.c | 12 +-
sdk/lib/crt/wine/except_i386.c | 48 +-
sdk/lib/crt/wine/except_x86_64.c | 45 +-
sdk/lib/crt/wine/heap.c | 308 ++++---
sdk/lib/crt/wine/msvcrt.h | 1354 +++----------------------------
sdk/lib/crt/wine/mtdll.h | 13 -
sdk/lib/crt/wine/undname.c | 13 +-
sdk/tools/winesync/crt.cfg | 2 +-
25 files changed, 1274 insertions(+), 2766 deletions(-)
diff --git a/dll/win32/crtdll/crtdll.spec b/dll/win32/crtdll/crtdll.spec
index 0b8e0f74225..c8b9da5e884 100644
--- a/dll/win32/crtdll/crtdll.spec
+++ b/dll/win32/crtdll/crtdll.spec
@@ -1,8 +1,8 @@
# Old C runtime library.
-@ cdecl ??2@YAPAXI@Z(long) MSVCRT_operator_new # void * __cdecl operator new(unsigned
int)
-@ cdecl ??3@YAXPAX@Z(ptr) MSVCRT_operator_delete # void __cdecl operator delete(void *)
-@ cdecl ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) MSVCRT__set_new_handler # int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
+@ cdecl ??2@YAPAXI@Z(long) operator_new # void * __cdecl operator new(unsigned int)
+@ cdecl ??3@YAXPAX@Z(ptr) operator_delete # void __cdecl operator delete(void *)
+@ cdecl ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) _set_new_handler # int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
@ cdecl _CIacos()
@ cdecl _CIasin()
@ cdecl _CIatan()
diff --git a/dll/win32/msvcrt/msvcrt.spec b/dll/win32/msvcrt/msvcrt.spec
index 9e66349fc80..f2f12e95c10 100644
--- a/dll/win32/msvcrt/msvcrt.spec
+++ b/dll/win32/msvcrt/msvcrt.spec
@@ -3,154 +3,154 @@
@ cdecl -arch=x86_64 -version=0x502 $I10_OUTPUT() I10_OUTPUT
# **************** x86 C++ functions ****************
-@ cdecl -arch=i386 -norelay ??0__non_rtti_object@@QAE@ABV0@@Z(ptr)
MSVCRT___non_rtti_object_copy_ctor # public: __thiscall
__non_rtti_object::__non_rtti_object(class __non_rtti_object const &)
-@ cdecl -arch=i386 -norelay ??0__non_rtti_object@@QAE@PBD@Z(ptr)
MSVCRT___non_rtti_object_ctor # public: __thiscall
__non_rtti_object::__non_rtti_object(char const *)
-@ cdecl -arch=i386 -norelay ??0bad_cast@@AAE@PBQBD@Z(ptr) MSVCRT_bad_cast_ctor # private:
__thiscall bad_cast::bad_cast(char const * const *)
-@ cdecl -arch=i386 -norelay ??0bad_cast@@QAE@ABQBD@Z(ptr) MSVCRT_bad_cast_ctor # public:
__thiscall bad_cast::bad_cast(char const * const &)
-@ cdecl -arch=i386 -norelay ??0bad_cast@@QAE@ABV0@@Z(ptr) MSVCRT_bad_cast_copy_ctor #
public: __thiscall bad_cast::bad_cast(class bad_cast const &)
-@ cdecl -arch=i386 -norelay ??0bad_cast@@QAE@PBD@Z(ptr) MSVCRT_bad_cast_ctor_charptr #
public: __thiscall bad_cast::bad_cast(char const *)
-@ cdecl -arch=i386 -norelay ??0bad_typeid@@QAE@ABV0@@Z(ptr) MSVCRT_bad_typeid_copy_ctor #
public: __thiscall bad_typeid::bad_typeid(class bad_typeid const &)
-@ cdecl -arch=i386 -norelay ??0bad_typeid@@QAE@PBD@Z(ptr) MSVCRT_bad_typeid_ctor #
public: __thiscall bad_typeid::bad_typeid(char const *)
-@ cdecl -arch=i386 -norelay ??0exception@@QAE@ABQBD@Z(ptr) MSVCRT_exception_ctor #
public: __thiscall exception::exception(char const * const &)
-@ cdecl -arch=i386 -norelay ??0exception@@QAE@ABQBDH@Z(ptr long)
MSVCRT_exception_ctor_noalloc # public: __thiscall exception::exception(char const * const
&,int)
-@ cdecl -arch=i386 -norelay ??0exception@@QAE@ABV0@@Z(ptr) MSVCRT_exception_copy_ctor #
public: __thiscall exception::exception(class exception const &)
-@ cdecl -arch=i386 -norelay ??0exception@@QAE@XZ() MSVCRT_exception_default_ctor #
public: __thiscall exception::exception(void)
-@ cdecl -arch=i386 -norelay ??1__non_rtti_object@@UAE@XZ() MSVCRT___non_rtti_object_dtor
# public: virtual __thiscall __non_rtti_object::~__non_rtti_object(void)
-@ cdecl -arch=i386 -norelay ??1bad_cast@@UAE@XZ() MSVCRT_bad_cast_dtor # public: virtual
__thiscall bad_cast::~bad_cast(void)
-@ cdecl -arch=i386 -norelay ??1bad_typeid@@UAE@XZ() MSVCRT_bad_typeid_dtor # public:
virtual __thiscall bad_typeid::~bad_typeid(void)
-@ cdecl -arch=i386 -norelay ??1exception@@UAE@XZ() MSVCRT_exception_dtor # public:
virtual __thiscall exception::~exception(void)
-@ cdecl -arch=i386 -norelay ??1type_info@@UAE@XZ() MSVCRT_type_info_dtor # public:
virtual __thiscall type_info::~type_info(void)
-@ cdecl -arch=i386 ??2@YAPAXI@Z(long) MSVCRT_operator_new # void * __cdecl operator
new(unsigned int)
-;@ cdecl -arch=i386 ??2@YAPAXIHPBDH@Z(long long str long) MSVCRT_operator_new_dbg # void
* __cdecl operator new(unsigned int,int,char const *,int)
-@ cdecl -arch=i386 ??3@YAXPAX@Z(ptr) MSVCRT_operator_delete # void __cdecl operator
delete(void *)
-@ cdecl -arch=i386 -norelay ??4__non_rtti_object@@QAEAAV0@ABV0@@Z(ptr)
MSVCRT___non_rtti_object_opequals # public: class __non_rtti_object & __thiscall
__non_rtti_object::operator=(class __non_rtti_object const &)
-@ cdecl -arch=i386 -norelay ??4bad_cast@@QAEAAV0@ABV0@@Z(ptr) MSVCRT_bad_cast_opequals #
public: class bad_cast & __thiscall bad_cast::operator=(class bad_cast const &)
-@ cdecl -arch=i386 -norelay ??4bad_typeid@@QAEAAV0@ABV0@@Z(ptr)
MSVCRT_bad_typeid_opequals # public: class bad_typeid & __thiscall
bad_typeid::operator=(class bad_typeid const &)
-@ cdecl -arch=i386 -norelay ??4exception@@QAEAAV0@ABV0@@Z(ptr) MSVCRT_exception_opequals
# public: class exception & __thiscall exception::operator=(class exception const
&)
-@ cdecl -arch=i386 -norelay ??8type_info@@QBEHABV0@@Z(ptr)
MSVCRT_type_info_opequals_equals # public: int __thiscall type_info::operator==(class
type_info const &)const
-@ cdecl -arch=i386 -norelay ??9type_info@@QBEHABV0@@Z(ptr) MSVCRT_type_info_opnot_equals
# public: int __thiscall type_info::operator!=(class type_info const &)const
-@ extern -arch=i386 ??_7__non_rtti_object@@6B@ MSVCRT___non_rtti_object_vtable # const
__non_rtti_object::`vftable'
-@ extern -arch=i386 ??_7bad_cast@@6B@ MSVCRT_bad_cast_vtable # const
bad_cast::`vftable'
-@ extern -arch=i386 ??_7bad_typeid@@6B@ MSVCRT_bad_typeid_vtable # const
bad_typeid::`vftable'
-@ extern -arch=i386 ??_7exception@@6B@ MSVCRT_exception_vtable # const
exception::`vftable'
-@ cdecl -arch=i386 -norelay ??_E__non_rtti_object@@UAEPAXI@Z(long)
MSVCRT___non_rtti_object_vector_dtor # public: virtual void * __thiscall
__non_rtti_object::`vector deleting destructor'(unsigned int)
-@ cdecl -arch=i386 -norelay ??_Ebad_cast@@UAEPAXI@Z(long) MSVCRT_bad_cast_vector_dtor #
public: virtual void * __thiscall bad_cast::`vector deleting destructor'(unsigned
int)
-@ cdecl -arch=i386 -norelay ??_Ebad_typeid@@UAEPAXI@Z(long) MSVCRT_bad_typeid_vector_dtor
# public: virtual void * __thiscall bad_typeid::`vector deleting destructor'(unsigned
int)
-@ cdecl -arch=i386 -norelay ??_Eexception@@UAEPAXI@Z(long) MSVCRT_exception_vector_dtor #
public: virtual void * __thiscall exception::`vector deleting destructor'(unsigned
int)
-@ cdecl -arch=i386 -norelay ??_Fbad_cast@@QAEXXZ() MSVCRT_bad_cast_default_ctor # public:
void __thiscall bad_cast::`default constructor closure'(void)
-@ cdecl -arch=i386 -norelay ??_Fbad_typeid@@QAEXXZ() MSVCRT_bad_typeid_default_ctor #
public: void __thiscall bad_typeid::`default constructor closure'(void)
-@ cdecl -arch=i386 -norelay ??_G__non_rtti_object@@UAEPAXI@Z(long)
MSVCRT___non_rtti_object_scalar_dtor # public: virtual void * __thiscall
__non_rtti_object::`scalar deleting destructor'(unsigned int)
-@ cdecl -arch=i386 -norelay ??_Gbad_cast@@UAEPAXI@Z(long) MSVCRT_bad_cast_scalar_dtor #
public: virtual void * __thiscall bad_cast::`scalar deleting destructor'(unsigned
int)
-@ cdecl -arch=i386 -norelay ??_Gbad_typeid@@UAEPAXI@Z(long) MSVCRT_bad_typeid_scalar_dtor
# public: virtual void * __thiscall bad_typeid::`scalar deleting destructor'(unsigned
int)
-@ cdecl -arch=i386 -norelay ??_Gexception@@UAEPAXI@Z(long) MSVCRT_exception_scalar_dtor #
public: virtual void * __thiscall exception::`scalar deleting destructor'(unsigned
int)
-@ cdecl -arch=i386 ??_U@YAPAXI@Z(long) MSVCRT_operator_new # void * __cdecl operator
new[](unsigned int)
-;@ cdecl -arch=i386 ??_U@YAPAXIHPBDH@Z(long long str long) MSVCRT_operator_new_dbg # void
* __cdecl operator new[](unsigned int,int,char const *,int)
-@ cdecl -arch=i386 ??_V@YAXPAX@Z(ptr) MSVCRT_operator_delete # void __cdecl operator
delete[](void *)
-@ cdecl -arch=i386 -norelay __uncaught_exception(ptr) MSVCRT___uncaught_exception
-@ cdecl -arch=i386 -norelay ?_query_new_handler@@YAP6AHI@ZXZ() MSVCRT__query_new_handler
# int (__cdecl*__cdecl _query_new_handler(void))(unsigned int)
-@ cdecl -arch=i386 ?_query_new_mode@@YAHXZ() MSVCRT__query_new_mode # int __cdecl
_query_new_mode(void)
-@ cdecl -arch=i386 -norelay ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr)
MSVCRT__set_new_handler # int (__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned
int)))(unsigned int)
-@ cdecl -arch=i386 ?_set_new_mode@@YAHH@Z(long) MSVCRT__set_new_mode # int __cdecl
_set_new_mode(int)
-@ cdecl -arch=i386 -norelay
?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr)
MSVCRT__set_se_translator # void (__cdecl*__cdecl _set_se_translator(void
(__cdecl*)(unsigned int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct
_EXCEPTION_POINTERS *)
-@ cdecl -arch=i386 -norelay ?before@type_info@@QBEHABV1@@Z(ptr) MSVCRT_type_info_before #
public: int __thiscall type_info::before(class type_info const &)const
-@ cdecl -arch=i386 -norelay ?name@type_info@@QBEPBDXZ() MSVCRT_type_info_name # public:
char const * __thiscall type_info::name(void)const
-@ cdecl -arch=i386 -norelay ?raw_name@type_info@@QBEPBDXZ() MSVCRT_type_info_raw_name #
public: char const * __thiscall type_info::raw_name(void)const
-@ cdecl -arch=i386 ?set_new_handler@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_new_handler # void
(__cdecl*__cdecl set_new_handler(void (__cdecl*)(void)))(void)
-@ cdecl -arch=i386 ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_terminate # void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
-@ cdecl -arch=i386 ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_unexpected # void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
-@ cdecl -arch=i386 ?terminate@@YAXXZ() MSVCRT_terminate # void __cdecl terminate(void)
-@ cdecl -arch=i386 ?unexpected@@YAXXZ() MSVCRT_unexpected # void __cdecl
unexpected(void)
-@ cdecl -arch=i386 -norelay ?what@exception@@UBEPBDXZ() MSVCRT_what_exception # public:
virtual char const * __thiscall exception::what(void)const
+@ cdecl -arch=i386 -norelay ??0__non_rtti_object@@QAE@ABV0@@Z(ptr)
__non_rtti_object_copy_ctor # public: __thiscall
__non_rtti_object::__non_rtti_object(class __non_rtti_object const &)
+@ cdecl -arch=i386 -norelay ??0__non_rtti_object@@QAE@PBD@Z(ptr) __non_rtti_object_ctor #
public: __thiscall __non_rtti_object::__non_rtti_object(char const *)
+@ cdecl -arch=i386 -norelay ??0bad_cast@@AAE@PBQBD@Z(ptr) bad_cast_ctor # private:
__thiscall bad_cast::bad_cast(char const * const *)
+@ cdecl -arch=i386 -norelay ??0bad_cast@@QAE@ABQBD@Z(ptr) bad_cast_ctor # public:
__thiscall bad_cast::bad_cast(char const * const &)
+@ cdecl -arch=i386 -norelay ??0bad_cast@@QAE@ABV0@@Z(ptr) bad_cast_copy_ctor # public:
__thiscall bad_cast::bad_cast(class bad_cast const &)
+@ cdecl -arch=i386 -norelay ??0bad_cast@@QAE@PBD@Z(ptr) bad_cast_ctor_charptr # public:
__thiscall bad_cast::bad_cast(char const *)
+@ cdecl -arch=i386 -norelay ??0bad_typeid@@QAE@ABV0@@Z(ptr) bad_typeid_copy_ctor #
public: __thiscall bad_typeid::bad_typeid(class bad_typeid const &)
+@ cdecl -arch=i386 -norelay ??0bad_typeid@@QAE@PBD@Z(ptr) bad_typeid_ctor # public:
__thiscall bad_typeid::bad_typeid(char const *)
+@ cdecl -arch=i386 -norelay ??0exception@@QAE@ABQBD@Z(ptr) exception_ctor # public:
__thiscall exception::exception(char const * const &)
+@ cdecl -arch=i386 -norelay ??0exception@@QAE@ABQBDH@Z(ptr long) exception_ctor_noalloc #
public: __thiscall exception::exception(char const * const &,int)
+@ cdecl -arch=i386 -norelay ??0exception@@QAE@ABV0@@Z(ptr) exception_copy_ctor # public:
__thiscall exception::exception(class exception const &)
+@ cdecl -arch=i386 -norelay ??0exception@@QAE@XZ() exception_default_ctor # public:
__thiscall exception::exception(void)
+@ cdecl -arch=i386 -norelay ??1__non_rtti_object@@UAE@XZ() __non_rtti_object_dtor #
public: virtual __thiscall __non_rtti_object::~__non_rtti_object(void)
+@ cdecl -arch=i386 -norelay ??1bad_cast@@UAE@XZ() bad_cast_dtor # public: virtual
__thiscall bad_cast::~bad_cast(void)
+@ cdecl -arch=i386 -norelay ??1bad_typeid@@UAE@XZ() bad_typeid_dtor # public: virtual
__thiscall bad_typeid::~bad_typeid(void)
+@ cdecl -arch=i386 -norelay ??1exception@@UAE@XZ() exception_dtor # public: virtual
__thiscall exception::~exception(void)
+@ cdecl -arch=i386 -norelay ??1type_info@@UAE@XZ() type_info_dtor # public: virtual
__thiscall type_info::~type_info(void)
+@ cdecl -arch=i386 ??2@YAPAXI@Z(long) operator_new # void * __cdecl operator new(unsigned
int)
+;@ cdecl -arch=i386 ??2@YAPAXIHPBDH@Z(long long str long) operator_new_dbg # void *
__cdecl operator new(unsigned int,int,char const *,int)
+@ cdecl -arch=i386 ??3@YAXPAX@Z(ptr) operator_delete # void __cdecl operator delete(void
*)
+@ cdecl -arch=i386 -norelay ??4__non_rtti_object@@QAEAAV0@ABV0@@Z(ptr)
__non_rtti_object_opequals # public: class __non_rtti_object & __thiscall
__non_rtti_object::operator=(class __non_rtti_object const &)
+@ cdecl -arch=i386 -norelay ??4bad_cast@@QAEAAV0@ABV0@@Z(ptr) bad_cast_opequals # public:
class bad_cast & __thiscall bad_cast::operator=(class bad_cast const &)
+@ cdecl -arch=i386 -norelay ??4bad_typeid@@QAEAAV0@ABV0@@Z(ptr) bad_typeid_opequals #
public: class bad_typeid & __thiscall bad_typeid::operator=(class bad_typeid const
&)
+@ cdecl -arch=i386 -norelay ??4exception@@QAEAAV0@ABV0@@Z(ptr) exception_opequals #
public: class exception & __thiscall exception::operator=(class exception const
&)
+@ cdecl -arch=i386 -norelay ??8type_info@@QBEHABV0@@Z(ptr) type_info_opequals_equals #
public: int __thiscall type_info::operator==(class type_info const &)const
+@ cdecl -arch=i386 -norelay ??9type_info@@QBEHABV0@@Z(ptr) type_info_opnot_equals #
public: int __thiscall type_info::operator!=(class type_info const &)const
+@ extern -arch=i386 ??_7__non_rtti_object@@6B@ __non_rtti_object_vtable # const
__non_rtti_object::`vftable'
+@ extern -arch=i386 ??_7bad_cast@@6B@ bad_cast_vtable # const bad_cast::`vftable'
+@ extern -arch=i386 ??_7bad_typeid@@6B@ bad_typeid_vtable # const
bad_typeid::`vftable'
+@ extern -arch=i386 ??_7exception@@6B@ exception_vtable # const
exception::`vftable'
+@ cdecl -arch=i386 -norelay ??_E__non_rtti_object@@UAEPAXI@Z(long)
__non_rtti_object_vector_dtor # public: virtual void * __thiscall
__non_rtti_object::`vector deleting destructor'(unsigned int)
+@ cdecl -arch=i386 -norelay ??_Ebad_cast@@UAEPAXI@Z(long) bad_cast_vector_dtor # public:
virtual void * __thiscall bad_cast::`vector deleting destructor'(unsigned int)
+@ cdecl -arch=i386 -norelay ??_Ebad_typeid@@UAEPAXI@Z(long) bad_typeid_vector_dtor #
public: virtual void * __thiscall bad_typeid::`vector deleting destructor'(unsigned
int)
+@ cdecl -arch=i386 -norelay ??_Eexception@@UAEPAXI@Z(long) exception_vector_dtor #
public: virtual void * __thiscall exception::`vector deleting destructor'(unsigned
int)
+@ cdecl -arch=i386 -norelay ??_Fbad_cast@@QAEXXZ() bad_cast_default_ctor # public: void
__thiscall bad_cast::`default constructor closure'(void)
+@ cdecl -arch=i386 -norelay ??_Fbad_typeid@@QAEXXZ() bad_typeid_default_ctor # public:
void __thiscall bad_typeid::`default constructor closure'(void)
+@ cdecl -arch=i386 -norelay ??_G__non_rtti_object@@UAEPAXI@Z(long)
__non_rtti_object_scalar_dtor # public: virtual void * __thiscall
__non_rtti_object::`scalar deleting destructor'(unsigned int)
+@ cdecl -arch=i386 -norelay ??_Gbad_cast@@UAEPAXI@Z(long) bad_cast_scalar_dtor # public:
virtual void * __thiscall bad_cast::`scalar deleting destructor'(unsigned int)
+@ cdecl -arch=i386 -norelay ??_Gbad_typeid@@UAEPAXI@Z(long) bad_typeid_scalar_dtor #
public: virtual void * __thiscall bad_typeid::`scalar deleting destructor'(unsigned
int)
+@ cdecl -arch=i386 -norelay ??_Gexception@@UAEPAXI@Z(long) exception_scalar_dtor #
public: virtual void * __thiscall exception::`scalar deleting destructor'(unsigned
int)
+@ cdecl -arch=i386 ??_U@YAPAXI@Z(long) operator_new # void * __cdecl operator
new[](unsigned int)
+;@ cdecl -arch=i386 ??_U@YAPAXIHPBDH@Z(long long str long) operator_new_dbg # void *
__cdecl operator new[](unsigned int,int,char const *,int)
+@ cdecl -arch=i386 ??_V@YAXPAX@Z(ptr) operator_delete # void __cdecl operator
delete[](void *)
+@ cdecl -arch=i386 -norelay __uncaught_exception(ptr) __uncaught_exception
+@ cdecl -arch=i386 -norelay ?_query_new_handler@@YAP6AHI@ZXZ() _query_new_handler # int
(__cdecl*__cdecl _query_new_handler(void))(unsigned int)
+@ cdecl -arch=i386 ?_query_new_mode@@YAHXZ() _query_new_mode # int __cdecl
_query_new_mode(void)
+@ cdecl -arch=i386 -norelay ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) _set_new_handler #
int (__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
+@ cdecl -arch=i386 ?_set_new_mode@@YAHH@Z(long) _set_new_mode # int __cdecl
_set_new_mode(int)
+@ cdecl -arch=i386 -norelay
?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr) _set_se_translator #
void (__cdecl*__cdecl _set_se_translator(void (__cdecl*)(unsigned int,struct
_EXCEPTION_POINTERS *)))(unsigned int,struct _EXCEPTION_POINTERS *)
+@ cdecl -arch=i386 -norelay ?before@type_info@@QBEHABV1@@Z(ptr) type_info_before #
public: int __thiscall type_info::before(class type_info const &)const
+@ cdecl -arch=i386 -norelay ?name@type_info@@QBEPBDXZ() type_info_name # public: char
const * __thiscall type_info::name(void)const
+@ cdecl -arch=i386 -norelay ?raw_name@type_info@@QBEPBDXZ() type_info_raw_name # public:
char const * __thiscall type_info::raw_name(void)const
+@ cdecl -arch=i386 ?set_new_handler@@YAP6AXXZP6AXXZ@Z(ptr) set_new_handler # void
(__cdecl*__cdecl set_new_handler(void (__cdecl*)(void)))(void)
+@ cdecl -arch=i386 ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) set_terminate # void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
+@ cdecl -arch=i386 ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) set_unexpected # void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
+@ cdecl -arch=i386 ?terminate@@YAXXZ() terminate # void __cdecl terminate(void)
+@ cdecl -arch=i386 ?unexpected@@YAXXZ() unexpected # void __cdecl unexpected(void)
+@ cdecl -arch=i386 -norelay ?what@exception@@UBEPBDXZ() exception_what # public: virtual
char const * __thiscall exception::what(void)const
# **************** win64 C++ functions ****************
-@ cdecl -arch=win64 ??0__non_rtti_object@@QEAA@AEBV0@@Z(ptr)
MSVCRT___non_rtti_object_copy_ctor # public: __cdecl
__non_rtti_object::__non_rtti_object(class __non_rtti_object const & __ptr64)
__ptr64
-@ cdecl -arch=win64 ??0__non_rtti_object@@QEAA@PEBD@Z(ptr) MSVCRT___non_rtti_object_ctor
# public: __cdecl __non_rtti_object::__non_rtti_object(char const * __ptr64) __ptr64
-@ cdecl -arch=win64 ??0bad_cast@@AAE@PBQBD@Z(ptr) MSVCRT_bad_cast_ctor # private:
__thiscall bad_cast::bad_cast(char const near * const near *)
-@ cdecl -arch=win64 ??0bad_cast@@AEAA@PEBQEBD@Z(ptr) MSVCRT_bad_cast_ctor # private:
__cdecl bad_cast::bad_cast(char const * __ptr64 const * __ptr64) __ptr64
-@ cdecl -arch=win64 ??0bad_cast@@QAE@ABQBD@Z(ptr) MSVCRT_bad_cast_ctor # public:
__thiscall bad_cast::bad_cast(char const near * const near &)
-@ cdecl -arch=win64 ??0bad_cast@@QEAA@AEBQEBD@Z(ptr) MSVCRT_bad_cast_ctor # public:
__cdecl bad_cast::bad_cast(char const * __ptr64 const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??0bad_cast@@QEAA@AEBV0@@Z(ptr) MSVCRT_bad_cast_copy_ctor # public:
__cdecl bad_cast::bad_cast(class bad_cast const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??0bad_cast@@QEAA@PEBD@Z(ptr) MSVCRT_bad_cast_ctor_charptr # public:
__cdecl bad_cast::bad_cast(char const * __ptr64) __ptr64
-@ cdecl -arch=win64 ??0bad_typeid@@QEAA@AEBV0@@Z(ptr) MSVCRT_bad_typeid_copy_ctor #
public: __cdecl bad_typeid::bad_typeid(class bad_typeid const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??0bad_typeid@@QEAA@PEBD@Z(ptr) MSVCRT_bad_typeid_ctor # public:
__cdecl bad_typeid::bad_typeid(char const * __ptr64) __ptr64
-@ cdecl -arch=win64 ??0exception@@QEAA@AEBQEBD@Z(ptr) MSVCRT_exception_ctor # public:
__cdecl exception::exception(char const * __ptr64 const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??0exception@@QEAA@AEBQEBDH@Z(ptr long) MSVCRT_exception_ctor_noalloc
# public: __cdecl exception::exception(char const * __ptr64 const & __ptr64,int)
__ptr64
-@ cdecl -arch=win64 ??0exception@@QEAA@AEBV0@@Z(ptr) MSVCRT_exception_copy_ctor # public:
__cdecl exception::exception(class exception const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??0exception@@QEAA@XZ() MSVCRT_exception_default_ctor # public:
__cdecl exception::exception(void) __ptr64
-@ cdecl -arch=win64 ??1__non_rtti_object@@UEAA@XZ() MSVCRT___non_rtti_object_dtor #
public: virtual __cdecl __non_rtti_object::~__non_rtti_object(void) __ptr64
-@ cdecl -arch=win64 ??1bad_cast@@UEAA@XZ() MSVCRT_bad_cast_dtor # public: virtual __cdecl
bad_cast::~bad_cast(void) __ptr64
-@ cdecl -arch=win64 ??1bad_typeid@@UEAA@XZ() MSVCRT_bad_typeid_dtor # public: virtual
__cdecl bad_typeid::~bad_typeid(void) __ptr64
-@ cdecl -arch=win64 ??1exception@@UEAA@XZ() MSVCRT_exception_dtor # public: virtual
__cdecl exception::~exception(void) __ptr64
-@ cdecl -arch=win64 ??1type_info@@UEAA@XZ() MSVCRT_type_info_dtor # public: virtual
__cdecl type_info::~type_info(void) __ptr64
-@ cdecl -arch=win64 ??2@YAPEAX_K@Z(double) MSVCRT_operator_new # void * __ptr64 __cdecl
operator new(unsigned __int64)
-@ cdecl -arch=win64 ??2@YAPEAX_KHPEBDH@Z(int64 long str long) MSVCRT_operator_new_dbg #
void * __ptr64 __cdecl operator new(unsigned __int64,int,char const * __ptr64,int)
-@ cdecl -arch=win64 ??3@YAXPEAX@Z(ptr) MSVCRT_operator_delete # void __cdecl operator
delete(void * __ptr64)
-@ cdecl -arch=win64 ??4__non_rtti_object@@QEAAAEAV0@AEBV0@@Z(ptr)
MSVCRT___non_rtti_object_opequals # public: class __non_rtti_object & __ptr64 __cdecl
__non_rtti_object::operator=(class __non_rtti_object const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??4bad_cast@@QEAAAEAV0@AEBV0@@Z(ptr) MSVCRT_bad_cast_opequals #
public: class bad_cast & __ptr64 __cdecl bad_cast::operator=(class bad_cast const
& __ptr64) __ptr64
-@ cdecl -arch=win64 ??4bad_typeid@@QEAAAEAV0@AEBV0@@Z(ptr) MSVCRT_bad_typeid_opequals #
public: class bad_typeid & __ptr64 __cdecl bad_typeid::operator=(class bad_typeid
const & __ptr64) __ptr64
-@ cdecl -arch=win64 ??4exception@@QEAAAEAV0@AEBV0@@Z(ptr) MSVCRT_exception_opequals #
public: class exception & __ptr64 __cdecl exception::operator=(class exception const
& __ptr64) __ptr64
-@ cdecl -arch=win64 ??8type_info@@QEBAHAEBV0@@Z(ptr) MSVCRT_type_info_opequals_equals #
public: int __cdecl type_info::operator==(class type_info const & __ptr64)const
__ptr64
-@ cdecl -arch=win64 ??9type_info@@QEBAHAEBV0@@Z(ptr) MSVCRT_type_info_opnot_equals #
public: int __cdecl type_info::operator!=(class type_info const & __ptr64)const
__ptr64
-@ extern -arch=win64 ??_7__non_rtti_object@@6B@ MSVCRT___non_rtti_object_vtable # const
__non_rtti_object::`vftable'
-@ extern -arch=win64 ??_7bad_cast@@6B@ MSVCRT_bad_cast_vtable # const
bad_cast::`vftable'
-@ extern -arch=win64 ??_7bad_typeid@@6B@ MSVCRT_bad_typeid_vtable # const
bad_typeid::`vftable'
-@ extern -arch=win64 ??_7exception@@6B@ MSVCRT_exception_vtable # const
exception::`vftable'
-@ cdecl -arch=win64 ??_Fbad_cast@@QEAAXXZ() MSVCRT_bad_cast_default_ctor # public: void
__cdecl bad_cast::`default constructor closure'(void) __ptr64
-@ cdecl -arch=win64 ??_Fbad_typeid@@QEAAXXZ() MSVCRT_bad_typeid_default_ctor # public:
void __cdecl bad_typeid::`default constructor closure'(void) __ptr64
-@ cdecl -arch=win64 ??_U@YAPEAX_K@Z(long) MSVCRT_operator_new # void * __ptr64 __cdecl
operator new[](unsigned __int64)
-@ cdecl -arch=win64 ??_U@YAPEAX_KHPEBDH@Z(int64 long str long) MSVCRT_operator_new_dbg #
void * __ptr64 __cdecl operator new[](unsigned __int64,int,char const * __ptr64,int)
-@ cdecl -arch=win64 ??_V@YAXPEAX@Z(ptr) MSVCRT_operator_delete # void __cdecl operator
delete[](void * __ptr64)
-@ cdecl -arch=win64 __uncaught_exception(ptr) MSVCRT___uncaught_exception
-@ cdecl -arch=win64 ?_query_new_handler@@YAP6AH_K@ZXZ() MSVCRT__query_new_handler # int
(__cdecl*__cdecl _query_new_handler(void))(unsigned __int64)
-@ cdecl -arch=win64 ?_query_new_mode@@YAHXZ() MSVCRT__query_new_mode # int __cdecl
_query_new_mode(void)
-@ cdecl -arch=win64 ?_set_new_handler@@YAP6AH_K@ZP6AH0@Z@Z(ptr) MSVCRT__set_new_handler #
int (__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned __int64)))(unsigned
__int64)
-@ cdecl -arch=win64 ?_set_new_mode@@YAHH@Z(long) MSVCRT__set_new_mode # int __cdecl
_set_new_mode(int)
-@ cdecl -arch=win64
?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr)
MSVCRT__set_se_translator # void (__cdecl*__cdecl _set_se_translator(void
(__cdecl*)(unsigned int,struct _EXCEPTION_POINTERS * __ptr64)))(unsigned int,struct
_EXCEPTION_POINTERS * __ptr64)
-@ cdecl -arch=win64 ?before@type_info@@QEBAHAEBV1@@Z(ptr) MSVCRT_type_info_before #
public: int __cdecl type_info::before(class type_info const & __ptr64)const __ptr64
-@ cdecl -arch=win64 ?name@type_info@@QEBAPEBDXZ() MSVCRT_type_info_name # public: char
const * __ptr64 __cdecl type_info::name(void)const __ptr64
-@ cdecl -arch=win64 ?raw_name@type_info@@QEBAPEBDXZ() MSVCRT_type_info_raw_name # public:
char const * __ptr64 __cdecl type_info::raw_name(void)const __ptr64
-@ cdecl -arch=win64 ?set_new_handler@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_new_handler # void
(__cdecl*__cdecl set_new_handler(void (__cdecl*)(void)))(void)
-@ cdecl -arch=win64 ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_terminate # void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
-@ cdecl -arch=win64 ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_unexpected # void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
-@ cdecl -arch=win64 ?terminate@@YAXXZ() MSVCRT_terminate # void __cdecl terminate(void)
-@ cdecl -arch=win64 ?unexpected@@YAXXZ() MSVCRT_unexpected # void __cdecl
unexpected(void)
-@ cdecl -arch=win64 ?what@exception@@UEBAPEBDXZ() MSVCRT_what_exception # public: virtual
char const * __ptr64 __cdecl exception::what(void)const __ptr64
+@ cdecl -arch=win64 ??0__non_rtti_object@@QEAA@AEBV0@@Z(ptr) __non_rtti_object_copy_ctor
# public: __cdecl __non_rtti_object::__non_rtti_object(class __non_rtti_object const &
__ptr64) __ptr64
+@ cdecl -arch=win64 ??0__non_rtti_object@@QEAA@PEBD@Z(ptr) __non_rtti_object_ctor #
public: __cdecl __non_rtti_object::__non_rtti_object(char const * __ptr64) __ptr64
+@ cdecl -arch=win64 ??0bad_cast@@AAE@PBQBD@Z(ptr) bad_cast_ctor # private: __thiscall
bad_cast::bad_cast(char const near * const near *)
+@ cdecl -arch=win64 ??0bad_cast@@AEAA@PEBQEBD@Z(ptr) bad_cast_ctor # private: __cdecl
bad_cast::bad_cast(char const * __ptr64 const * __ptr64) __ptr64
+@ cdecl -arch=win64 ??0bad_cast@@QAE@ABQBD@Z(ptr) bad_cast_ctor # public: __thiscall
bad_cast::bad_cast(char const near * const near &)
+@ cdecl -arch=win64 ??0bad_cast@@QEAA@AEBQEBD@Z(ptr) bad_cast_ctor # public: __cdecl
bad_cast::bad_cast(char const * __ptr64 const & __ptr64) __ptr64
+@ cdecl -arch=win64 ??0bad_cast@@QEAA@AEBV0@@Z(ptr) bad_cast_copy_ctor # public: __cdecl
bad_cast::bad_cast(class bad_cast const & __ptr64) __ptr64
+@ cdecl -arch=win64 ??0bad_cast@@QEAA@PEBD@Z(ptr) bad_cast_ctor_charptr # public: __cdecl
bad_cast::bad_cast(char const * __ptr64) __ptr64
+@ cdecl -arch=win64 ??0bad_typeid@@QEAA@AEBV0@@Z(ptr) bad_typeid_copy_ctor # public:
__cdecl bad_typeid::bad_typeid(class bad_typeid const & __ptr64) __ptr64
+@ cdecl -arch=win64 ??0bad_typeid@@QEAA@PEBD@Z(ptr) bad_typeid_ctor # public: __cdecl
bad_typeid::bad_typeid(char const * __ptr64) __ptr64
+@ cdecl -arch=win64 ??0exception@@QEAA@AEBQEBD@Z(ptr) exception_ctor # public: __cdecl
exception::exception(char const * __ptr64 const & __ptr64) __ptr64
+@ cdecl -arch=win64 ??0exception@@QEAA@AEBQEBDH@Z(ptr long) exception_ctor_noalloc #
public: __cdecl exception::exception(char const * __ptr64 const & __ptr64,int)
__ptr64
+@ cdecl -arch=win64 ??0exception@@QEAA@AEBV0@@Z(ptr) exception_copy_ctor # public:
__cdecl exception::exception(class exception const & __ptr64) __ptr64
+@ cdecl -arch=win64 ??0exception@@QEAA@XZ() exception_default_ctor # public: __cdecl
exception::exception(void) __ptr64
+@ cdecl -arch=win64 ??1__non_rtti_object@@UEAA@XZ() __non_rtti_object_dtor # public:
virtual __cdecl __non_rtti_object::~__non_rtti_object(void) __ptr64
+@ cdecl -arch=win64 ??1bad_cast@@UEAA@XZ() bad_cast_dtor # public: virtual __cdecl
bad_cast::~bad_cast(void) __ptr64
+@ cdecl -arch=win64 ??1bad_typeid@@UEAA@XZ() bad_typeid_dtor # public: virtual __cdecl
bad_typeid::~bad_typeid(void) __ptr64
+@ cdecl -arch=win64 ??1exception@@UEAA@XZ() exception_dtor # public: virtual __cdecl
exception::~exception(void) __ptr64
+@ cdecl -arch=win64 ??1type_info@@UEAA@XZ() type_info_dtor # public: virtual __cdecl
type_info::~type_info(void) __ptr64
+@ cdecl -arch=win64 ??2@YAPEAX_K@Z(double) operator_new # void * __ptr64 __cdecl operator
new(unsigned __int64)
+@ cdecl -arch=win64 ??2@YAPEAX_KHPEBDH@Z(int64 long str long) operator_new_dbg # void *
__ptr64 __cdecl operator new(unsigned __int64,int,char const * __ptr64,int)
+@ cdecl -arch=win64 ??3@YAXPEAX@Z(ptr) operator_delete # void __cdecl operator
delete(void * __ptr64)
+@ cdecl -arch=win64 ??4__non_rtti_object@@QEAAAEAV0@AEBV0@@Z(ptr)
__non_rtti_object_opequals # public: class __non_rtti_object & __ptr64 __cdecl
__non_rtti_object::operator=(class __non_rtti_object const & __ptr64) __ptr64
+@ cdecl -arch=win64 ??4bad_cast@@QEAAAEAV0@AEBV0@@Z(ptr) bad_cast_opequals # public:
class bad_cast & __ptr64 __cdecl bad_cast::operator=(class bad_cast const &
__ptr64) __ptr64
+@ cdecl -arch=win64 ??4bad_typeid@@QEAAAEAV0@AEBV0@@Z(ptr) bad_typeid_opequals # public:
class bad_typeid & __ptr64 __cdecl bad_typeid::operator=(class bad_typeid const &
__ptr64) __ptr64
+@ cdecl -arch=win64 ??4exception@@QEAAAEAV0@AEBV0@@Z(ptr) exception_opequals # public:
class exception & __ptr64 __cdecl exception::operator=(class exception const &
__ptr64) __ptr64
+@ cdecl -arch=win64 ??8type_info@@QEBAHAEBV0@@Z(ptr) type_info_opequals_equals # public:
int __cdecl type_info::operator==(class type_info const & __ptr64)const __ptr64
+@ cdecl -arch=win64 ??9type_info@@QEBAHAEBV0@@Z(ptr) type_info_opnot_equals # public: int
__cdecl type_info::operator!=(class type_info const & __ptr64)const __ptr64
+@ extern -arch=win64 ??_7__non_rtti_object@@6B@ __non_rtti_object_vtable # const
__non_rtti_object::`vftable'
+@ extern -arch=win64 ??_7bad_cast@@6B@ bad_cast_vtable # const bad_cast::`vftable'
+@ extern -arch=win64 ??_7bad_typeid@@6B@ bad_typeid_vtable # const
bad_typeid::`vftable'
+@ extern -arch=win64 ??_7exception@@6B@ exception_vtable # const
exception::`vftable'
+@ cdecl -arch=win64 ??_Fbad_cast@@QEAAXXZ() bad_cast_default_ctor # public: void __cdecl
bad_cast::`default constructor closure'(void) __ptr64
+@ cdecl -arch=win64 ??_Fbad_typeid@@QEAAXXZ() bad_typeid_default_ctor # public: void
__cdecl bad_typeid::`default constructor closure'(void) __ptr64
+@ cdecl -arch=win64 ??_U@YAPEAX_K@Z(long) operator_new # void * __ptr64 __cdecl operator
new[](unsigned __int64)
+@ cdecl -arch=win64 ??_U@YAPEAX_KHPEBDH@Z(int64 long str long) operator_new_dbg # void *
__ptr64 __cdecl operator new[](unsigned __int64,int,char const * __ptr64,int)
+@ cdecl -arch=win64 ??_V@YAXPEAX@Z(ptr) operator_delete # void __cdecl operator
delete[](void * __ptr64)
+@ cdecl -arch=win64 __uncaught_exception(ptr) __uncaught_exception
+@ cdecl -arch=win64 ?_query_new_handler@@YAP6AH_K@ZXZ() _query_new_handler # int
(__cdecl*__cdecl _query_new_handler(void))(unsigned __int64)
+@ cdecl -arch=win64 ?_query_new_mode@@YAHXZ() _query_new_mode # int __cdecl
_query_new_mode(void)
+@ cdecl -arch=win64 ?_set_new_handler@@YAP6AH_K@ZP6AH0@Z@Z(ptr) _set_new_handler # int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned __int64)))(unsigned __int64)
+@ cdecl -arch=win64 ?_set_new_mode@@YAHH@Z(long) _set_new_mode # int __cdecl
_set_new_mode(int)
+@ cdecl -arch=win64
?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr) _set_se_translator
# void (__cdecl*__cdecl _set_se_translator(void (__cdecl*)(unsigned int,struct
_EXCEPTION_POINTERS * __ptr64)))(unsigned int,struct _EXCEPTION_POINTERS * __ptr64)
+@ cdecl -arch=win64 ?before@type_info@@QEBAHAEBV1@@Z(ptr) type_info_before # public: int
__cdecl type_info::before(class type_info const & __ptr64)const __ptr64
+@ cdecl -arch=win64 ?name@type_info@@QEBAPEBDXZ() type_info_name # public: char const *
__ptr64 __cdecl type_info::name(void)const __ptr64
+@ cdecl -arch=win64 ?raw_name@type_info@@QEBAPEBDXZ() type_info_raw_name # public: char
const * __ptr64 __cdecl type_info::raw_name(void)const __ptr64
+@ cdecl -arch=win64 ?set_new_handler@@YAP6AXXZP6AXXZ@Z(ptr) set_new_handler # void
(__cdecl*__cdecl set_new_handler(void (__cdecl*)(void)))(void)
+@ cdecl -arch=win64 ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) set_terminate # void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
+@ cdecl -arch=win64 ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) set_unexpected # void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
+@ cdecl -arch=win64 ?terminate@@YAXXZ() terminate # void __cdecl terminate(void)
+@ cdecl -arch=win64 ?unexpected@@YAXXZ() unexpected # void __cdecl unexpected(void)
+@ cdecl -arch=win64 ?what@exception@@UEBAPEBDXZ() exception_what # public: virtual char
const * __ptr64 __cdecl exception::what(void)const __ptr64
# **************** ARM C++ functions ****************
-@ cdecl -arch=arm ??0__non_rtti_object@@QAA@ABV0@@Z() MSVCRT___non_rtti_object_copy_ctor
# public: __cdecl __non_rtti_object::__non_rtti_object(class __non_rtti_object const
&)
-@ cdecl -arch=arm ??0__non_rtti_object@@QAA@PBD@Z() MSVCRT___non_rtti_object_ctor
#public: __cdecl __non_rtti_object::__non_rtti_object(char const *)
-@ cdecl -arch=arm ??0bad_cast@@AAA@PBQBD@Z() MSVCRT_bad_cast_ctor # private: __cdecl
bad_cast::bad_cast(char const * const *)
-@ cdecl -arch=arm ??0bad_cast@@QAA@ABV0@@Z() MSVCRT_bad_cast_copy_ctor # public: __cdecl
bad_cast::bad_cast(class bad_cast const &)
-@ cdecl -arch=arm ??0bad_cast@@QAA@PBD@Z() MSVCRT_bad_cast_ctor # public: __cdecl
bad_cast::bad_cast(char const *)
-@ cdecl -arch=arm ??0bad_typeid@@QAA@ABV0@@Z() MSVCRT_bad_typeid_copy_ctor # public:
__cdecl bad_typeid::bad_typeid(class bad_typeid const &)
-@ cdecl -arch=arm ??0bad_typeid@@QAA@PBD@Z() MSVCRT_bad_typeid_ctor # public: __cdecl
bad_typeid::bad_typeid(char const *)
-@ cdecl -arch=arm ??0exception@@QAA@ABQBD@Z() MSVCRT_exception_ctor # public: __cdecl
exception::exception(char const * const &)
-@ cdecl -arch=arm ??0exception@@QAA@ABQBDH@Z() MSVCRT_exception_ctor_noalloc # public:
__cdecl exception::exception(char const * const &,int)
-@ cdecl -arch=arm ??0exception@@QAA@ABV0@@Z() MSVCRT_exception_copy_ctor # public:
__cdecl exception::exception(class exception const &)
-@ cdecl -arch=arm ??0exception@@QAA@XZ() MSVCRT_exception_default_ctor # public: __cdecl
exception::exception(void)
-@ cdecl -arch=arm ??1__non_rtti_object@@UAA@XZ() MSVCRT___non_rtti_object_dtor # public:
virtual __cdecl __non_rtti_object::~__non_rtti_object(void)
-@ cdecl -arch=arm ??1bad_cast@@UAA@XZ() MSVCRT_bad_cast_dtor # public: virtual __cdecl
bad_cast::~bad_cast(void)
-@ cdecl -arch=arm ??1bad_typeid@@UAA@XZ() MSVCRT_bad_typeid_dtor # public: virtual
__cdecl bad_typeid::~bad_typeid(void)
-@ cdecl -arch=arm ??1exception@@UAA@XZ() MSVCRT_exception_dtor # public: virtual __cdecl
exception::~exception(void)
-@ cdecl -arch=arm ??1type_info@@UAA@XZ() MSVCRT_type_info_dtor # public: virtual __cdecl
type_info::~type_info(void)
-@ cdecl -arch=arm ??2@YAPAXI@Z() MSVCRT_operator_new # void * __cdecl operator
new(unsigned int)
-@ cdecl -arch=arm ??2@YAPAXIHPBDH@Z() MSVCRT_operator_new_dbg # void * __cdecl operator
new(unsigned int,int,char const *,int)
-@ cdecl -arch=arm ??3@YAXPAX@Z() MSVCRT_operator_delete # void __cdecl operator
delete(void *)
-@ cdecl -arch=arm ??4__non_rtti_object@@QAAAAV0@ABV0@@Z()
MSVCRT___non_rtti_object_opequals # public: class __non_rtti_object & __cdecl
__non_rtti_object::operator=(class __non_rtti_object const &)
-@ cdecl -arch=arm ??4bad_cast@@QAAAAV0@ABV0@@Z() MSVCRT_bad_cast_opequals # public: class
bad_cast & __cdecl bad_cast::operator=(class bad_cast const &)
-@ cdecl -arch=arm ??4bad_typeid@@QAAAAV0@ABV0@@Z() MSVCRT_bad_typeid_opequals # public:
class bad_typeid & __cdecl bad_typeid::operator=(class bad_typeid const &)
-@ cdecl -arch=arm ??4exception@@QAAAAV0@ABV0@@Z() MSVCRT_exception_opequals # public:
class exception & __cdecl exception::operator=(class exception const &)
-@ cdecl -arch=arm ??8type_info@@QBAHABV0@@Z() MSVCRT_type_info_opequals_equals # public:
int __cdecl type_info::operator==(class type_info const &)const
-@ cdecl -arch=arm ??9type_info@@QBAHABV0@@Z() MSVCRT_type_info_opnot_equals # public: int
__cdecl type_info::operator!=(class type_info const &)const
-@ extern -arch=arm ??_7__non_rtti_object@@6B@ MSVCRT___non_rtti_object_vtable # const
__non_rtti_object::`vftable'
-@ extern -arch=arm ??_7bad_cast@@6B@ MSVCRT_bad_cast_vtable # const
bad_cast::`vftable'
-@ extern -arch=arm ??_7bad_typeid@@6B@ MSVCRT_bad_typeid_vtable # const
bad_typeid::`vftable'
-@ extern -arch=arm ??_7exception@@6B@ MSVCRT_exception_vtable # const
exception::`vftable'
-@ cdecl -arch=arm ??_Fbad_cast@@QAAXXZ() MSVCRT_bad_cast_default_ctor # public: void
__cdecl bad_cast::`default constructor closure'(void)
-@ cdecl -arch=arm ??_Fbad_typeid@@QAAXXZ() MSVCRT_bad_typeid_default_ctor # public: void
__cdecl bad_typeid::`default constructor closure'(void)
-@ cdecl -arch=arm ??_U@YAPAXI@Z() MSVCRT_operator_new # void * __cdecl operator
new[](unsigned int)
-@ cdecl -arch=arm ??_U@YAPAXIHPBDH@Z() MSVCRT_operator_new_dbg # void * __cdecl operator
new[](unsigned int,int,char const *,int)
-@ cdecl -arch=arm ??_V@YAXPAX@Z() MSVCRT_operator_delete # void __cdecl operator
delete[](void *)
+@ cdecl -arch=arm ??0__non_rtti_object@@QAA@ABV0@@Z() __non_rtti_object_copy_ctor #
public: __cdecl __non_rtti_object::__non_rtti_object(class __non_rtti_object const
&)
+@ cdecl -arch=arm ??0__non_rtti_object@@QAA@PBD@Z() __non_rtti_object_ctor #public:
__cdecl __non_rtti_object::__non_rtti_object(char const *)
+@ cdecl -arch=arm ??0bad_cast@@AAA@PBQBD@Z() bad_cast_ctor # private: __cdecl
bad_cast::bad_cast(char const * const *)
+@ cdecl -arch=arm ??0bad_cast@@QAA@ABV0@@Z() bad_cast_copy_ctor # public: __cdecl
bad_cast::bad_cast(class bad_cast const &)
+@ cdecl -arch=arm ??0bad_cast@@QAA@PBD@Z() bad_cast_ctor # public: __cdecl
bad_cast::bad_cast(char const *)
+@ cdecl -arch=arm ??0bad_typeid@@QAA@ABV0@@Z() bad_typeid_copy_ctor # public: __cdecl
bad_typeid::bad_typeid(class bad_typeid const &)
+@ cdecl -arch=arm ??0bad_typeid@@QAA@PBD@Z() bad_typeid_ctor # public: __cdecl
bad_typeid::bad_typeid(char const *)
+@ cdecl -arch=arm ??0exception@@QAA@ABQBD@Z() exception_ctor # public: __cdecl
exception::exception(char const * const &)
+@ cdecl -arch=arm ??0exception@@QAA@ABQBDH@Z() exception_ctor_noalloc # public: __cdecl
exception::exception(char const * const &,int)
+@ cdecl -arch=arm ??0exception@@QAA@ABV0@@Z() exception_copy_ctor # public: __cdecl
exception::exception(class exception const &)
+@ cdecl -arch=arm ??0exception@@QAA@XZ() exception_default_ctor # public: __cdecl
exception::exception(void)
+@ cdecl -arch=arm ??1__non_rtti_object@@UAA@XZ() __non_rtti_object_dtor # public: virtual
__cdecl __non_rtti_object::~__non_rtti_object(void)
+@ cdecl -arch=arm ??1bad_cast@@UAA@XZ() bad_cast_dtor # public: virtual __cdecl
bad_cast::~bad_cast(void)
+@ cdecl -arch=arm ??1bad_typeid@@UAA@XZ() bad_typeid_dtor # public: virtual __cdecl
bad_typeid::~bad_typeid(void)
+@ cdecl -arch=arm ??1exception@@UAA@XZ() exception_dtor # public: virtual __cdecl
exception::~exception(void)
+@ cdecl -arch=arm ??1type_info@@UAA@XZ() type_info_dtor # public: virtual __cdecl
type_info::~type_info(void)
+@ cdecl -arch=arm ??2@YAPAXI@Z() operator_new # void * __cdecl operator new(unsigned
int)
+@ cdecl -arch=arm ??2@YAPAXIHPBDH@Z() operator_new_dbg # void * __cdecl operator
new(unsigned int,int,char const *,int)
+@ cdecl -arch=arm ??3@YAXPAX@Z() operator_delete # void __cdecl operator delete(void *)
+@ cdecl -arch=arm ??4__non_rtti_object@@QAAAAV0@ABV0@@Z() __non_rtti_object_opequals #
public: class __non_rtti_object & __cdecl __non_rtti_object::operator=(class
__non_rtti_object const &)
+@ cdecl -arch=arm ??4bad_cast@@QAAAAV0@ABV0@@Z() bad_cast_opequals # public: class
bad_cast & __cdecl bad_cast::operator=(class bad_cast const &)
+@ cdecl -arch=arm ??4bad_typeid@@QAAAAV0@ABV0@@Z() bad_typeid_opequals # public: class
bad_typeid & __cdecl bad_typeid::operator=(class bad_typeid const &)
+@ cdecl -arch=arm ??4exception@@QAAAAV0@ABV0@@Z() exception_opequals # public: class
exception & __cdecl exception::operator=(class exception const &)
+@ cdecl -arch=arm ??8type_info@@QBAHABV0@@Z() type_info_opequals_equals # public: int
__cdecl type_info::operator==(class type_info const &)const
+@ cdecl -arch=arm ??9type_info@@QBAHABV0@@Z() type_info_opnot_equals # public: int
__cdecl type_info::operator!=(class type_info const &)const
+@ extern -arch=arm ??_7__non_rtti_object@@6B@ __non_rtti_object_vtable # const
__non_rtti_object::`vftable'
+@ extern -arch=arm ??_7bad_cast@@6B@ bad_cast_vtable # const bad_cast::`vftable'
+@ extern -arch=arm ??_7bad_typeid@@6B@ bad_typeid_vtable # const
bad_typeid::`vftable'
+@ extern -arch=arm ??_7exception@@6B@ exception_vtable # const exception::`vftable'
+@ cdecl -arch=arm ??_Fbad_cast@@QAAXXZ() bad_cast_default_ctor # public: void __cdecl
bad_cast::`default constructor closure'(void)
+@ cdecl -arch=arm ??_Fbad_typeid@@QAAXXZ() bad_typeid_default_ctor # public: void __cdecl
bad_typeid::`default constructor closure'(void)
+@ cdecl -arch=arm ??_U@YAPAXI@Z() operator_new # void * __cdecl operator new[](unsigned
int)
+@ cdecl -arch=arm ??_U@YAPAXIHPBDH@Z() operator_new_dbg # void * __cdecl operator
new[](unsigned int,int,char const *,int)
+@ cdecl -arch=arm ??_V@YAXPAX@Z() operator_delete # void __cdecl operator delete[](void
*)
;@ cdecl -arch=arm _CallMemberFunction0()
;@ cdecl -arch=arm _CallMemberFunction1()
;@ cdecl -arch=arm _CallMemberFunction2()
@@ -164,19 +164,19 @@
;@ cdecl -arch=arm __ExceptionPtrRethrow()
;@ cdecl -arch=arm __ExceptionPtrSwap()
;@ cdecl -arch=arm __ExceptionPtrToBool()
-@ cdecl -arch=arm __uncaught_exception(ptr) MSVCRT___uncaught_exception
-@ cdecl -arch=arm ?_query_new_handler@@YAP6AHI@ZXZ() MSVCRT__query_new_handler # int
(__cdecl*__cdecl _query_new_handler(void))(unsigned int)
-@ cdecl -arch=arm ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z() MSVCRT__set_new_handler # int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
-@ cdecl -arch=arm ?_set_new_mode@@YAHH@Z() MSVCRT__set_new_mode # int __cdecl
_set_new_mode(int)
-@ cdecl -arch=arm ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z()
MSVCRT__set_se_translator # void (__cdecl*__cdecl _set_se_translator(void
(__cdecl*)(unsigned int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct
_EXCEPTION_POINTERS *)
-@ cdecl -arch=arm ?before@type_info@@QBAHABV1@@Z() MSVCRT_type_info_before # public: int
__cdecl type_info::before(class type_info const &)const
-@ cdecl -arch=arm ?name@type_info@@QBAPBDXZ() MSVCRT_type_info_name # public: char const
* __cdecl type_info::name(void)const
-@ cdecl -arch=arm ?raw_name@type_info@@QBAPBDXZ() MSVCRT_type_info_raw_name # public:
char const * __cdecl type_info::raw_name(void)const
-@ cdecl -arch=arm ?set_terminate@@YAP6AXXZP6AXXZ@Z() MSVCRT_set_terminate # void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
-@ cdecl -arch=arm ?set_unexpected@@YAP6AXXZP6AXXZ@Z() MSVCRT_set_unexpected # void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
-@ cdecl -arch=arm ?terminate@@YAXXZ() MSVCRT_terminate # void __cdecl terminate(void)
-@ cdecl -arch=arm ?unexpected@@YAXXZ() MSVCRT_unexpected # void __cdecl
unexpected(void)
-@ cdecl -arch=arm ?what@exception@@UBAPBDXZ() MSVCRT_what_exception # public: virtual
char const * __cdecl exception::what(void)const
+@ cdecl -arch=arm __uncaught_exception(ptr) __uncaught_exception
+@ cdecl -arch=arm ?_query_new_handler@@YAP6AHI@ZXZ() _query_new_handler # int
(__cdecl*__cdecl _query_new_handler(void))(unsigned int)
+@ cdecl -arch=arm ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z() _set_new_handler # int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
+@ cdecl -arch=arm ?_set_new_mode@@YAHH@Z() _set_new_mode # int __cdecl
_set_new_mode(int)
+@ cdecl -arch=arm ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z()
_set_se_translator # void (__cdecl*__cdecl _set_se_translator(void (__cdecl*)(unsigned
int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct _EXCEPTION_POINTERS *)
+@ cdecl -arch=arm ?before@type_info@@QBAHABV1@@Z() type_info_before # public: int __cdecl
type_info::before(class type_info const &)const
+@ cdecl -arch=arm ?name@type_info@@QBAPBDXZ() type_info_name # public: char const *
__cdecl type_info::name(void)const
+@ cdecl -arch=arm ?raw_name@type_info@@QBAPBDXZ() type_info_raw_name # public: char const
* __cdecl type_info::raw_name(void)const
+@ cdecl -arch=arm ?set_terminate@@YAP6AXXZP6AXXZ@Z() set_terminate # void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
+@ cdecl -arch=arm ?set_unexpected@@YAP6AXXZP6AXXZ@Z() set_unexpected # void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
+@ cdecl -arch=arm ?terminate@@YAXXZ() terminate # void __cdecl terminate(void)
+@ cdecl -arch=arm ?unexpected@@YAXXZ() unexpected # void __cdecl unexpected(void)
+@ cdecl -arch=arm ?what@exception@@UBAPBDXZ() exception_what # public: virtual char const
* __cdecl exception::what(void)const
# **************** Common functions ****************
@@ -248,9 +248,9 @@
@ cdecl -arch=i386 __CxxRegisterExceptionObject()
@ cdecl -arch=i386 __CxxUnregisterExceptionObject()
@ cdecl __DestructExceptionObject(ptr)
-@ cdecl __RTCastToVoid(ptr) MSVCRT___RTCastToVoid
-@ cdecl __RTDynamicCast(ptr long ptr ptr long) MSVCRT___RTDynamicCast
-@ cdecl __RTtypeid(ptr) MSVCRT___RTtypeid
+@ cdecl __RTCastToVoid(ptr) __RTCastToVoid
+@ cdecl __RTDynamicCast(ptr long ptr ptr long) __RTDynamicCast
+@ cdecl __RTtypeid(ptr) __RTtypeid
@ cdecl __STRINGTOLD(ptr ptr str long)
@ cdecl ___lc_codepage_func()
@ cdecl ___lc_collate_cp_func()
diff --git a/dll/win32/msvcrt20/msvcrt20.spec b/dll/win32/msvcrt20/msvcrt20.spec
index 8ace935a4db..0e499d055a1 100644
--- a/dll/win32/msvcrt20/msvcrt20.spec
+++ b/dll/win32/msvcrt20/msvcrt20.spec
@@ -77,10 +77,10 @@
@ stub ??1streambuf@@UAE@XZ #
@ stub ??1strstream@@UAE@XZ #
@ stub ??1strstreambuf@@UAE@XZ #
-@ cdecl -arch=win32 ??2@YAPAXI@Z(long) MSVCRT_operator_new
-@ cdecl -arch=win64 ??2@YAPEAX_K@Z(double) MSVCRT_operator_new
-@ cdecl -arch=win32 ??3@YAXPAX@Z(ptr) MSVCRT_operator_delete
-@ cdecl -arch=win64 ??3@YAXPEAX@Z(ptr) MSVCRT_operator_delete
+@ cdecl -arch=win32 ??2@YAPAXI@Z(long) operator_new
+@ cdecl -arch=win64 ??2@YAPEAX_K@Z(double) operator_new
+@ cdecl -arch=win32 ??3@YAXPAX@Z(ptr) operator_delete
+@ cdecl -arch=win64 ??3@YAXPEAX@Z(ptr) operator_delete
@ stub ??4Iostream_init@@QAEAAV0@ABV0@@Z #
@ stub ??4filebuf@@QAEAAV0@ABV0@@Z #
@ stub ??4fstream@@QAEAAV0@AAV0@@Z #
@@ -226,11 +226,11 @@
@ stub ??_Gstreambuf@@UAEPAXI@Z #
@ stub ??_Gstrstream@@UAEPAXI@Z #
@ stub ??_Gstrstreambuf@@UAEPAXI@Z #
-@ cdecl ?_query_new_handler@@YAP6AHI@ZXZ() MSVCRT__query_new_handler
-@ cdecl -i386 ?_query_new_mode@@YAHXZ() MSVCRT__query_new_mode
-@ cdecl ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) MSVCRT__set_new_handler
-@ cdecl ?_set_new_mode@@YAHH@Z(long) MSVCRT__set_new_mode
-@ cdecl ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr)
MSVCRT__set_se_translator
+@ cdecl ?_query_new_handler@@YAP6AHI@ZXZ() _query_new_handler
+@ cdecl -i386 ?_query_new_mode@@YAHXZ() _query_new_mode
+@ cdecl ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) _set_new_handler
+@ cdecl ?_set_new_mode@@YAHH@Z(long) _set_new_mode
+@ cdecl ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr)
_set_se_translator
@ stub ?adjustfield@ios@@2JB #
@ stub ?allocate@streambuf@@IAEHXZ #
@ stub ?attach@filebuf@@QAEPAV1@H@Z #
@@ -365,8 +365,8 @@
@ stub ?seekp@ostream@@QAEAAV1@J@Z #
@ stub ?seekp@ostream@@QAEAAV1@JW4seek_dir@ios@@@Z #
@ stub ?seekpos@streambuf@@UAEJJH@Z #
-@ cdecl ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_terminate
-@ cdecl ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_unexpected
+@ cdecl ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) set_terminate
+@ cdecl ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) set_unexpected
@ stub ?setb@streambuf@@IAEXPAD0H@Z #
@ stub ?setbuf@filebuf@@UAEPAVstreambuf@@PADH@Z #
@ stub ?setbuf@fstream@@QAEPAVstreambuf@@PADH@Z #
@@ -409,7 +409,7 @@
@ stub ?sync_with_stdio@ios@@SAXXZ #
@ stub ?tellg@istream@@QAEJXZ #
@ stub ?tellp@ostream@@QAEJXZ #
-@ cdecl ?terminate@@YAXXZ() MSVCRT_terminate
+@ cdecl ?terminate@@YAXXZ() terminate
@ stub ?text@filebuf@@2HB #
@ stub ?tie@ios@@QAEPAVostream@@PAV2@@Z #
@ stub ?tie@ios@@QBEPAVostream@@XZ #
@@ -418,7 +418,7 @@
@ stub ?underflow@filebuf@@UAEHXZ #
@ stub ?underflow@stdiobuf@@UAEHXZ #
@ stub ?underflow@strstreambuf@@UAEHXZ #
-@ cdecl ?unexpected@@YAXXZ() MSVCRT_unexpected
+@ cdecl ?unexpected@@YAXXZ() unexpected
@ stub ?unlock@ios@@QAAXXZ #
@ stub ?unlock@streambuf@@QAEXXZ #
@ stub ?unlockbuf@ios@@QAAXXZ #
diff --git a/dll/win32/msvcrt40/msvcrt40.spec b/dll/win32/msvcrt40/msvcrt40.spec
index f60e59b6098..6e005a3f85d 100644
--- a/dll/win32/msvcrt40/msvcrt40.spec
+++ b/dll/win32/msvcrt40/msvcrt40.spec
@@ -1,14 +1,14 @@
@ stub ??0Iostream_init@@QAE@AAVios@@H@Z
@ stub ??0Iostream_init@@QAE@XZ
-@ cdecl -i386 ??0__non_rtti_object@@QAE@ABV0@@Z(ptr) MSVCRT___non_rtti_object_copy_ctor
-@ cdecl -i386 ??0__non_rtti_object@@QAE@PBD@Z(ptr) MSVCRT___non_rtti_object_ctor
-@ cdecl -i386 ??0bad_cast@@QAE@ABQBD@Z(ptr) MSVCRT_bad_cast_ctor
-@ cdecl -i386 ??0bad_cast@@QAE@ABV0@@Z(ptr) MSVCRT_bad_cast_copy_ctor
-@ cdecl -i386 ??0bad_typeid@@QAE@ABV0@@Z(ptr) MSVCRT_bad_typeid_copy_ctor
-@ cdecl -i386 ??0bad_typeid@@QAE@PBD@Z(ptr) MSVCRT_bad_typeid_ctor
-@ cdecl -i386 ??0exception@@QAE@ABQBD@Z(ptr) MSVCRT_exception_ctor
-@ cdecl -i386 ??0exception@@QAE@ABV0@@Z(ptr) MSVCRT_exception_copy_ctor
-@ cdecl -i386 ??0exception@@QAE@XZ() MSVCRT_exception_default_ctor
+@ cdecl -i386 ??0__non_rtti_object@@QAE@ABV0@@Z(ptr) __non_rtti_object_copy_ctor
+@ cdecl -i386 ??0__non_rtti_object@@QAE@PBD@Z(ptr) __non_rtti_object_ctor
+@ cdecl -i386 ??0bad_cast@@QAE@ABQBD@Z(ptr) bad_cast_ctor
+@ cdecl -i386 ??0bad_cast@@QAE@ABV0@@Z(ptr) bad_cast_copy_ctor
+@ cdecl -i386 ??0bad_typeid@@QAE@ABV0@@Z(ptr) bad_typeid_copy_ctor
+@ cdecl -i386 ??0bad_typeid@@QAE@PBD@Z(ptr) bad_typeid_ctor
+@ cdecl -i386 ??0exception@@QAE@ABQBD@Z(ptr) exception_ctor
+@ cdecl -i386 ??0exception@@QAE@ABV0@@Z(ptr) exception_copy_ctor
+@ cdecl -i386 ??0exception@@QAE@XZ() exception_default_ctor
@ stub ??0filebuf@@QAE@ABV0@@Z
@ stub ??0filebuf@@QAE@H@Z
@ stub ??0filebuf@@QAE@HPADH@Z
@@ -70,10 +70,10 @@
@ stub ??0strstreambuf@@QAE@PADH0@Z
@ stub ??0strstreambuf@@QAE@XZ
@ stub ??1Iostream_init@@QAE@XZ
-@ cdecl -i386 ??1__non_rtti_object@@UAE@XZ() MSVCRT___non_rtti_object_dtor
-@ cdecl -i386 ??1bad_cast@@UAE@XZ() MSVCRT_bad_cast_dtor
-@ cdecl -i386 ??1bad_typeid@@UAE@XZ() MSVCRT_bad_typeid_dtor
-@ cdecl -i386 ??1exception@@UAE@XZ() MSVCRT_exception_dtor
+@ cdecl -i386 ??1__non_rtti_object@@UAE@XZ() __non_rtti_object_dtor
+@ cdecl -i386 ??1bad_cast@@UAE@XZ() bad_cast_dtor
+@ cdecl -i386 ??1bad_typeid@@UAE@XZ() bad_typeid_dtor
+@ cdecl -i386 ??1exception@@UAE@XZ() exception_dtor
@ stub ??1filebuf@@UAE@XZ
@ stub ??1fstream@@UAE@XZ
@ stub ??1ifstream@@UAE@XZ
@@ -92,16 +92,16 @@
@ stub ??1streambuf@@UAE@XZ
@ stub ??1strstream@@UAE@XZ
@ stub ??1strstreambuf@@UAE@XZ
-@ cdecl -i386 ??1type_info@@UAE@XZ() MSVCRT_type_info_dtor
-@ cdecl -arch=win32 ??2@YAPAXI@Z(long) MSVCRT_operator_new
-@ cdecl -arch=win64 ??2@YAPEAX_K@Z(double) MSVCRT_operator_new
-@ cdecl -arch=win32 ??3@YAXPAX@Z(ptr) MSVCRT_operator_delete
-@ cdecl -arch=win64 ??3@YAXPEAX@Z(ptr) MSVCRT_operator_delete
+@ cdecl -i386 ??1type_info@@UAE@XZ() type_info_dtor
+@ cdecl -arch=win32 ??2@YAPAXI@Z(long) operator_new
+@ cdecl -arch=win64 ??2@YAPEAX_K@Z(double) operator_new
+@ cdecl -arch=win32 ??3@YAXPAX@Z(ptr) operator_delete
+@ cdecl -arch=win64 ??3@YAXPEAX@Z(ptr) operator_delete
@ stub ??4Iostream_init@@QAEAAV0@ABV0@@Z
-@ cdecl -i386 ??4__non_rtti_object@@QAEAAV0@ABV0@@Z(ptr)
MSVCRT___non_rtti_object_opequals
-@ cdecl -i386 ??4bad_cast@@QAEAAV0@ABV0@@Z(ptr) MSVCRT_bad_cast_opequals
-@ cdecl -i386 ??4bad_typeid@@QAEAAV0@ABV0@@Z(ptr) MSVCRT_bad_typeid_opequals
-@ cdecl -i386 ??4exception@@QAEAAV0@ABV0@@Z(ptr) MSVCRT_exception_opequals
+@ cdecl -i386 ??4__non_rtti_object@@QAEAAV0@ABV0@@Z(ptr) __non_rtti_object_opequals
+@ cdecl -i386 ??4bad_cast@@QAEAAV0@ABV0@@Z(ptr) bad_cast_opequals
+@ cdecl -i386 ??4bad_typeid@@QAEAAV0@ABV0@@Z(ptr) bad_typeid_opequals
+@ cdecl -i386 ??4exception@@QAEAAV0@ABV0@@Z(ptr) exception_opequals
@ stub ??4filebuf@@QAEAAV0@ABV0@@Z
@ stub ??4fstream@@QAEAAV0@AAV0@@Z
@ stub ??4ifstream@@QAEAAV0@ABV0@@Z
@@ -165,13 +165,13 @@
@ stub ??6ostream@@QAEAAV0@PBE@Z
@ stub ??6ostream@@QAEAAV0@PBX@Z
@ stub ??7ios@@QBEHXZ
-@ cdecl -i386 ??8type_info@@QBEHABV0@@Z(ptr) MSVCRT_type_info_opequals_equals
-@ cdecl -i386 ??9type_info@@QBEHABV0@@Z(ptr) MSVCRT_type_info_opnot_equals
+@ cdecl -i386 ??8type_info@@QBEHABV0@@Z(ptr) type_info_opequals_equals
+@ cdecl -i386 ??9type_info@@QBEHABV0@@Z(ptr) type_info_opnot_equals
@ stub ??Bios@@QBEPAXXZ
-@ extern -i386 ??_7__non_rtti_object@@6B@ MSVCRT___non_rtti_object_vtable
-@ extern -i386 ??_7bad_cast@@6B@ MSVCRT_bad_cast_vtable
-@ extern -i386 ??_7bad_typeid@@6B@ MSVCRT_bad_typeid_vtable
-@ extern -i386 ??_7exception@@6B@ MSVCRT_exception_vtable
+@ extern -i386 ??_7__non_rtti_object@@6B@ __non_rtti_object_vtable
+@ extern -i386 ??_7bad_cast@@6B@ bad_cast_vtable
+@ extern -i386 ??_7bad_typeid@@6B@ bad_typeid_vtable
+@ extern -i386 ??_7exception@@6B@ exception_vtable
@ stub ??_7filebuf@@6B@
@ stub ??_7fstream@@6B@
@ stub ??_7ifstream@@6B@
@@ -219,10 +219,10 @@
@ stub ??_Dstdiostream@@QAEXXZ
@ stub ??_Dstrstream@@QAEXXZ
@ stub ??_EIostream_init@@QAEPAXI@Z
-@ cdecl -i386 ??_E__non_rtti_object@@UAEPAXI@Z(long)
MSVCRT___non_rtti_object_vector_dtor
-@ cdecl -i386 ??_Ebad_cast@@UAEPAXI@Z(long) MSVCRT_bad_cast_vector_dtor
-@ cdecl -i386 ??_Ebad_typeid@@UAEPAXI@Z(long) MSVCRT_bad_typeid_vector_dtor
-@ cdecl -i386 ??_Eexception@@UAEPAXI@Z(long) MSVCRT_exception_vector_dtor
+@ cdecl -i386 ??_E__non_rtti_object@@UAEPAXI@Z(long) __non_rtti_object_vector_dtor
+@ cdecl -i386 ??_Ebad_cast@@UAEPAXI@Z(long) bad_cast_vector_dtor
+@ cdecl -i386 ??_Ebad_typeid@@UAEPAXI@Z(long) bad_typeid_vector_dtor
+@ cdecl -i386 ??_Eexception@@UAEPAXI@Z(long) exception_vector_dtor
@ stub ??_Efilebuf@@UAEPAXI@Z
@ stub ??_Efstream@@UAEPAXI@Z
@ stub ??_Eifstream@@UAEPAXI@Z
@@ -242,10 +242,10 @@
@ stub ??_Estrstream@@UAEPAXI@Z
@ stub ??_Estrstreambuf@@UAEPAXI@Z
@ stub ??_GIostream_init@@QAEPAXI@Z
-@ cdecl -i386 ??_G__non_rtti_object@@UAEPAXI@Z(long)
MSVCRT___non_rtti_object_scalar_dtor
-@ cdecl -i386 ??_Gbad_cast@@UAEPAXI@Z(long) MSVCRT_bad_cast_scalar_dtor
-@ cdecl -i386 ??_Gbad_typeid@@UAEPAXI@Z(long) MSVCRT_bad_typeid_scalar_dtor
-@ cdecl -i386 ??_Gexception@@UAEPAXI@Z(long) MSVCRT_exception_scalar_dtor
+@ cdecl -i386 ??_G__non_rtti_object@@UAEPAXI@Z(long) __non_rtti_object_scalar_dtor
+@ cdecl -i386 ??_Gbad_cast@@UAEPAXI@Z(long) bad_cast_scalar_dtor
+@ cdecl -i386 ??_Gbad_typeid@@UAEPAXI@Z(long) bad_typeid_scalar_dtor
+@ cdecl -i386 ??_Gexception@@UAEPAXI@Z(long) exception_scalar_dtor
@ stub ??_Gfilebuf@@UAEPAXI@Z
@ stub ??_Gfstream@@UAEPAXI@Z
@ stub ??_Gifstream@@UAEPAXI@Z
@@ -264,11 +264,11 @@
@ stub ??_Gstreambuf@@UAEPAXI@Z
@ stub ??_Gstrstream@@UAEPAXI@Z
@ stub ??_Gstrstreambuf@@UAEPAXI@Z
-@ cdecl ?_query_new_handler@@YAP6AHI@ZXZ() MSVCRT__query_new_handler
-@ cdecl -i386 ?_query_new_mode@@YAHXZ() MSVCRT__query_new_mode
-@ cdecl ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) MSVCRT__set_new_handler
-@ cdecl ?_set_new_mode@@YAHH@Z(long) MSVCRT__set_new_mode
-@ cdecl ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr)
MSVCRT__set_se_translator
+@ cdecl ?_query_new_handler@@YAP6AHI@ZXZ() _query_new_handler
+@ cdecl -i386 ?_query_new_mode@@YAHXZ() _query_new_mode
+@ cdecl ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z(ptr) _set_new_handler
+@ cdecl ?_set_new_mode@@YAHH@Z(long) _set_new_mode
+@ cdecl ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z(ptr)
_set_se_translator
@ stub ?adjustfield@ios@@2JB
@ stub ?allocate@streambuf@@IAEHXZ
@ stub ?attach@filebuf@@QAEPAV1@H@Z
@@ -278,7 +278,7 @@
@ stub ?bad@ios@@QBEHXZ
@ stub ?base@streambuf@@IBEPADXZ
@ stub ?basefield@ios@@2JB
-@ cdecl -i386 ?before@type_info@@QBEHABV1@@Z(ptr) MSVCRT_type_info_before
+@ cdecl -i386 ?before@type_info@@QBEHABV1@@Z(ptr) type_info_before
@ stub ?binary@filebuf@@2HB
@ stub ?bitalloc@ios@@SAJXZ
@ stub ?blen@streambuf@@IBEHXZ
@@ -356,7 +356,7 @@
@ stub ?lockc@ios@@KAXXZ
@ stub ?lockptr@ios@@IAEPAU_CRT_CRITICAL_SECTION@@XZ
@ stub ?lockptr@streambuf@@IAEPAU_CRT_CRITICAL_SECTION@@XZ
-@ cdecl -i386 ?name@type_info@@QBEPBDXZ() MSVCRT_type_info_name
+@ cdecl -i386 ?name@type_info@@QBEPBDXZ() type_info_name
@ stub ?oct@@YAAAVios@@AAV1@@Z
@ stub ?open@filebuf@@QAEPAV1@PBDHH@Z
@ stub ?open@fstream@@QAEXPBDHH@Z
@@ -384,7 +384,7 @@
@ stub ?put@ostream@@QAEAAV1@E@Z
@ stub ?putback@istream@@QAEAAV1@D@Z
@ stub ?pword@ios@@QBEAAPAXH@Z
-@ cdecl -i386 ?raw_name@type_info@@QBEPBDXZ() MSVCRT_type_info_raw_name
+@ cdecl -i386 ?raw_name@type_info@@QBEPBDXZ() type_info_raw_name
@ stub ?rdbuf@fstream@@QBEPAVfilebuf@@XZ
@ stub ?rdbuf@ifstream@@QBEPAVfilebuf@@XZ
@ stub ?rdbuf@ios@@QBEPAVstreambuf@@XZ
@@ -407,9 +407,9 @@
@ stub ?seekp@ostream@@QAEAAV1@J@Z
@ stub ?seekp@ostream@@QAEAAV1@JW4seek_dir@ios@@@Z
@ stub ?seekpos@streambuf@@UAEJJH@Z
-@ cdecl -i386 ?set_new_handler@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_new_handler
-@ cdecl ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_terminate
-@ cdecl ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) MSVCRT_set_unexpected
+@ cdecl -i386 ?set_new_handler@@YAP6AXXZP6AXXZ@Z(ptr) set_new_handler
+@ cdecl ?set_terminate@@YAP6AXXZP6AXXZ@Z(ptr) set_terminate
+@ cdecl ?set_unexpected@@YAP6AXXZP6AXXZ@Z(ptr) set_unexpected
@ stub ?setb@streambuf@@IAEXPAD0H@Z
@ stub ?setbuf@filebuf@@UAEPAVstreambuf@@PADH@Z
@ stub ?setbuf@fstream@@QAEPAVstreambuf@@PADH@Z
@@ -452,7 +452,7 @@
@ stub ?sync_with_stdio@ios@@SAXXZ
@ stub ?tellg@istream@@QAEJXZ
@ stub ?tellp@ostream@@QAEJXZ
-@ cdecl ?terminate@@YAXXZ() MSVCRT_terminate
+@ cdecl ?terminate@@YAXXZ() terminate
@ stub ?text@filebuf@@2HB
@ stub ?tie@ios@@QAEPAVostream@@PAV2@@Z
@ stub ?tie@ios@@QBEPAVostream@@XZ
@@ -461,13 +461,13 @@
@ stub ?underflow@filebuf@@UAEHXZ
@ stub ?underflow@stdiobuf@@UAEHXZ
@ stub ?underflow@strstreambuf@@UAEHXZ
-@ cdecl ?unexpected@@YAXXZ() MSVCRT_unexpected
+@ cdecl ?unexpected@@YAXXZ() unexpected
@ stub ?unlock@ios@@QAAXXZ
@ stub ?unlock@streambuf@@QAEXXZ
@ stub ?unlockbuf@ios@@QAAXXZ
@ stub ?unlockc@ios@@KAXXZ
@ stub ?unsetf@ios@@QAEJJ@Z
-@ cdecl -i386 ?what@exception@@UBEPBDXZ() MSVCRT_what_exception
+@ cdecl -i386 ?what@exception@@UBEPBDXZ() exception_what
@ stub ?width@ios@@QAEHH@Z
@ stub ?width@ios@@QBEHXZ
@ stub ?write@ostream@@QAEAAV1@PBCH@Z
@@ -505,9 +505,9 @@
@ cdecl _XcptFilter(long ptr)
@ cdecl -i386 __CxxFrameHandler(ptr ptr ptr ptr)
@ stdcall -i386 __CxxLongjmpUnwind(ptr)
-@ cdecl __RTCastToVoid(ptr) MSVCRT___RTCastToVoid
-@ cdecl __RTDynamicCast(ptr long ptr ptr long) MSVCRT___RTDynamicCast
-@ cdecl __RTtypeid(ptr) MSVCRT___RTtypeid
+@ cdecl __RTCastToVoid(ptr) __RTCastToVoid
+@ cdecl __RTDynamicCast(ptr long ptr ptr long) __RTDynamicCast
+@ cdecl __RTtypeid(ptr) __RTtypeid
@ cdecl __STRINGTOLD(ptr ptr str long)
@ extern __argc
@ extern __argv
diff --git a/media/doc/WINESYNC.txt b/media/doc/WINESYNC.txt
index dec52405662..bf5b76bfb55 100644
--- a/media/doc/WINESYNC.txt
+++ b/media/doc/WINESYNC.txt
@@ -305,10 +305,7 @@ lpk -
msvcrt -
sdk/lib/crt/conio/cputs.c # Synced to WineStaging-1.9.16
- sdk/lib/crt/except/cpp.c # Synced at 20080528
- sdk/lib/crt/except/cppexcept.c # Synced at 20071111
sdk/lib/crt/process/_cwait.c # Synced to WineStaging-1.7.37
- sdk/lib/crt/signal/xcptinfo.c # Synced to WineStaging-1.7.37
sdk/lib/crt/string/scanf.c/h # Synced to Wine-1.7.17
sdk/lib/crt/string/strtoi64.c # Synced to WineStaging-1.9.9
sdk/lib/crt/string/strtok.c # Synced to WineStaging-1.9.16
@@ -319,9 +316,18 @@ msvcrt -
sdk/lib/crt/string/wctype.c # Synced to WineStaging-1.9.16
sdk/lib/crt/string/wtoi64.c # Synced to Wine-1.9.16
sdk/lib/crt/mbstring/ischira.c # Synced to Wine-1.9.16
- sdk/lib/crt/wine/heap.c # Synced at 20080529
- sdk/lib/crt/wine/undname.c # Synced to WineStaging-1.9.16
sdk/lib/crt/process/thread.c # Synced to WineStaging-1.7.55
+ sdk/lib/crt/wine/cpp.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/cppexcept.h # Synced to Wine-7.0
+ sdk/lib/crt/wine/except.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/except_arm.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/except_arm64.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/except_i386.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/except_x86_64.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/heap.c # Synced to Wine-7.0
+ sdk/lib/crt/wine/msvcrt.h # Synced to Wine-7.0
+ sdk/lib/crt/wine/mtdll.h # Synced to Wine-7.0
+ sdk/lib/crt/wine/undname.c # Synced to Wine-7.0
regedit
base/applications/regedit/regedit.c # Synced to Wine-7.17
diff --git a/sdk/include/reactos/wine/asm.h b/sdk/include/reactos/wine/asm.h
index 14406b784eb..19a770fcf3b 100644
--- a/sdk/include/reactos/wine/asm.h
+++ b/sdk/include/reactos/wine/asm.h
@@ -55,6 +55,14 @@
# define __ASM_FUNC_TYPE(name) ".type " name ",@function"
#endif
+#if !defined(__GNUC__) && !defined(__clang__)
+# define __ASM_BLOCK_BEGIN(name) void __asm_dummy_##name(void) {
+# define __ASM_BLOCK_END }
+#else
+# define __ASM_BLOCK_BEGIN(name)
+# define __ASM_BLOCK_END
+#endif
+
/* ReactOS */
#if defined(_MSC_VER)
# define __ASM_DEFINE_FUNC(name,code)
diff --git a/sdk/lib/crt/crt.cmake b/sdk/lib/crt/crt.cmake
index f4868b27080..1ca567d9de7 100644
--- a/sdk/lib/crt/crt.cmake
+++ b/sdk/lib/crt/crt.cmake
@@ -13,7 +13,6 @@ list(APPEND CRT_SOURCE
${CRT_PROCESS_SOURCE}
${CRT_SEARCH_SOURCE}
signal/signal.c
- signal/xcptinfo.c
${CRT_STARTUP_SOURCE}
${CRT_STDIO_SOURCE}
${CRT_STDLIB_SOURCE}
diff --git a/sdk/lib/crt/except/amd64/cpp.s b/sdk/lib/crt/except/amd64/cpp.s
index 03b6d3dff9d..ad869b8d609 100644
--- a/sdk/lib/crt/except/amd64/cpp.s
+++ b/sdk/lib/crt/except/amd64/cpp.s
@@ -7,19 +7,19 @@
MACRO(START_VTABLE, shortname, cxxname)
EXTERN shortname&_rtti:PROC
-EXTERN MSVCRT_&shortname&_vector_dtor:PROC
+EXTERN &shortname&_vector_dtor:PROC
.quad shortname&_rtti
-PUBLIC MSVCRT_&shortname&_vtable
-MSVCRT_&shortname&_vtable:
+PUBLIC &shortname&_vtable
+&shortname&_vtable:
PUBLIC &cxxname
&cxxname:
- .quad MSVCRT_&shortname&_vector_dtor
+ .quad &shortname&_vector_dtor
ENDM
MACRO(DEFINE_EXCEPTION_VTABLE, shortname, cxxname)
START_VTABLE shortname, cxxname
- EXTERN MSVCRT_what_exception:ABS
- .quad MSVCRT_what_exception
+ EXTERN exception_what:ABS
+ .quad exception_what
ENDM
START_VTABLE type_info, __dummyname_type_info
@@ -34,56 +34,56 @@ EXTERN &orig:ABS
ALIAS <&alias> = <&orig>
ENDM
-DEFINE_ALIAS ??3@YAXPEAX@Z, MSVCRT_operator_delete
-DEFINE_ALIAS ??_U@YAPEAX_K@Z, MSVCRT_operator_new
-DEFINE_ALIAS ??_U@YAPEAX_KHPEBDH@Z, MSVCRT_operator_new_dbg
-DEFINE_ALIAS ??_V@YAXPEAX@Z, MSVCRT_operator_delete
-DEFINE_ALIAS ??2@YAPEAX_K@Z, MSVCRT_operator_new
-DEFINE_ALIAS ??2@YAPEAX_KHPEBDH@Z, MSVCRT_operator_new_dbg
-DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, MSVCRT__query_new_handler
-DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, MSVCRT__set_new_handler
-DEFINE_ALIAS ?set_new_handler@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_new_handler
-DEFINE_ALIAS ?_query_new_mode@@YAHXZ, MSVCRT__query_new_mode
-DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, MSVCRT__set_new_mode
-DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
MSVCRT__set_se_translator
-DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_terminate
-DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_unexpected
-DEFINE_ALIAS ?terminate@@YAXXZ, MSVCRT_terminate
-DEFINE_ALIAS ?unexpected@@YAXXZ, MSVCRT_unexpected
-DEFINE_ALIAS ?what@exception@@UEBAPEBDXZ, MSVCRT_what_exception
-DEFINE_ALIAS ??0exception@@QEAA@AEBQEBDH@Z, MSVCRT_exception_ctor_noalloc
-DEFINE_ALIAS ??0exception@@QEAA@AEBV0@@Z, MSVCRT_exception_copy_ctor
-DEFINE_ALIAS ??0exception@@QEAA@XZ, MSVCRT_exception_default_ctor
-DEFINE_ALIAS ??1exception@@UEAA@XZ, MSVCRT_exception_dtor
-DEFINE_ALIAS ??4exception@@QEAAAEAV0@AEBV0@@Z, MSVCRT_exception_opequals
-DEFINE_ALIAS ??1type_info@@UEAA@XZ, MSVCRT_type_info_dtor
-DEFINE_ALIAS ??0__non_rtti_object@@QEAA@AEBV0@@Z, MSVCRT___non_rtti_object_copy_ctor
-DEFINE_ALIAS ??0__non_rtti_object@@QEAA@PEBD@Z, MSVCRT___non_rtti_object_ctor
-DEFINE_ALIAS ??0bad_cast@@AAE@PBQBD@Z, MSVCRT_bad_cast_ctor
-DEFINE_ALIAS ??0bad_cast@@AEAA@PEBQEBD@Z, MSVCRT_bad_cast_ctor
-DEFINE_ALIAS ??0bad_cast@@QAE@ABQBD@Z, MSVCRT_bad_cast_ctor
-DEFINE_ALIAS ??0bad_cast@@QEAA@AEBQEBD@Z, MSVCRT_bad_cast_ctor
-DEFINE_ALIAS ??0bad_cast@@QEAA@AEBV0@@Z, MSVCRT_bad_cast_copy_ctor
-DEFINE_ALIAS ??0bad_cast@@QEAA@PEBD@Z, MSVCRT_bad_cast_ctor_charptr
-DEFINE_ALIAS ??0bad_typeid@@QEAA@AEBV0@@Z, MSVCRT_bad_typeid_copy_ctor
-DEFINE_ALIAS ??0bad_typeid@@QEAA@PEBD@Z, MSVCRT_bad_typeid_ctor
-DEFINE_ALIAS ??0exception@@QEAA@AEBQEBD@Z, MSVCRT_exception_ctor
-DEFINE_ALIAS ??1__non_rtti_object@@UEAA@XZ, MSVCRT___non_rtti_object_dtor
-DEFINE_ALIAS ??1bad_cast@@UEAA@XZ, MSVCRT_bad_cast_dtor
-DEFINE_ALIAS ??1bad_typeid@@UEAA@XZ, MSVCRT_bad_typeid_dtor
-DEFINE_ALIAS ??4bad_cast@@QEAAAEAV0@AEBV0@@Z, MSVCRT_bad_cast_opequals
-DEFINE_ALIAS ??4bad_typeid@@QEAAAEAV0@AEBV0@@Z, MSVCRT_bad_typeid_opequals
-DEFINE_ALIAS ??8type_info@@QEBAHAEBV0@@Z, MSVCRT_type_info_opequals_equals
-DEFINE_ALIAS ??9type_info@@QEBAHAEBV0@@Z, MSVCRT_type_info_opnot_equals
-DEFINE_ALIAS ??_Fbad_cast@@QEAAXXZ, MSVCRT_bad_cast_default_ctor
-DEFINE_ALIAS ??_Fbad_typeid@@QEAAXXZ, MSVCRT_bad_typeid_default_ctor
-DEFINE_ALIAS ?_query_new_handler@@YAP6AH_K@ZXZ, MSVCRT__query_new_handler
-DEFINE_ALIAS ?_set_new_handler@@YAP6AH_K@ZP6AH0@Z@Z, MSVCRT__set_new_handler
-DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
MSVCRT__set_se_translator
-DEFINE_ALIAS ?before@type_info@@QEBAHAEBV1@@Z, MSVCRT_type_info_before
-DEFINE_ALIAS ?name@type_info@@QEBAPEBDXZ, MSVCRT_type_info_name
-DEFINE_ALIAS ?raw_name@type_info@@QEBAPEBDXZ, MSVCRT_type_info_raw_name
-DEFINE_ALIAS ??4__non_rtti_object@@QEAAAEAV0@AEBV0@@Z,
MSVCRT___non_rtti_object_opequals
+DEFINE_ALIAS ??3@YAXPEAX@Z, operator_delete
+DEFINE_ALIAS ??_U@YAPEAX_K@Z, operator_new
+DEFINE_ALIAS ??_U@YAPEAX_KHPEBDH@Z, operator_new_dbg
+DEFINE_ALIAS ??_V@YAXPEAX@Z, operator_delete
+DEFINE_ALIAS ??2@YAPEAX_K@Z, operator_new
+DEFINE_ALIAS ??2@YAPEAX_KHPEBDH@Z, operator_new_dbg
+DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, _query_new_handler
+DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, _set_new_handler
+DEFINE_ALIAS ?set_new_handler@@YAP6AXXZP6AXXZ@Z, set_new_handler
+DEFINE_ALIAS ?_query_new_mode@@YAHXZ, _query_new_mode
+DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, _set_new_mode
+DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
_set_se_translator
+DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, set_terminate
+DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, set_unexpected
+DEFINE_ALIAS ?terminate@@YAXXZ, terminate
+DEFINE_ALIAS ?unexpected@@YAXXZ, unexpected
+DEFINE_ALIAS ?what@exception@@UEBAPEBDXZ, exception_what
+DEFINE_ALIAS ??0exception@@QEAA@AEBQEBDH@Z, exception_ctor_noalloc
+DEFINE_ALIAS ??0exception@@QEAA@AEBV0@@Z, exception_copy_ctor
+DEFINE_ALIAS ??0exception@@QEAA@XZ, exception_default_ctor
+DEFINE_ALIAS ??1exception@@UEAA@XZ, exception_dtor
+DEFINE_ALIAS ??4exception@@QEAAAEAV0@AEBV0@@Z, exception_opequals
+DEFINE_ALIAS ??1type_info@@UEAA@XZ, type_info_dtor
+DEFINE_ALIAS ??0__non_rtti_object@@QEAA@AEBV0@@Z, __non_rtti_object_copy_ctor
+DEFINE_ALIAS ??0__non_rtti_object@@QEAA@PEBD@Z, __non_rtti_object_ctor
+DEFINE_ALIAS ??0bad_cast@@AAE@PBQBD@Z, bad_cast_ctor
+DEFINE_ALIAS ??0bad_cast@@AEAA@PEBQEBD@Z, bad_cast_ctor
+DEFINE_ALIAS ??0bad_cast@@QAE@ABQBD@Z, bad_cast_ctor
+DEFINE_ALIAS ??0bad_cast@@QEAA@AEBQEBD@Z, bad_cast_ctor
+DEFINE_ALIAS ??0bad_cast@@QEAA@AEBV0@@Z, bad_cast_copy_ctor
+DEFINE_ALIAS ??0bad_cast@@QEAA@PEBD@Z, bad_cast_ctor_charptr
+DEFINE_ALIAS ??0bad_typeid@@QEAA@AEBV0@@Z, bad_typeid_copy_ctor
+DEFINE_ALIAS ??0bad_typeid@@QEAA@PEBD@Z, bad_typeid_ctor
+DEFINE_ALIAS ??0exception@@QEAA@AEBQEBD@Z, exception_ctor
+DEFINE_ALIAS ??1__non_rtti_object@@UEAA@XZ, __non_rtti_object_dtor
+DEFINE_ALIAS ??1bad_cast@@UEAA@XZ, bad_cast_dtor
+DEFINE_ALIAS ??1bad_typeid@@UEAA@XZ, bad_typeid_dtor
+DEFINE_ALIAS ??4bad_cast@@QEAAAEAV0@AEBV0@@Z, bad_cast_opequals
+DEFINE_ALIAS ??4bad_typeid@@QEAAAEAV0@AEBV0@@Z, bad_typeid_opequals
+DEFINE_ALIAS ??8type_info@@QEBAHAEBV0@@Z, type_info_opequals_equals
+DEFINE_ALIAS ??9type_info@@QEBAHAEBV0@@Z, type_info_opnot_equals
+DEFINE_ALIAS ??_Fbad_cast@@QEAAXXZ, bad_cast_default_ctor
+DEFINE_ALIAS ??_Fbad_typeid@@QEAAXXZ, bad_typeid_default_ctor
+DEFINE_ALIAS ?_query_new_handler@@YAP6AH_K@ZXZ, _query_new_handler
+DEFINE_ALIAS ?_set_new_handler@@YAP6AH_K@ZP6AH0@Z@Z, _set_new_handler
+DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
_set_se_translator
+DEFINE_ALIAS ?before@type_info@@QEBAHAEBV1@@Z, type_info_before
+DEFINE_ALIAS ?name@type_info@@QEBAPEBDXZ, type_info_name
+DEFINE_ALIAS ?raw_name@type_info@@QEBAPEBDXZ, type_info_raw_name
+DEFINE_ALIAS ??4__non_rtti_object@@QEAAAEAV0@AEBV0@@Z, __non_rtti_object_opequals
END
diff --git a/sdk/lib/crt/except/arm/cpp.s b/sdk/lib/crt/except/arm/cpp.s
index 33014a8093d..5a45e587189 100644
--- a/sdk/lib/crt/except/arm/cpp.s
+++ b/sdk/lib/crt/except/arm/cpp.s
@@ -22,48 +22,48 @@ _Target SETS "|$Target|"
IMPORT $_FuncName, WEAK $_Target
MEND
- DEFINE_ALIAS ??0__non_rtti_object@@QAA@ABV0@@Z, MSVCRT___non_rtti_object_copy_ctor
- DEFINE_ALIAS ??0__non_rtti_object@@QAA@PBD@Z, MSVCRT___non_rtti_object_ctor
- DEFINE_ALIAS ??0bad_cast@@AAA@PBQBD@Z, MSVCRT_bad_cast_ctor // private: __cdecl
bad_cast::bad_cast(char const * const *)
- DEFINE_ALIAS ??0bad_cast@@QAA@ABV0@@Z, MSVCRT_bad_cast_copy_ctor // public: __cdecl
bad_cast::bad_cast(class bad_cast const &)
- DEFINE_ALIAS ??0bad_cast@@QAA@PBD@Z, MSVCRT_bad_cast_ctor // public: __cdecl
bad_cast::bad_cast(char const *)
- DEFINE_ALIAS ??0bad_typeid@@QAA@ABV0@@Z, MSVCRT_bad_typeid_copy_ctor // public:
__cdecl bad_typeid::bad_typeid(class bad_typeid const &)
- DEFINE_ALIAS ??0bad_typeid@@QAA@PBD@Z, MSVCRT_bad_typeid_ctor // public: __cdecl
bad_typeid::bad_typeid(char const *)
- DEFINE_ALIAS ??0exception@@QAA@ABQBD@Z, MSVCRT_exception_ctor // public: __cdecl
exception::exception(char const * const &)
- DEFINE_ALIAS ??0exception@@QAA@ABQBDH@Z, MSVCRT_exception_ctor_noalloc // public:
__cdecl exception::exception(char const * const &,int)
- DEFINE_ALIAS ??0exception@@QAA@ABV0@@Z, MSVCRT_exception_copy_ctor // public: __cdecl
exception::exception(class exception const &)
- DEFINE_ALIAS ??0exception@@QAA@XZ, MSVCRT_exception_default_ctor // public: __cdecl
exception::exception(void)
- DEFINE_ALIAS ??1__non_rtti_object@@UAA@XZ, MSVCRT___non_rtti_object_dtor // public:
virtual __cdecl __non_rtti_object::~__non_rtti_object(void)
- DEFINE_ALIAS ??1bad_cast@@UAA@XZ, MSVCRT_bad_cast_dtor // public: virtual __cdecl
bad_cast::~bad_cast(void)
- DEFINE_ALIAS ??1bad_typeid@@UAA@XZ, MSVCRT_bad_typeid_dtor // public: virtual __cdecl
bad_typeid::~bad_typeid(void)
- DEFINE_ALIAS ??1exception@@UAA@XZ, MSVCRT_exception_dtor // public: virtual __cdecl
exception::~exception(void)
- DEFINE_ALIAS ??1type_info@@UAA@XZ, MSVCRT_type_info_dtor // public: virtual __cdecl
type_info::~type_info(void)
- DEFINE_ALIAS ??2@YAPAXI@Z, MSVCRT_operator_new // void * __cdecl operator
new(unsigned int)
- DEFINE_ALIAS ??2@YAPAXIHPBDH@Z, MSVCRT_operator_new_dbg // void * __cdecl operator
new(unsigned int,int,char const *,int)
- DEFINE_ALIAS ??3@YAXPAX@Z, MSVCRT_operator_delete // void __cdecl operator
delete(void *)
- DEFINE_ALIAS ??4__non_rtti_object@@QAAAAV0@ABV0@@Z, MSVCRT___non_rtti_object_opequals
// public: class __non_rtti_object & __cdecl __non_rtti_object::operator=(class
__non_rtti_object const &)
- DEFINE_ALIAS ??4bad_cast@@QAAAAV0@ABV0@@Z, MSVCRT_bad_cast_opequals // public: class
bad_cast & __cdecl bad_cast::operator=(class bad_cast const &)
- DEFINE_ALIAS ??4bad_typeid@@QAAAAV0@ABV0@@Z, MSVCRT_bad_typeid_opequals // public:
class bad_typeid & __cdecl bad_typeid::operator=(class bad_typeid const &)
- DEFINE_ALIAS ??4exception@@QAAAAV0@ABV0@@Z, MSVCRT_exception_opequals // public:
class exception & __cdecl exception::operator=(class exception const &)
- DEFINE_ALIAS ??8type_info@@QBAHABV0@@Z, MSVCRT_type_info_opequals_equals // public:
int __cdecl type_info::operator==(class type_info const &)const
- DEFINE_ALIAS ??9type_info@@QBAHABV0@@Z, MSVCRT_type_info_opnot_equals // public: int
__cdecl type_info::operator!=(class type_info const &)const
- DEFINE_ALIAS ??_Fbad_cast@@QAAXXZ, MSVCRT_bad_cast_default_ctor // public: void
__cdecl bad_cast::`default constructor closure'(void)
- DEFINE_ALIAS ??_Fbad_typeid@@QAAXXZ, MSVCRT_bad_typeid_default_ctor // public: void
__cdecl bad_typeid::`default constructor closure'(void)
- DEFINE_ALIAS ??_U@YAPAXI@Z, MSVCRT_operator_new // void * __cdecl operator
new[](unsigned int)
- DEFINE_ALIAS ??_U@YAPAXIHPBDH@Z, MSVCRT_operator_new_dbg // void * __cdecl operator
new[](unsigned int,int,char const *,int)
- DEFINE_ALIAS ??_V@YAXPAX@Z, MSVCRT_operator_delete // void __cdecl operator
delete[](void *)
- DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, MSVCRT__query_new_handler // int
(__cdecl*__cdecl _query_new_handler(void))(unsigned int)
- DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, MSVCRT__set_new_handler // int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
- DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, MSVCRT__set_new_mode // int __cdecl
_set_new_mode(int)
- DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
MSVCRT__set_se_translator // void (__cdecl*__cdecl _set_se_translator(void
(__cdecl*)(unsigned int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct
_EXCEPTION_POINTERS *)
- DEFINE_ALIAS ?before@type_info@@QBAHABV1@@Z, MSVCRT_type_info_before // public: int
__cdecl type_info::before(class type_info const &)const
- DEFINE_ALIAS ?name@type_info@@QBAPBDXZ, MSVCRT_type_info_name // public: char const *
__cdecl type_info::name(void)const
- DEFINE_ALIAS ?raw_name@type_info@@QBAPBDXZ, MSVCRT_type_info_raw_name // public: char
const * __cdecl type_info::raw_name(void)const
- DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_terminate // void
(__cdecl*__cdecl set_terminate(void (__cdecl*)(void)))(void)
- DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_unexpected // void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
- DEFINE_ALIAS ?terminate@@YAXXZ, MSVCRT_terminate // void __cdecl terminate(void)
- DEFINE_ALIAS ?unexpected@@YAXXZ, MSVCRT_unexpected // void __cdecl unexpected(void)
- DEFINE_ALIAS ?what@exception@@UBAPBDXZ, MSVCRT_what_exception // public: virtual char
const * __cdecl exception::what(void)const
+ DEFINE_ALIAS ??0__non_rtti_object@@QAA@ABV0@@Z, __non_rtti_object_copy_ctor
+ DEFINE_ALIAS ??0__non_rtti_object@@QAA@PBD@Z, __non_rtti_object_ctor
+ DEFINE_ALIAS ??0bad_cast@@AAA@PBQBD@Z, bad_cast_ctor // private: __cdecl
bad_cast::bad_cast(char const * const *)
+ DEFINE_ALIAS ??0bad_cast@@QAA@ABV0@@Z, bad_cast_copy_ctor // public: __cdecl
bad_cast::bad_cast(class bad_cast const &)
+ DEFINE_ALIAS ??0bad_cast@@QAA@PBD@Z, bad_cast_ctor // public: __cdecl
bad_cast::bad_cast(char const *)
+ DEFINE_ALIAS ??0bad_typeid@@QAA@ABV0@@Z, bad_typeid_copy_ctor // public: __cdecl
bad_typeid::bad_typeid(class bad_typeid const &)
+ DEFINE_ALIAS ??0bad_typeid@@QAA@PBD@Z, bad_typeid_ctor // public: __cdecl
bad_typeid::bad_typeid(char const *)
+ DEFINE_ALIAS ??0exception@@QAA@ABQBD@Z, exception_ctor // public: __cdecl
exception::exception(char const * const &)
+ DEFINE_ALIAS ??0exception@@QAA@ABQBDH@Z, exception_ctor_noalloc // public: __cdecl
exception::exception(char const * const &,int)
+ DEFINE_ALIAS ??0exception@@QAA@ABV0@@Z, exception_copy_ctor // public: __cdecl
exception::exception(class exception const &)
+ DEFINE_ALIAS ??0exception@@QAA@XZ, exception_default_ctor // public: __cdecl
exception::exception(void)
+ DEFINE_ALIAS ??1__non_rtti_object@@UAA@XZ, __non_rtti_object_dtor // public: virtual
__cdecl __non_rtti_object::~__non_rtti_object(void)
+ DEFINE_ALIAS ??1bad_cast@@UAA@XZ, bad_cast_dtor // public: virtual __cdecl
bad_cast::~bad_cast(void)
+ DEFINE_ALIAS ??1bad_typeid@@UAA@XZ, bad_typeid_dtor // public: virtual __cdecl
bad_typeid::~bad_typeid(void)
+ DEFINE_ALIAS ??1exception@@UAA@XZ, exception_dtor // public: virtual __cdecl
exception::~exception(void)
+ DEFINE_ALIAS ??1type_info@@UAA@XZ, type_info_dtor // public: virtual __cdecl
type_info::~type_info(void)
+ DEFINE_ALIAS ??2@YAPAXI@Z, operator_new // void * __cdecl operator new(unsigned
int)
+ DEFINE_ALIAS ??2@YAPAXIHPBDH@Z, operator_new_dbg // void * __cdecl operator
new(unsigned int,int,char const *,int)
+ DEFINE_ALIAS ??3@YAXPAX@Z, operator_delete // void __cdecl operator delete(void *)
+ DEFINE_ALIAS ??4__non_rtti_object@@QAAAAV0@ABV0@@Z, __non_rtti_object_opequals //
public: class __non_rtti_object & __cdecl __non_rtti_object::operator=(class
__non_rtti_object const &)
+ DEFINE_ALIAS ??4bad_cast@@QAAAAV0@ABV0@@Z, bad_cast_opequals // public: class
bad_cast & __cdecl bad_cast::operator=(class bad_cast const &)
+ DEFINE_ALIAS ??4bad_typeid@@QAAAAV0@ABV0@@Z, bad_typeid_opequals // public: class
bad_typeid & __cdecl bad_typeid::operator=(class bad_typeid const &)
+ DEFINE_ALIAS ??4exception@@QAAAAV0@ABV0@@Z, exception_opequals // public: class
exception & __cdecl exception::operator=(class exception const &)
+ DEFINE_ALIAS ??8type_info@@QBAHABV0@@Z, type_info_opequals_equals // public: int
__cdecl type_info::operator==(class type_info const &)const
+ DEFINE_ALIAS ??9type_info@@QBAHABV0@@Z, type_info_opnot_equals // public: int __cdecl
type_info::operator!=(class type_info const &)const
+ DEFINE_ALIAS ??_Fbad_cast@@QAAXXZ, bad_cast_default_ctor // public: void __cdecl
bad_cast::`default constructor closure'(void)
+ DEFINE_ALIAS ??_Fbad_typeid@@QAAXXZ, bad_typeid_default_ctor // public: void __cdecl
bad_typeid::`default constructor closure'(void)
+ DEFINE_ALIAS ??_U@YAPAXI@Z, operator_new // void * __cdecl operator new[](unsigned
int)
+ DEFINE_ALIAS ??_U@YAPAXIHPBDH@Z, operator_new_dbg // void * __cdecl operator
new[](unsigned int,int,char const *,int)
+ DEFINE_ALIAS ??_V@YAXPAX@Z, operator_delete // void __cdecl operator delete[](void
*)
+ DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, _query_new_handler // int
(__cdecl*__cdecl _query_new_handler(void))(unsigned int)
+ DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, _set_new_handler // int
(__cdecl*__cdecl _set_new_handler(int (__cdecl*)(unsigned int)))(unsigned int)
+ DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, _set_new_mode // int __cdecl
_set_new_mode(int)
+ DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
_set_se_translator // void (__cdecl*__cdecl _set_se_translator(void (__cdecl*)(unsigned
int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct _EXCEPTION_POINTERS *)
+ DEFINE_ALIAS ?before@type_info@@QBAHABV1@@Z, type_info_before // public: int __cdecl
type_info::before(class type_info const &)const
+ DEFINE_ALIAS ?name@type_info@@QBAPBDXZ, type_info_name // public: char const *
__cdecl type_info::name(void)const
+ DEFINE_ALIAS ?raw_name@type_info@@QBAPBDXZ, type_info_raw_name // public: char const
* __cdecl type_info::raw_name(void)const
+ DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, set_terminate // void (__cdecl*__cdecl
set_terminate(void (__cdecl*)(void)))(void)
+ DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, set_unexpected // void
(__cdecl*__cdecl set_unexpected(void (__cdecl*)(void)))(void)
+ DEFINE_ALIAS ?terminate@@YAXXZ, terminate // void __cdecl terminate(void)
+ DEFINE_ALIAS ?unexpected@@YAXXZ, unexpected // void __cdecl unexpected(void)
+ DEFINE_ALIAS ?what@exception@@UBAPBDXZ, exception_what // public: virtual char const
* __cdecl exception::what(void)const
#undef _MSVCRT_
MACRO
@@ -74,8 +74,8 @@ _Target SETS "|$Target|"
LCLS CxxLabel
CxxLabel SETS "|$CxxName|"
RttiName SETS "|$ShortName._rtti|"
-VtblName SETS "|MSVCRT_":CC:"$ShortName._vtable|"
-DtorName SETS "|MSVCRT_":CC:"$ShortName._vector_dtor|"
+VtblName SETS "|":CC:"$ShortName._vtable|"
+DtorName SETS "|":CC:"$ShortName._vector_dtor|"
EXTERN $RttiName
DCD $RttiName
EXPORT $VtblName
@@ -89,8 +89,8 @@ $CxxLabel
MACRO
DEFINE_EXCEPTION_VTABLE $ShortName, $CxxName
START_VTABLE $ShortName, $CxxName
- EXTERN MSVCRT_what_exception
- DCD MSVCRT_what_exception
+ EXTERN exception_what
+ DCD exception_what
MEND
START_VTABLE type_info, __dummyname_type_info
@@ -101,13 +101,13 @@ $CxxLabel
GBLS FuncName
- //EXTERN MSVCRT_operator_delete
+ //EXTERN operator_delete
//__ExportName ??3@YAXPAX@Z
- //b MSVCRT_operator_delete
+ //b operator_delete
- //EXTERN MSVCRT_operator_new
+ //EXTERN operator_new
//__ExportName ??_U@YAPAXI@Z
- //b MSVCRT_operator_new
+ //b operator_new
END
/* EOF */
diff --git a/sdk/lib/crt/except/i386/cpp.s b/sdk/lib/crt/except/i386/cpp.s
index 7985dc1d9fe..99e2748edd6 100644
--- a/sdk/lib/crt/except/i386/cpp.s
+++ b/sdk/lib/crt/except/i386/cpp.s
@@ -17,61 +17,61 @@ MACRO(DEFINE_THISCALL_ALIAS, cxxname, target)
#endif
ENDM
-DEFINE_THISCALL_ALIAS ??0exception@@QAE@ABQBD@Z, _MSVCRT_exception_ctor
-DEFINE_THISCALL_ALIAS ??0exception@@QAE@ABQBDH@Z, _MSVCRT_exception_ctor_noalloc
-DEFINE_THISCALL_ALIAS ??0exception@@QAE@ABV0@@Z, _MSVCRT_exception_copy_ctor
-DEFINE_THISCALL_ALIAS ??0exception@@QAE@XZ, _MSVCRT_exception_default_ctor
-DEFINE_THISCALL_ALIAS ??1exception@@UAE@XZ, _MSVCRT_exception_dtor
-DEFINE_THISCALL_ALIAS ??4exception@@QAEAAV0@ABV0@@Z, _MSVCRT_exception_opequals
-DEFINE_THISCALL_ALIAS ??_Eexception@@UAEPAXI@Z, _MSVCRT_exception_vector_dtor
-DEFINE_THISCALL_ALIAS ??_Gexception@@UAEPAXI@Z, _MSVCRT_exception_scalar_dtor
-DEFINE_THISCALL_ALIAS ?what@exception@@UBEPBDXZ, _MSVCRT_what_exception
-DEFINE_THISCALL_ALIAS ??0bad_typeid@@QAE@ABV0@@Z, _MSVCRT_bad_typeid_copy_ctor
-DEFINE_THISCALL_ALIAS ??0bad_typeid@@QAE@PBD@Z, _MSVCRT_bad_typeid_ctor
-DEFINE_THISCALL_ALIAS ??_Fbad_typeid@@QAEXXZ, _MSVCRT_bad_typeid_default_ctor
-DEFINE_THISCALL_ALIAS ??1bad_typeid@@UAE@XZ, _MSVCRT_bad_typeid_dtor
-DEFINE_THISCALL_ALIAS ??4bad_typeid@@QAEAAV0@ABV0@@Z, _MSVCRT_bad_typeid_opequals
-DEFINE_THISCALL_ALIAS ??_Ebad_typeid@@UAEPAXI@Z, _MSVCRT_bad_typeid_vector_dtor
-DEFINE_THISCALL_ALIAS ??_Gbad_typeid@@UAEPAXI@Z, _MSVCRT_bad_typeid_scalar_dtor
-DEFINE_THISCALL_ALIAS ??0__non_rtti_object@@QAE@ABV0@@Z,
_MSVCRT___non_rtti_object_copy_ctor
-DEFINE_THISCALL_ALIAS ??0__non_rtti_object@@QAE@PBD@Z, _MSVCRT___non_rtti_object_ctor
-DEFINE_THISCALL_ALIAS ??1__non_rtti_object@@UAE@XZ, _MSVCRT___non_rtti_object_dtor
-DEFINE_THISCALL_ALIAS ??4__non_rtti_object@@QAEAAV0@ABV0@@Z,
_MSVCRT___non_rtti_object_opequals
-DEFINE_THISCALL_ALIAS ??_E__non_rtti_object@@UAEPAXI@Z,
_MSVCRT___non_rtti_object_vector_dtor
-DEFINE_THISCALL_ALIAS ??_G__non_rtti_object@@UAEPAXI@Z,
_MSVCRT___non_rtti_object_scalar_dtor
-DEFINE_THISCALL_ALIAS ??0bad_cast@@AAE@PBQBD@Z, _MSVCRT_bad_cast_ctor
-DEFINE_THISCALL_ALIAS ??0bad_cast@@QAE@ABQBD@Z, _MSVCRT_bad_cast_ctor
-DEFINE_THISCALL_ALIAS ??0bad_cast@@QAE@ABV0@@Z, _MSVCRT_bad_cast_copy_ctor
-DEFINE_THISCALL_ALIAS ??0bad_cast@@QAE@PBD@Z, _MSVCRT_bad_cast_ctor_charptr
-DEFINE_THISCALL_ALIAS ??_Fbad_cast@@QAEXXZ, _MSVCRT_bad_cast_default_ctor
-DEFINE_THISCALL_ALIAS ??1bad_cast@@UAE@XZ, _MSVCRT_bad_cast_dtor
-DEFINE_THISCALL_ALIAS ??4bad_cast@@QAEAAV0@ABV0@@Z, _MSVCRT_bad_cast_opequals
-DEFINE_THISCALL_ALIAS ??_Ebad_cast@@UAEPAXI@Z, _MSVCRT_bad_cast_vector_dtor
-DEFINE_THISCALL_ALIAS ??_Gbad_cast@@UAEPAXI@Z, _MSVCRT_bad_cast_scalar_dtor
-DEFINE_THISCALL_ALIAS ??8type_info@@QBEHABV0@@Z, _MSVCRT_type_info_opequals_equals
-DEFINE_THISCALL_ALIAS ??9type_info@@QBEHABV0@@Z, _MSVCRT_type_info_opnot_equals
-DEFINE_THISCALL_ALIAS ?before@type_info@@QBEHABV1@@Z, _MSVCRT_type_info_before
-DEFINE_THISCALL_ALIAS ??1type_info@@UAE@XZ, _MSVCRT_type_info_dtor
-DEFINE_THISCALL_ALIAS ?name@type_info@@QBEPBDXZ, _MSVCRT_type_info_name
-DEFINE_THISCALL_ALIAS ?raw_name@type_info@@QBEPBDXZ, _MSVCRT_type_info_raw_name
+DEFINE_THISCALL_ALIAS ??0exception@@QAE@ABQBD@Z, _exception_ctor
+DEFINE_THISCALL_ALIAS ??0exception@@QAE@ABQBDH@Z, _exception_ctor_noalloc
+DEFINE_THISCALL_ALIAS ??0exception@@QAE@ABV0@@Z, _exception_copy_ctor
+DEFINE_THISCALL_ALIAS ??0exception@@QAE@XZ, _exception_default_ctor
+DEFINE_THISCALL_ALIAS ??1exception@@UAE@XZ, _exception_dtor
+DEFINE_THISCALL_ALIAS ??4exception@@QAEAAV0@ABV0@@Z, _exception_opequals
+DEFINE_THISCALL_ALIAS ??_Eexception@@UAEPAXI@Z, _exception_vector_dtor
+DEFINE_THISCALL_ALIAS ??_Gexception@@UAEPAXI@Z, _exception_scalar_dtor
+DEFINE_THISCALL_ALIAS ?what@exception@@UBEPBDXZ, _exception_what
+DEFINE_THISCALL_ALIAS ??0bad_typeid@@QAE@ABV0@@Z, _bad_typeid_copy_ctor
+DEFINE_THISCALL_ALIAS ??0bad_typeid@@QAE@PBD@Z, _bad_typeid_ctor
+DEFINE_THISCALL_ALIAS ??_Fbad_typeid@@QAEXXZ, _bad_typeid_default_ctor
+DEFINE_THISCALL_ALIAS ??1bad_typeid@@UAE@XZ, _bad_typeid_dtor
+DEFINE_THISCALL_ALIAS ??4bad_typeid@@QAEAAV0@ABV0@@Z, _bad_typeid_opequals
+DEFINE_THISCALL_ALIAS ??_Ebad_typeid@@UAEPAXI@Z, _bad_typeid_vector_dtor
+DEFINE_THISCALL_ALIAS ??_Gbad_typeid@@UAEPAXI@Z, _bad_typeid_scalar_dtor
+DEFINE_THISCALL_ALIAS ??0__non_rtti_object@@QAE@ABV0@@Z, ___non_rtti_object_copy_ctor
+DEFINE_THISCALL_ALIAS ??0__non_rtti_object@@QAE@PBD@Z, ___non_rtti_object_ctor
+DEFINE_THISCALL_ALIAS ??1__non_rtti_object@@UAE@XZ, ___non_rtti_object_dtor
+DEFINE_THISCALL_ALIAS ??4__non_rtti_object@@QAEAAV0@ABV0@@Z,
___non_rtti_object_opequals
+DEFINE_THISCALL_ALIAS ??_E__non_rtti_object@@UAEPAXI@Z, ___non_rtti_object_vector_dtor
+DEFINE_THISCALL_ALIAS ??_G__non_rtti_object@@UAEPAXI@Z, ___non_rtti_object_scalar_dtor
+DEFINE_THISCALL_ALIAS ??0bad_cast@@AAE@PBQBD@Z, _bad_cast_ctor
+DEFINE_THISCALL_ALIAS ??0bad_cast@@QAE@ABQBD@Z, _bad_cast_ctor
+DEFINE_THISCALL_ALIAS ??0bad_cast@@QAE@ABV0@@Z, _bad_cast_copy_ctor
+DEFINE_THISCALL_ALIAS ??0bad_cast@@QAE@PBD@Z, _bad_cast_ctor_charptr
+DEFINE_THISCALL_ALIAS ??_Fbad_cast@@QAEXXZ, _bad_cast_default_ctor
+DEFINE_THISCALL_ALIAS ??1bad_cast@@UAE@XZ, _bad_cast_dtor
+DEFINE_THISCALL_ALIAS ??4bad_cast@@QAEAAV0@ABV0@@Z, _bad_cast_opequals
+DEFINE_THISCALL_ALIAS ??_Ebad_cast@@UAEPAXI@Z, _bad_cast_vector_dtor
+DEFINE_THISCALL_ALIAS ??_Gbad_cast@@UAEPAXI@Z, _bad_cast_scalar_dtor
+DEFINE_THISCALL_ALIAS ??8type_info@@QBEHABV0@@Z, _type_info_opequals_equals
+DEFINE_THISCALL_ALIAS ??9type_info@@QBEHABV0@@Z, _type_info_opnot_equals
+DEFINE_THISCALL_ALIAS ?before@type_info@@QBEHABV1@@Z, _type_info_before
+DEFINE_THISCALL_ALIAS ??1type_info@@UAE@XZ, _type_info_dtor
+DEFINE_THISCALL_ALIAS ?name@type_info@@QBEPBDXZ, _type_info_name
+DEFINE_THISCALL_ALIAS ?raw_name@type_info@@QBEPBDXZ, _type_info_raw_name
#undef _MSVCRT_
MACRO(START_VTABLE, shortname, cxxname)
EXTERN _&shortname&_rtti:PROC
-EXTERN ___thiscall_MSVCRT_&shortname&_vector_dtor:PROC
+EXTERN ___thiscall_&shortname&_vector_dtor:PROC
.long _&shortname&_rtti
-PUBLIC _MSVCRT_&shortname&_vtable
-_MSVCRT_&shortname&_vtable:
+PUBLIC _&shortname&_vtable
+_&shortname&_vtable:
PUBLIC &cxxname
&cxxname:
- .long ___thiscall_MSVCRT_&shortname&_vector_dtor
+ .long ___thiscall_&shortname&_vector_dtor
ENDM
MACRO(DEFINE_EXCEPTION_VTABLE, shortname, cxxname)
START_VTABLE shortname, cxxname
- EXTERN ___thiscall_MSVCRT_what_exception:PROC
- .long ___thiscall_MSVCRT_what_exception
+ EXTERN ___thiscall_exception_what:PROC
+ .long ___thiscall_exception_what
ENDM
START_VTABLE type_info, __dummyname_type_info
@@ -80,15 +80,15 @@ DEFINE_EXCEPTION_VTABLE bad_typeid, ??_7bad_typeid@@6B@
DEFINE_EXCEPTION_VTABLE bad_cast, ??_7bad_cast@@6B@
DEFINE_EXCEPTION_VTABLE __non_rtti_object, ??_7__non_rtti_object@@6B@
-EXTERN _MSVCRT_operator_delete:PROC
+EXTERN _operator_delete:PROC
PUBLIC ??3@YAXPAX@Z
??3@YAXPAX@Z:
- jmp _MSVCRT_operator_delete
+ jmp _operator_delete
-EXTERN _MSVCRT_operator_new:PROC
+EXTERN _operator_new:PROC
PUBLIC ??_U@YAPAXI@Z
??_U@YAPAXI@Z:
- jmp _MSVCRT_operator_new
+ jmp _operator_new
MACRO(DEFINE_ALIAS, alias, orig, type)
@@ -96,18 +96,18 @@ EXTERN &orig:&type
ALIAS <&alias> = <&orig>
ENDM
-DEFINE_ALIAS ??_V@YAXPAX@Z, _MSVCRT_operator_delete, PROC
-DEFINE_ALIAS ??2@YAPAXI@Z, _MSVCRT_operator_new, PROC
-DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, _MSVCRT__query_new_handler, PROC
-DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, _MSVCRT__set_new_handler, PROC
-DEFINE_ALIAS ?set_new_handler@@YAP6AXXZP6AXXZ@Z, _MSVCRT_set_new_handler, PROC
-DEFINE_ALIAS ?_query_new_mode@@YAHXZ, _MSVCRT__query_new_mode, PROC
-DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, _MSVCRT__set_new_mode, PROC
-DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
_MSVCRT__set_se_translator, PROC
-DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, _MSVCRT_set_terminate, PROC
-DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, _MSVCRT_set_unexpected, PROC
-DEFINE_ALIAS ?terminate@@YAXXZ, _MSVCRT_terminate, PROC
-DEFINE_ALIAS ?unexpected@@YAXXZ, _MSVCRT_unexpected, PROC
+DEFINE_ALIAS ??_V@YAXPAX@Z, _operator_delete, PROC
+DEFINE_ALIAS ??2@YAPAXI@Z, _operator_new, PROC
+DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, __query_new_handler, PROC
+DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, __set_new_handler, PROC
+DEFINE_ALIAS ?set_new_handler@@YAP6AXXZP6AXXZ@Z, _set_new_handler, PROC
+DEFINE_ALIAS ?_query_new_mode@@YAHXZ, __query_new_mode, PROC
+DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, __set_new_mode, PROC
+DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z,
__set_se_translator, PROC
+DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, _set_terminate, PROC
+DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, _set_unexpected, PROC
+DEFINE_ALIAS ?terminate@@YAXXZ, _terminate, PROC
+DEFINE_ALIAS ?unexpected@@YAXXZ, _unexpected, PROC
// void call_copy_ctor( void *func, void *this, void *src, int has_vbase );
diff --git a/sdk/lib/crt/include/internal/wine_msc.h
b/sdk/lib/crt/include/internal/wine_msc.h
index ebe023b48d0..eb0447c93ac 100644
--- a/sdk/lib/crt/include/internal/wine_msc.h
+++ b/sdk/lib/crt/include/internal/wine_msc.h
@@ -1,41 +1,41 @@
exception * __thiscall MSVCRT_exception_ctor(exception * _this, const char ** name);
-exception * __thiscall MSVCRT_exception_ctor_noalloc(exception * _this, char ** name, int
noalloc);
-exception * __thiscall MSVCRT_exception_copy_ctor(exception * _this, const exception *
rhs);
-exception * __thiscall MSVCRT_exception_default_ctor(exception * _this);
-void __thiscall MSVCRT_exception_dtor(exception * _this);
-exception * __thiscall MSVCRT_exception_opequals(exception * _this, const exception *
rhs);
-void * __thiscall MSVCRT_exception_vector_dtor(exception * _this, unsigned int flags);
-void * __thiscall MSVCRT_exception_scalar_dtor(exception * _this, unsigned int flags);
-const char * __thiscall MSVCRT_what_exception(exception * _this);
-bad_typeid * __thiscall MSVCRT_bad_typeid_copy_ctor(bad_typeid * _this, const bad_typeid
* rhs);
-bad_typeid * __thiscall MSVCRT_bad_typeid_ctor(bad_typeid * _this, const char * name);
-bad_typeid * __thiscall MSVCRT_bad_typeid_default_ctor(bad_typeid * _this);
-void __thiscall MSVCRT_bad_typeid_dtor(bad_typeid * _this);
-bad_typeid * __thiscall MSVCRT_bad_typeid_opequals(bad_typeid * _this, const bad_typeid *
rhs);
-void * __thiscall MSVCRT_bad_typeid_vector_dtor(bad_typeid * _this, unsigned int
flags);
-void * __thiscall MSVCRT_bad_typeid_scalar_dtor(bad_typeid * _this, unsigned int
flags);
-__non_rtti_object * __thiscall MSVCRT___non_rtti_object_copy_ctor(__non_rtti_object *
_this, const __non_rtti_object * rhs);
-__non_rtti_object * __thiscall MSVCRT___non_rtti_object_ctor(__non_rtti_object * _this,
const char * name);
-void __thiscall MSVCRT___non_rtti_object_dtor(__non_rtti_object * _this);
-__non_rtti_object * __thiscall MSVCRT___non_rtti_object_opequals(__non_rtti_object *
_this, const __non_rtti_object *rhs);
-void * __thiscall MSVCRT___non_rtti_object_vector_dtor(__non_rtti_object * _this,
unsigned int flags);
-void * __thiscall MSVCRT___non_rtti_object_scalar_dtor(__non_rtti_object * _this,
unsigned int flags);
-bad_cast * __thiscall MSVCRT_bad_cast_ctor(bad_cast * _this, const char ** name);
-bad_cast * __thiscall MSVCRT_bad_cast_copy_ctor(bad_cast * _this, const bad_cast *
rhs);
-bad_cast * __thiscall MSVCRT_bad_cast_ctor_charptr(bad_cast * _this, const char *
name);
-bad_cast * __thiscall MSVCRT_bad_cast_default_ctor(bad_cast * _this);
-void __thiscall MSVCRT_bad_cast_dtor(bad_cast * _this);
-bad_cast * __thiscall MSVCRT_bad_cast_opequals(bad_cast * _this, const bad_cast * rhs);
-void * __thiscall MSVCRT_bad_cast_vector_dtor(bad_cast * _this, unsigned int flags);
-void * __thiscall MSVCRT_bad_cast_scalar_dtor(bad_cast * _this, unsigned int flags);
-int __thiscall MSVCRT_type_info_opequals_equals(type_info * _this, const type_info *
rhs);
-int __thiscall MSVCRT_type_info_opnot_equals(type_info * _this, const type_info * rhs);
-int __thiscall MSVCRT_type_info_before(type_info * _this, const type_info * rhs);
-void __thiscall MSVCRT_type_info_dtor(type_info * _this);
-const char * __thiscall MSVCRT_type_info_name(type_info * _this);
-const char * __thiscall MSVCRT_type_info_raw_name(type_info * _this);
-void * __thiscall MSVCRT_type_info_vector_dtor(type_info * _this, unsigned int flags);
+exception * __thiscall exception_ctor_noalloc(exception * _this, char ** name, int
noalloc);
+exception * __thiscall exception_copy_ctor(exception * _this, const exception * rhs);
+exception * __thiscall exception_default_ctor(exception * _this);
+void __thiscall exception_dtor(exception * _this);
+exception * __thiscall exception_opequals(exception * _this, const exception * rhs);
+void * __thiscall exception_vector_dtor(exception * _this, unsigned int flags);
+void * __thiscall exception_scalar_dtor(exception * _this, unsigned int flags);
+const char * __thiscall exception_what(exception * _this);
+bad_typeid * __thiscall bad_typeid_copy_ctor(bad_typeid * _this, const bad_typeid *
rhs);
+bad_typeid * __thiscall bad_typeid_ctor(bad_typeid * _this, const char * name);
+bad_typeid * __thiscall bad_typeid_default_ctor(bad_typeid * _this);
+void __thiscall bad_typeid_dtor(bad_typeid * _this);
+bad_typeid * __thiscall bad_typeid_opequals(bad_typeid * _this, const bad_typeid *
rhs);
+void * __thiscall bad_typeid_vector_dtor(bad_typeid * _this, unsigned int flags);
+void * __thiscall bad_typeid_scalar_dtor(bad_typeid * _this, unsigned int flags);
+__non_rtti_object * __thiscall __non_rtti_object_copy_ctor(__non_rtti_object * _this,
const __non_rtti_object * rhs);
+__non_rtti_object * __thiscall __non_rtti_object_ctor(__non_rtti_object * _this, const
char * name);
+void __thiscall __non_rtti_object_dtor(__non_rtti_object * _this);
+__non_rtti_object * __thiscall __non_rtti_object_opequals(__non_rtti_object * _this,
const __non_rtti_object *rhs);
+void * __thiscall __non_rtti_object_vector_dtor(__non_rtti_object * _this, unsigned int
flags);
+void * __thiscall __non_rtti_object_scalar_dtor(__non_rtti_object * _this, unsigned int
flags);
+bad_cast * __thiscall bad_cast_ctor(bad_cast * _this, const char ** name);
+bad_cast * __thiscall bad_cast_copy_ctor(bad_cast * _this, const bad_cast * rhs);
+bad_cast * __thiscall bad_cast_ctor_charptr(bad_cast * _this, const char * name);
+bad_cast * __thiscall bad_cast_default_ctor(bad_cast * _this);
+void __thiscall bad_cast_dtor(bad_cast * _this);
+bad_cast * __thiscall bad_cast_opequals(bad_cast * _this, const bad_cast * rhs);
+void * __thiscall bad_cast_vector_dtor(bad_cast * _this, unsigned int flags);
+void * __thiscall bad_cast_scalar_dtor(bad_cast * _this, unsigned int flags);
+int __thiscall type_info_opequals_equals(type_info * _this, const type_info * rhs);
+int __thiscall type_info_opnot_equals(type_info * _this, const type_info * rhs);
+int __thiscall type_info_before(type_info * _this, const type_info * rhs);
+void __thiscall type_info_dtor(type_info * _this);
+const char * __thiscall type_info_name(type_info * _this);
+const char * __thiscall type_info_raw_name(type_info * _this);
+void * __thiscall type_info_vector_dtor(type_info * _this, unsigned int flags);
#if _MSVCR_VER >= 80
bad_alloc* __thiscall MSVCRT_bad_alloc_copy_ctor(bad_alloc* _this, const bad_alloc*
rhs);
bad_alloc* __thiscall MSVCRT_bad_alloc_copy_ctor(bad_alloc* _this, const bad_alloc*
rhs);
diff --git a/sdk/lib/crt/signal/xcptinfo.c b/sdk/lib/crt/signal/xcptinfo.c
deleted file mode 100644
index a476d9c41ce..00000000000
--- a/sdk/lib/crt/signal/xcptinfo.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <precomp.h>
-
-/*
- * @implemented
- */
-void** __pxcptinfoptrs(void)
-{
- return (void**)&msvcrt_get_thread_data()->xcptinfo;
-}
diff --git a/sdk/lib/crt/wine/cpp.c b/sdk/lib/crt/wine/cpp.c
index b5636b1fb1a..a256569584b 100644
--- a/sdk/lib/crt/wine/cpp.c
+++ b/sdk/lib/crt/wine/cpp.c
@@ -19,22 +19,22 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "config.h"
-#include "wine/port.h"
-
#include <stdarg.h>
+#include <stdbool.h>
#include "windef.h"
#include "winternl.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "msvcrt.h"
-#include "cppexcept.h"
#include "mtdll.h"
#include "cxx.h"
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
+CREATE_TYPE_INFO_VTABLE
+CREATE_EXCEPTION_OBJECT(exception)
+
struct __type_info_node
{
void *memPtr;
@@ -45,11 +45,10 @@ typedef exception bad_cast;
typedef exception bad_typeid;
typedef exception __non_rtti_object;
-extern const vtable_ptr MSVCRT_exception_vtable;
-extern const vtable_ptr MSVCRT_bad_typeid_vtable;
-extern const vtable_ptr MSVCRT_bad_cast_vtable;
-extern const vtable_ptr MSVCRT___non_rtti_object_vtable;
-extern const vtable_ptr MSVCRT_type_info_vtable;
+extern const vtable_ptr bad_typeid_vtable;
+extern const vtable_ptr bad_cast_vtable;
+extern const vtable_ptr __non_rtti_object_vtable;
+extern const vtable_ptr type_info_vtable;
/* get the vtable pointer for a C++ object */
static inline const vtable_ptr *get_vtable( void *obj )
@@ -120,24 +119,6 @@ static void dump_obj_locator( const rtti_object_locator *ptr )
}
#endif
-/* Internal common ctor for exception */
-static void EXCEPTION_ctor(exception *_this, const char** name)
-{
- _this->vtable = &MSVCRT_exception_vtable;
- if (*name)
- {
- unsigned int name_len = strlen(*name) + 1;
- _this->name = MSVCRT_malloc(name_len);
- memcpy(_this->name, *name, name_len);
- _this->do_free = TRUE;
- }
- else
- {
- _this->name = NULL;
- _this->do_free = FALSE;
- }
-}
-
#ifdef __REACTOS__
#include <internal/wine_msc.h>
#endif /* __REACTOS__ */
@@ -145,191 +126,119 @@ static void EXCEPTION_ctor(exception *_this, const char** name)
/******************************************************************
* ??0exception@@QAE@ABQBD@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_ctor,8)
-exception * __thiscall MSVCRT_exception_ctor(exception * _this, const char ** name)
+DEFINE_THISCALL_WRAPPER(exception_ctor,8)
+exception * __thiscall exception_ctor(exception * _this, const char ** name)
{
TRACE("(%p,%s)\n", _this, *name);
- EXCEPTION_ctor(_this, name);
- return _this;
+ return __exception_ctor(_this, *name, &exception_vtable);
}
/******************************************************************
* ??0exception@@QAE@ABQBDH@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_ctor_noalloc,12)
-exception * __thiscall MSVCRT_exception_ctor_noalloc(exception * _this, char ** name, int
noalloc)
+DEFINE_THISCALL_WRAPPER(exception_ctor_noalloc,12)
+exception * __thiscall exception_ctor_noalloc(exception * _this, char ** name, int
noalloc)
{
TRACE("(%p,%s)\n", _this, *name);
- _this->vtable = &MSVCRT_exception_vtable;
+ _this->vtable = &exception_vtable;
_this->name = *name;
_this->do_free = FALSE;
return _this;
}
-/******************************************************************
- * ??0exception@@QAE@ABV0@@Z (MSVCRT.@)
- */
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_copy_ctor,8)
-exception * __thiscall MSVCRT_exception_copy_ctor(exception * _this, const exception *
rhs)
-{
- TRACE("(%p,%p)\n", _this, rhs);
-
- if (!rhs->do_free)
- {
- _this->vtable = &MSVCRT_exception_vtable;
- _this->name = rhs->name;
- _this->do_free = FALSE;
- }
- else
- EXCEPTION_ctor(_this, (const char**)&rhs->name);
- TRACE("name = %s\n", _this->name);
- return _this;
-}
-
/******************************************************************
* ??0exception@@QAE@XZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_default_ctor,4)
-exception * __thiscall MSVCRT_exception_default_ctor(exception * _this)
-{
- static const char* empty = NULL;
-
- TRACE("(%p)\n", _this);
- EXCEPTION_ctor(_this, &empty);
- return _this;
-}
-
-/******************************************************************
- * ??1exception@@UAE@XZ (MSVCRT.@)
- */
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_dtor,4)
-void __thiscall MSVCRT_exception_dtor(exception * _this)
+DEFINE_THISCALL_WRAPPER(exception_default_ctor,4)
+exception * __thiscall exception_default_ctor(exception * _this)
{
TRACE("(%p)\n", _this);
- _this->vtable = &MSVCRT_exception_vtable;
- if (_this->do_free) MSVCRT_free(_this->name);
+ return __exception_ctor(_this, NULL, &exception_vtable);
}
/******************************************************************
* ??4exception@@QAEAAV0@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_opequals,8)
-exception * __thiscall MSVCRT_exception_opequals(exception * _this, const exception *
rhs)
+DEFINE_THISCALL_WRAPPER(exception_opequals,8)
+exception * __thiscall exception_opequals(exception * _this, const exception * rhs)
{
TRACE("(%p %p)\n", _this, rhs);
if (_this != rhs)
{
- MSVCRT_exception_dtor(_this);
- MSVCRT_exception_copy_ctor(_this, rhs);
+ exception_dtor(_this);
+ exception_copy_ctor(_this, rhs);
}
TRACE("name = %s\n", _this->name);
return _this;
}
-/******************************************************************
- * ??_Eexception@@UAEPAXI@Z (MSVCRT.@)
- */
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_vector_dtor,8)
-void * __thiscall MSVCRT_exception_vector_dtor(exception * _this, unsigned int flags)
-{
- TRACE("(%p %x)\n", _this, flags);
- if (flags & 2)
- {
- /* we have an array, with the number of elements stored before the first object
*/
- INT_PTR i, *ptr = (INT_PTR *)_this - 1;
-
- for (i = *ptr - 1; i >= 0; i--) MSVCRT_exception_dtor(_this + i);
- MSVCRT_operator_delete(ptr);
- }
- else
- {
- MSVCRT_exception_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
- }
- return _this;
-}
-
/******************************************************************
* ??_Gexception@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_exception_scalar_dtor,8)
-void * __thiscall MSVCRT_exception_scalar_dtor(exception * _this, unsigned int flags)
+DEFINE_THISCALL_WRAPPER(exception_scalar_dtor,8)
+void * __thiscall exception_scalar_dtor(exception * _this, unsigned int flags)
{
TRACE("(%p %x)\n", _this, flags);
- MSVCRT_exception_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ exception_dtor(_this);
+ if (flags & 1) operator_delete(_this);
return _this;
}
-/******************************************************************
- * ?what@exception@@UBEPBDXZ (MSVCRT.@)
- */
-DEFINE_THISCALL_WRAPPER(MSVCRT_what_exception,4)
-const char * __thiscall MSVCRT_what_exception(exception * _this)
-{
- TRACE("(%p) returning %s\n", _this, _this->name);
- return _this->name ? _this->name : "Unknown exception";
-}
-
/******************************************************************
* ??0bad_typeid@@QAE@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_copy_ctor,8)
-bad_typeid * __thiscall MSVCRT_bad_typeid_copy_ctor(bad_typeid * _this, const bad_typeid
* rhs)
+DEFINE_THISCALL_WRAPPER(bad_typeid_copy_ctor,8)
+bad_typeid * __thiscall bad_typeid_copy_ctor(bad_typeid * _this, const bad_typeid *
rhs)
{
TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_bad_typeid_vtable;
- return _this;
+ return __exception_copy_ctor(_this, rhs, &bad_typeid_vtable);
}
/******************************************************************
* ??0bad_typeid@@QAE@PBD@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_ctor,8)
-bad_typeid * __thiscall MSVCRT_bad_typeid_ctor(bad_typeid * _this, const char * name)
+DEFINE_THISCALL_WRAPPER(bad_typeid_ctor,8)
+bad_typeid * __thiscall bad_typeid_ctor(bad_typeid * _this, const char * name)
{
TRACE("(%p %s)\n", _this, name);
- EXCEPTION_ctor(_this, &name);
- _this->vtable = &MSVCRT_bad_typeid_vtable;
- return _this;
+ return __exception_ctor(_this, name, &bad_typeid_vtable);
}
/******************************************************************
* ??_Fbad_typeid@@QAEXXZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_default_ctor,4)
-bad_typeid * __thiscall MSVCRT_bad_typeid_default_ctor(bad_typeid * _this)
+DEFINE_THISCALL_WRAPPER(bad_typeid_default_ctor,4)
+bad_typeid * __thiscall bad_typeid_default_ctor(bad_typeid * _this)
{
- return MSVCRT_bad_typeid_ctor( _this, "bad typeid" );
+ return bad_typeid_ctor( _this, "bad typeid" );
}
/******************************************************************
* ??1bad_typeid@@UAE@XZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_dtor,4)
-void __thiscall MSVCRT_bad_typeid_dtor(bad_typeid * _this)
+DEFINE_THISCALL_WRAPPER(bad_typeid_dtor,4)
+void __thiscall bad_typeid_dtor(bad_typeid * _this)
{
TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
+ exception_dtor(_this);
}
/******************************************************************
* ??4bad_typeid@@QAEAAV0@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_opequals,8)
-bad_typeid * __thiscall MSVCRT_bad_typeid_opequals(bad_typeid * _this, const bad_typeid *
rhs)
+DEFINE_THISCALL_WRAPPER(bad_typeid_opequals,8)
+bad_typeid * __thiscall bad_typeid_opequals(bad_typeid * _this, const bad_typeid * rhs)
{
TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_opequals(_this, rhs);
+ exception_opequals(_this, rhs);
return _this;
}
/******************************************************************
* ??_Ebad_typeid@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_vector_dtor,8)
-void * __thiscall MSVCRT_bad_typeid_vector_dtor(bad_typeid * _this, unsigned int flags)
+DEFINE_THISCALL_WRAPPER(bad_typeid_vector_dtor,8)
+void * __thiscall bad_typeid_vector_dtor(bad_typeid * _this, unsigned int flags)
{
TRACE("(%p %x)\n", _this, flags);
if (flags & 2)
@@ -337,13 +246,13 @@ void * __thiscall MSVCRT_bad_typeid_vector_dtor(bad_typeid * _this,
unsigned int
/* we have an array, with the number of elements stored before the first object
*/
INT_PTR i, *ptr = (INT_PTR *)_this - 1;
- for (i = *ptr - 1; i >= 0; i--) MSVCRT_bad_typeid_dtor(_this + i);
- MSVCRT_operator_delete(ptr);
+ for (i = *ptr - 1; i >= 0; i--) bad_typeid_dtor(_this + i);
+ operator_delete(ptr);
}
else
{
- MSVCRT_bad_typeid_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ bad_typeid_dtor(_this);
+ if (flags & 1) operator_delete(_this);
}
return _this;
}
@@ -351,68 +260,64 @@ void * __thiscall MSVCRT_bad_typeid_vector_dtor(bad_typeid * _this,
unsigned int
/******************************************************************
* ??_Gbad_typeid@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_typeid_scalar_dtor,8)
-void * __thiscall MSVCRT_bad_typeid_scalar_dtor(bad_typeid * _this, unsigned int flags)
+DEFINE_THISCALL_WRAPPER(bad_typeid_scalar_dtor,8)
+void * __thiscall bad_typeid_scalar_dtor(bad_typeid * _this, unsigned int flags)
{
TRACE("(%p %x)\n", _this, flags);
- MSVCRT_bad_typeid_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ bad_typeid_dtor(_this);
+ if (flags & 1) operator_delete(_this);
return _this;
}
/******************************************************************
* ??0__non_rtti_object@@QAE@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT___non_rtti_object_copy_ctor,8)
-__non_rtti_object * __thiscall MSVCRT___non_rtti_object_copy_ctor(__non_rtti_object *
_this,
+DEFINE_THISCALL_WRAPPER(__non_rtti_object_copy_ctor,8)
+__non_rtti_object * __thiscall __non_rtti_object_copy_ctor(__non_rtti_object * _this,
const __non_rtti_object
* rhs)
{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_bad_typeid_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT___non_rtti_object_vtable;
- return _this;
+ TRACE("(%p %p)\n", _this, rhs);
+ return __exception_copy_ctor(_this, rhs, &__non_rtti_object_vtable);
}
/******************************************************************
* ??0__non_rtti_object@@QAE@PBD@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT___non_rtti_object_ctor,8)
-__non_rtti_object * __thiscall MSVCRT___non_rtti_object_ctor(__non_rtti_object * _this,
+DEFINE_THISCALL_WRAPPER(__non_rtti_object_ctor,8)
+__non_rtti_object * __thiscall __non_rtti_object_ctor(__non_rtti_object * _this,
const char * name)
{
TRACE("(%p %s)\n", _this, name);
- EXCEPTION_ctor(_this, &name);
- _this->vtable = &MSVCRT___non_rtti_object_vtable;
- return _this;
+ return __exception_ctor(_this, name, &__non_rtti_object_vtable);
}
/******************************************************************
* ??1__non_rtti_object@@UAE@XZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT___non_rtti_object_dtor,4)
-void __thiscall MSVCRT___non_rtti_object_dtor(__non_rtti_object * _this)
+DEFINE_THISCALL_WRAPPER(__non_rtti_object_dtor,4)
+void __thiscall __non_rtti_object_dtor(__non_rtti_object * _this)
{
TRACE("(%p)\n", _this);
- MSVCRT_bad_typeid_dtor(_this);
+ bad_typeid_dtor(_this);
}
/******************************************************************
* ??4__non_rtti_object@@QAEAAV0@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT___non_rtti_object_opequals,8)
-__non_rtti_object * __thiscall MSVCRT___non_rtti_object_opequals(__non_rtti_object *
_this,
+DEFINE_THISCALL_WRAPPER(__non_rtti_object_opequals,8)
+__non_rtti_object * __thiscall __non_rtti_object_opequals(__non_rtti_object * _this,
const __non_rtti_object
*rhs)
{
TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_bad_typeid_opequals(_this, rhs);
+ bad_typeid_opequals(_this, rhs);
return _this;
}
/******************************************************************
* ??_E__non_rtti_object@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT___non_rtti_object_vector_dtor,8)
-void * __thiscall MSVCRT___non_rtti_object_vector_dtor(__non_rtti_object * _this,
unsigned int flags)
+DEFINE_THISCALL_WRAPPER(__non_rtti_object_vector_dtor,8)
+void * __thiscall __non_rtti_object_vector_dtor(__non_rtti_object * _this, unsigned int
flags)
{
TRACE("(%p %x)\n", _this, flags);
if (flags & 2)
@@ -420,13 +325,13 @@ void * __thiscall
MSVCRT___non_rtti_object_vector_dtor(__non_rtti_object * _this
/* we have an array, with the number of elements stored before the first object
*/
INT_PTR i, *ptr = (INT_PTR *)_this - 1;
- for (i = *ptr - 1; i >= 0; i--) MSVCRT___non_rtti_object_dtor(_this + i);
- MSVCRT_operator_delete(ptr);
+ for (i = *ptr - 1; i >= 0; i--) __non_rtti_object_dtor(_this + i);
+ operator_delete(ptr);
}
else
{
- MSVCRT___non_rtti_object_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ __non_rtti_object_dtor(_this);
+ if (flags & 1) operator_delete(_this);
}
return _this;
}
@@ -434,12 +339,12 @@ void * __thiscall
MSVCRT___non_rtti_object_vector_dtor(__non_rtti_object * _this
/******************************************************************
* ??_G__non_rtti_object@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT___non_rtti_object_scalar_dtor,8)
-void * __thiscall MSVCRT___non_rtti_object_scalar_dtor(__non_rtti_object * _this,
unsigned int flags)
+DEFINE_THISCALL_WRAPPER(__non_rtti_object_scalar_dtor,8)
+void * __thiscall __non_rtti_object_scalar_dtor(__non_rtti_object * _this, unsigned int
flags)
{
TRACE("(%p %x)\n", _this, flags);
- MSVCRT___non_rtti_object_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ __non_rtti_object_dtor(_this);
+ if (flags & 1) operator_delete(_this);
return _this;
}
@@ -447,74 +352,68 @@ void * __thiscall
MSVCRT___non_rtti_object_scalar_dtor(__non_rtti_object * _this
* ??0bad_cast@@AAE@PBQBD@Z (MSVCRT.@)
* ??0bad_cast@@QAE@ABQBD@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_ctor,8)
-bad_cast * __thiscall MSVCRT_bad_cast_ctor(bad_cast * _this, const char ** name)
+DEFINE_THISCALL_WRAPPER(bad_cast_ctor,8)
+bad_cast * __thiscall bad_cast_ctor(bad_cast * _this, const char ** name)
{
TRACE("(%p %s)\n", _this, *name);
- EXCEPTION_ctor(_this, name);
- _this->vtable = &MSVCRT_bad_cast_vtable;
- return _this;
+ return __exception_ctor(_this, *name, &bad_cast_vtable);
}
/******************************************************************
* ??0bad_cast@@QAE@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_copy_ctor,8)
-bad_cast * __thiscall MSVCRT_bad_cast_copy_ctor(bad_cast * _this, const bad_cast * rhs)
+DEFINE_THISCALL_WRAPPER(bad_cast_copy_ctor,8)
+bad_cast * __thiscall bad_cast_copy_ctor(bad_cast * _this, const bad_cast * rhs)
{
TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_bad_cast_vtable;
- return _this;
+ return __exception_copy_ctor(_this, rhs, &bad_cast_vtable);
}
/******************************************************************
* ??0bad_cast@@QAE@PBD@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_ctor_charptr,8)
-bad_cast * __thiscall MSVCRT_bad_cast_ctor_charptr(bad_cast * _this, const char * name)
+DEFINE_THISCALL_WRAPPER(bad_cast_ctor_charptr,8)
+bad_cast * __thiscall bad_cast_ctor_charptr(bad_cast * _this, const char * name)
{
TRACE("(%p %s)\n", _this, name);
- EXCEPTION_ctor(_this, &name);
- _this->vtable = &MSVCRT_bad_cast_vtable;
- return _this;
+ return __exception_ctor(_this, name, &bad_cast_vtable);
}
/******************************************************************
* ??_Fbad_cast@@QAEXXZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_default_ctor,4)
-bad_cast * __thiscall MSVCRT_bad_cast_default_ctor(bad_cast * _this)
+DEFINE_THISCALL_WRAPPER(bad_cast_default_ctor,4)
+bad_cast * __thiscall bad_cast_default_ctor(bad_cast * _this)
{
- return MSVCRT_bad_cast_ctor_charptr( _this, "bad cast" );
+ return bad_cast_ctor_charptr( _this, "bad cast" );
}
/******************************************************************
* ??1bad_cast@@UAE@XZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_dtor,4)
-void __thiscall MSVCRT_bad_cast_dtor(bad_cast * _this)
+DEFINE_THISCALL_WRAPPER(bad_cast_dtor,4)
+void __thiscall bad_cast_dtor(bad_cast * _this)
{
TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
+ exception_dtor(_this);
}
/******************************************************************
* ??4bad_cast@@QAEAAV0@ABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_opequals,8)
-bad_cast * __thiscall MSVCRT_bad_cast_opequals(bad_cast * _this, const bad_cast * rhs)
+DEFINE_THISCALL_WRAPPER(bad_cast_opequals,8)
+bad_cast * __thiscall bad_cast_opequals(bad_cast * _this, const bad_cast * rhs)
{
TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_opequals(_this, rhs);
+ exception_opequals(_this, rhs);
return _this;
}
/******************************************************************
* ??_Ebad_cast@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_vector_dtor,8)
-void * __thiscall MSVCRT_bad_cast_vector_dtor(bad_cast * _this, unsigned int flags)
+DEFINE_THISCALL_WRAPPER(bad_cast_vector_dtor,8)
+void * __thiscall bad_cast_vector_dtor(bad_cast * _this, unsigned int flags)
{
TRACE("(%p %x)\n", _this, flags);
if (flags & 2)
@@ -522,13 +421,13 @@ void * __thiscall MSVCRT_bad_cast_vector_dtor(bad_cast * _this,
unsigned int fla
/* we have an array, with the number of elements stored before the first object
*/
INT_PTR i, *ptr = (INT_PTR *)_this - 1;
- for (i = *ptr - 1; i >= 0; i--) MSVCRT_bad_cast_dtor(_this + i);
- MSVCRT_operator_delete(ptr);
+ for (i = *ptr - 1; i >= 0; i--) bad_cast_dtor(_this + i);
+ operator_delete(ptr);
}
else
{
- MSVCRT_bad_cast_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ bad_cast_dtor(_this);
+ if (flags & 1) operator_delete(_this);
}
return _this;
}
@@ -536,20 +435,20 @@ void * __thiscall MSVCRT_bad_cast_vector_dtor(bad_cast * _this,
unsigned int fla
/******************************************************************
* ??_Gbad_cast@@UAEPAXI@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_cast_scalar_dtor,8)
-void * __thiscall MSVCRT_bad_cast_scalar_dtor(bad_cast * _this, unsigned int flags)
+DEFINE_THISCALL_WRAPPER(bad_cast_scalar_dtor,8)
+void * __thiscall bad_cast_scalar_dtor(bad_cast * _this, unsigned int flags)
{
TRACE("(%p %x)\n", _this, flags);
- MSVCRT_bad_cast_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
+ bad_cast_dtor(_this);
+ if (flags & 1) operator_delete(_this);
return _this;
}
/******************************************************************
* ??8type_info@@QBEHABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_opequals_equals,8)
-int __thiscall MSVCRT_type_info_opequals_equals(type_info * _this, const type_info *
rhs)
+DEFINE_THISCALL_WRAPPER(type_info_opequals_equals,8)
+int __thiscall type_info_opequals_equals(type_info * _this, const type_info * rhs)
{
int ret = !strcmp(_this->mangled + 1, rhs->mangled + 1);
TRACE("(%p %p) returning %d\n", _this, rhs, ret);
@@ -559,8 +458,8 @@ int __thiscall MSVCRT_type_info_opequals_equals(type_info * _this,
const type_in
/******************************************************************
* ??9type_info@@QBEHABV0@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_opnot_equals,8)
-int __thiscall MSVCRT_type_info_opnot_equals(type_info * _this, const type_info * rhs)
+DEFINE_THISCALL_WRAPPER(type_info_opnot_equals,8)
+int __thiscall type_info_opnot_equals(type_info * _this, const type_info * rhs)
{
int ret = !!strcmp(_this->mangled + 1, rhs->mangled + 1);
TRACE("(%p %p) returning %d\n", _this, rhs, ret);
@@ -570,8 +469,8 @@ int __thiscall MSVCRT_type_info_opnot_equals(type_info * _this, const
type_info
/******************************************************************
* ?before@type_info@@QBEHABV1@@Z (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_before,8)
-int __thiscall MSVCRT_type_info_before(type_info * _this, const type_info * rhs)
+DEFINE_THISCALL_WRAPPER(type_info_before,8)
+int __thiscall type_info_before(type_info * _this, const type_info * rhs)
{
int ret = strcmp(_this->mangled + 1, rhs->mangled + 1) < 0;
TRACE("(%p %p) returning %d\n", _this, rhs, ret);
@@ -581,18 +480,18 @@ int __thiscall MSVCRT_type_info_before(type_info * _this, const
type_info * rhs)
/******************************************************************
* ??1type_info@@UAE@XZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_dtor,4)
-void __thiscall MSVCRT_type_info_dtor(type_info * _this)
+DEFINE_THISCALL_WRAPPER(type_info_dtor,4)
+void __thiscall type_info_dtor(type_info * _this)
{
TRACE("(%p)\n", _this);
- MSVCRT_free(_this->name);
+ free(_this->name);
}
/******************************************************************
* ?name@type_info@@QBEPBDXZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_name,4)
-const char * __thiscall MSVCRT_type_info_name(type_info * _this)
+DEFINE_THISCALL_WRAPPER(type_info_name,4)
+const char * __thiscall type_info_name(type_info * _this)
{
if (!_this->name)
{
@@ -602,7 +501,7 @@ const char * __thiscall MSVCRT_type_info_name(type_info * _this)
* Is this '.' really part of the mangled name, or has it some other meaning
?
*/
char* name = __unDName(0, _this->mangled + 1, 0,
- MSVCRT_malloc, MSVCRT_free, UNDNAME_NO_ARGUMENTS |
UNDNAME_32_BIT_DECODE);
+ malloc, free, UNDNAME_NO_ARGUMENTS | UNDNAME_32_BIT_DECODE);
if (name)
{
unsigned int len = strlen(name);
@@ -614,7 +513,7 @@ const char * __thiscall MSVCRT_type_info_name(type_info * _this)
if (InterlockedCompareExchangePointer((void**)&_this->name, name, NULL))
{
/* Another thread set this member since we checked above - use it */
- MSVCRT_free(name);
+ free(name);
}
}
}
@@ -625,475 +524,76 @@ const char * __thiscall MSVCRT_type_info_name(type_info * _this)
/******************************************************************
* ?raw_name@type_info@@QBEPBDXZ (MSVCRT.@)
*/
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_raw_name,4)
-const char * __thiscall MSVCRT_type_info_raw_name(type_info * _this)
+DEFINE_THISCALL_WRAPPER(type_info_raw_name,4)
+const char * __thiscall type_info_raw_name(type_info * _this)
{
TRACE("(%p) returning %s\n", _this, _this->mangled);
return _this->mangled;
}
-/* Unexported */
-DEFINE_THISCALL_WRAPPER(MSVCRT_type_info_vector_dtor,8)
-void * __thiscall MSVCRT_type_info_vector_dtor(type_info * _this, unsigned int flags)
-{
- TRACE("(%p %x)\n", _this, flags);
- if (flags & 2)
- {
- /* we have an array, with the number of elements stored before the first object
*/
- INT_PTR i, *ptr = (INT_PTR *)_this - 1;
-
- for (i = *ptr - 1; i >= 0; i--) MSVCRT_type_info_dtor(_this + i);
- MSVCRT_operator_delete(ptr);
- }
- else
- {
- MSVCRT_type_info_dtor(_this);
- if (flags & 1) MSVCRT_operator_delete(_this);
- }
- return _this;
-}
-
#if _MSVCR_VER >= 80
typedef exception bad_alloc;
-extern const vtable_ptr MSVCRT_bad_alloc_vtable;
-
-static void bad_alloc_ctor(bad_alloc *this, const char **name)
-{
- MSVCRT_exception_ctor(this, name);
- this->vtable = &MSVCRT_bad_alloc_vtable;
-}
+extern const vtable_ptr bad_alloc_vtable;
/* bad_alloc class implementation */
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_alloc_copy_ctor,8)
-bad_alloc * __thiscall MSVCRT_bad_alloc_copy_ctor(bad_alloc * _this, const bad_alloc *
rhs)
+DEFINE_THISCALL_WRAPPER(bad_alloc_copy_ctor,8)
+bad_alloc * __thiscall bad_alloc_copy_ctor(bad_alloc * _this, const bad_alloc * rhs)
{
TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_bad_alloc_vtable;
- return _this;
+ return __exception_copy_ctor(_this, rhs, &bad_alloc_vtable);
}
-DEFINE_THISCALL_WRAPPER(MSVCRT_bad_alloc_dtor,4)
-void __thiscall MSVCRT_bad_alloc_dtor(bad_alloc * _this)
+DEFINE_THISCALL_WRAPPER(bad_alloc_dtor,4)
+void __thiscall bad_alloc_dtor(bad_alloc * _this)
{
TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
+ exception_dtor(_this);
}
#endif /* _MSVCR_VER >= 80 */
-#if _MSVCR_VER >= 100
-
-typedef struct {
- exception e;
- HRESULT hr;
-} scheduler_resource_allocation_error;
-extern const vtable_ptr MSVCRT_scheduler_resource_allocation_error_vtable;
-
-/* ??0scheduler_resource_allocation_error@Concurrency@@QAE@PBDJ@Z */
-/* ??0scheduler_resource_allocation_error@Concurrency@@QEAA@PEBDJ@Z */
-DEFINE_THISCALL_WRAPPER(scheduler_resource_allocation_error_ctor_name, 12)
-scheduler_resource_allocation_error* __thiscall
scheduler_resource_allocation_error_ctor_name(
- scheduler_resource_allocation_error *this, const char *name, HRESULT hr)
-{
- TRACE("(%p %s %x)\n", this, wine_dbgstr_a(name), hr);
- MSVCRT_exception_ctor(&this->e, &name);
- this->e.vtable = &MSVCRT_scheduler_resource_allocation_error_vtable;
- this->hr = hr;
- return this;
-}
-
-/* ??0scheduler_resource_allocation_error@Concurrency@@QAE@J@Z */
-/* ??0scheduler_resource_allocation_error@Concurrency@@QEAA@J@Z */
-DEFINE_THISCALL_WRAPPER(scheduler_resource_allocation_error_ctor, 8)
-scheduler_resource_allocation_error* __thiscall
scheduler_resource_allocation_error_ctor(
- scheduler_resource_allocation_error *this, HRESULT hr)
-{
- return scheduler_resource_allocation_error_ctor_name(this, NULL, hr);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_scheduler_resource_allocation_error_copy_ctor,8)
-scheduler_resource_allocation_error* __thiscall
MSVCRT_scheduler_resource_allocation_error_copy_ctor(
- scheduler_resource_allocation_error *this,
- const scheduler_resource_allocation_error *rhs)
-{
- TRACE("(%p,%p)\n", this, rhs);
+__ASM_BLOCK_BEGIN(vtables)
- if (!rhs->e.do_free)
- memcpy(this, rhs, sizeof(*this));
- else
- scheduler_resource_allocation_error_ctor_name(this, rhs->e.name,
rhs->hr);
- return this;
-}
-
-/* ?get_error_code@scheduler_resource_allocation_error@Concurrency@@QBEJXZ */
-/* ?get_error_code@scheduler_resource_allocation_error@Concurrency@@QEBAJXZ */
-DEFINE_THISCALL_WRAPPER(scheduler_resource_allocation_error_get_error_code, 4)
-HRESULT __thiscall scheduler_resource_allocation_error_get_error_code(
- const scheduler_resource_allocation_error *this)
-{
- TRACE("(%p)\n", this);
- return this->hr;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_scheduler_resource_allocation_error_dtor,4)
-void __thiscall MSVCRT_scheduler_resource_allocation_error_dtor(
- scheduler_resource_allocation_error * this)
-{
- TRACE("(%p)\n", this);
- MSVCRT_exception_dtor(&this->e);
-}
-
-typedef exception improper_lock;
-extern const vtable_ptr MSVCRT_improper_lock_vtable;
-
-/* ??0improper_lock@Concurrency@@QAE@PBD@Z */
-/* ??0improper_lock@Concurrency@@QEAA@PEBD@Z */
-DEFINE_THISCALL_WRAPPER(improper_lock_ctor_str, 8)
-improper_lock* __thiscall improper_lock_ctor_str(improper_lock *this, const char *str)
-{
- TRACE("(%p %p)\n", this, str);
- MSVCRT_exception_ctor(this, &str);
- this->vtable = &MSVCRT_improper_lock_vtable;
- return this;
-}
-
-/* ??0improper_lock@Concurrency@@QAE@XZ */
-/* ??0improper_lock@Concurrency@@QEAA@XZ */
-DEFINE_THISCALL_WRAPPER(improper_lock_ctor, 4)
-improper_lock* __thiscall improper_lock_ctor(improper_lock *this)
-{
- return improper_lock_ctor_str(this, NULL);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_improper_lock_copy_ctor,8)
-improper_lock * __thiscall MSVCRT_improper_lock_copy_ctor(improper_lock * _this, const
improper_lock * rhs)
-{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_improper_lock_vtable;
- return _this;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_improper_lock_dtor,4)
-void __thiscall MSVCRT_improper_lock_dtor(improper_lock * _this)
-{
- TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
-}
-
-typedef exception invalid_scheduler_policy_key;
-extern const vtable_ptr MSVCRT_invalid_scheduler_policy_key_vtable;
-
-/* ??0invalid_scheduler_policy_key@Concurrency@@QAE@PBD@Z */
-/* ??0invalid_scheduler_policy_key@Concurrency@@QEAA@PEBD@Z */
-DEFINE_THISCALL_WRAPPER(invalid_scheduler_policy_key_ctor_str, 8)
-invalid_scheduler_policy_key* __thiscall invalid_scheduler_policy_key_ctor_str(
- invalid_scheduler_policy_key *this, const char *str)
-{
- TRACE("(%p %p)\n", this, str);
- MSVCRT_exception_ctor(this, &str);
- this->vtable = &MSVCRT_invalid_scheduler_policy_key_vtable;
- return this;
-}
-
-/* ??0invalid_scheduler_policy_key@Concurrency@@QAE@XZ */
-/* ??0invalid_scheduler_policy_key@Concurrency@@QEAA@XZ */
-DEFINE_THISCALL_WRAPPER(invalid_scheduler_policy_key_ctor, 4)
-invalid_scheduler_policy_key* __thiscall invalid_scheduler_policy_key_ctor(
- invalid_scheduler_policy_key *this)
-{
- return invalid_scheduler_policy_key_ctor_str(this, NULL);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_invalid_scheduler_policy_key_copy_ctor,8)
-invalid_scheduler_policy_key * __thiscall
MSVCRT_invalid_scheduler_policy_key_copy_ctor(
- invalid_scheduler_policy_key * _this, const invalid_scheduler_policy_key * rhs)
-{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_invalid_scheduler_policy_key_vtable;
- return _this;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_invalid_scheduler_policy_key_dtor,4)
-void __thiscall MSVCRT_invalid_scheduler_policy_key_dtor(
- invalid_scheduler_policy_key * _this)
-{
- TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
-}
-
-typedef exception invalid_scheduler_policy_value;
-extern const vtable_ptr MSVCRT_invalid_scheduler_policy_value_vtable;
-
-/* ??0invalid_scheduler_policy_value@Concurrency@@QAE@PBD@Z */
-/* ??0invalid_scheduler_policy_value@Concurrency@@QEAA@PEBD@Z */
-DEFINE_THISCALL_WRAPPER(invalid_scheduler_policy_value_ctor_str, 8)
-invalid_scheduler_policy_value* __thiscall invalid_scheduler_policy_value_ctor_str(
- invalid_scheduler_policy_value *this, const char *str)
-{
- TRACE("(%p %p)\n", this, str);
- MSVCRT_exception_ctor(this, &str);
- this->vtable = &MSVCRT_invalid_scheduler_policy_value_vtable;
- return this;
-}
-
-/* ??0invalid_scheduler_policy_value@Concurrency@@QAE@XZ */
-/* ??0invalid_scheduler_policy_value@Concurrency@@QEAA@XZ */
-DEFINE_THISCALL_WRAPPER(invalid_scheduler_policy_value_ctor, 4)
-invalid_scheduler_policy_value* __thiscall invalid_scheduler_policy_value_ctor(
- invalid_scheduler_policy_value *this)
-{
- return invalid_scheduler_policy_value_ctor_str(this, NULL);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_invalid_scheduler_policy_value_copy_ctor,8)
-invalid_scheduler_policy_value * __thiscall
MSVCRT_invalid_scheduler_policy_value_copy_ctor(
- invalid_scheduler_policy_value * _this, const invalid_scheduler_policy_value *
rhs)
-{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_invalid_scheduler_policy_value_vtable;
- return _this;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_invalid_scheduler_policy_value_dtor,4)
-void __thiscall MSVCRT_invalid_scheduler_policy_value_dtor(
- invalid_scheduler_policy_value * _this)
-{
- TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
-}
-
-typedef exception invalid_scheduler_policy_thread_specification;
-extern const vtable_ptr MSVCRT_invalid_scheduler_policy_thread_specification_vtable;
-
-/* ??0invalid_scheduler_policy_thread_specification@Concurrency@@QAE@PBD@Z */
-/* ??0invalid_scheduler_policy_thread_specification@Concurrency@@QEAA@PEBD@Z */
-DEFINE_THISCALL_WRAPPER(invalid_scheduler_policy_thread_specification_ctor_str, 8)
-invalid_scheduler_policy_thread_specification* __thiscall
invalid_scheduler_policy_thread_specification_ctor_str(
- invalid_scheduler_policy_thread_specification *this, const char *str)
-{
- TRACE("(%p %p)\n", this, str);
- MSVCRT_exception_ctor(this, &str);
- this->vtable = &MSVCRT_invalid_scheduler_policy_thread_specification_vtable;
- return this;
-}
-
-/* ??0invalid_scheduler_policy_thread_specification@Concurrency@@QAE@XZ */
-/* ??0invalid_scheduler_policy_thread_specification@Concurrency@@QEAA@XZ */
-DEFINE_THISCALL_WRAPPER(invalid_scheduler_policy_thread_specification_ctor, 4)
-invalid_scheduler_policy_thread_specification* __thiscall
invalid_scheduler_policy_thread_specification_ctor(
- invalid_scheduler_policy_thread_specification *this)
-{
- return invalid_scheduler_policy_thread_specification_ctor_str(this, NULL);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_invalid_scheduler_policy_thread_specification_copy_ctor,8)
-invalid_scheduler_policy_thread_specification * __thiscall
MSVCRT_invalid_scheduler_policy_thread_specification_copy_ctor(
- invalid_scheduler_policy_thread_specification * _this, const
invalid_scheduler_policy_thread_specification * rhs)
-{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable =
&MSVCRT_invalid_scheduler_policy_thread_specification_vtable;
- return _this;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_invalid_scheduler_policy_thread_specification_dtor,4)
-void __thiscall MSVCRT_invalid_scheduler_policy_thread_specification_dtor(
- invalid_scheduler_policy_thread_specification * _this)
-{
- TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
-}
-
-typedef exception improper_scheduler_attach;
-extern const vtable_ptr MSVCRT_improper_scheduler_attach_vtable;
-
-/* ??0improper_scheduler_attach@Concurrency@@QAE@PBD@Z */
-/* ??0improper_scheduler_attach@Concurrency@@QEAA@PEBD@Z */
-DEFINE_THISCALL_WRAPPER(improper_scheduler_attach_ctor_str, 8)
-improper_scheduler_attach* __thiscall improper_scheduler_attach_ctor_str(
- improper_scheduler_attach *this, const char *str)
-{
- TRACE("(%p %p)\n", this, str);
- MSVCRT_exception_ctor(this, &str);
- this->vtable = &MSVCRT_improper_scheduler_attach_vtable;
- return this;
-}
-
-/* ??0improper_scheduler_attach@Concurrency@@QAE@XZ */
-/* ??0improper_scheduler_attach@Concurrency@@QEAA@XZ */
-DEFINE_THISCALL_WRAPPER(improper_scheduler_attach_ctor, 4)
-improper_scheduler_attach* __thiscall improper_scheduler_attach_ctor(
- improper_scheduler_attach *this)
-{
- return improper_scheduler_attach_ctor_str(this, NULL);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_improper_scheduler_attach_copy_ctor,8)
-improper_scheduler_attach * __thiscall MSVCRT_improper_scheduler_attach_copy_ctor(
- improper_scheduler_attach * _this, const improper_scheduler_attach * rhs)
-{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_improper_scheduler_attach_vtable;
- return _this;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_improper_scheduler_attach_dtor,4)
-void __thiscall MSVCRT_improper_scheduler_attach_dtor(
- improper_scheduler_attach * _this)
-{
- TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
-}
-
-typedef exception improper_scheduler_detach;
-extern const vtable_ptr MSVCRT_improper_scheduler_detach_vtable;
-
-/* ??0improper_scheduler_detach@Concurrency@@QAE@PBD@Z */
-/* ??0improper_scheduler_detach@Concurrency@@QEAA@PEBD@Z */
-DEFINE_THISCALL_WRAPPER(improper_scheduler_detach_ctor_str, 8)
-improper_scheduler_detach* __thiscall improper_scheduler_detach_ctor_str(
- improper_scheduler_detach *this, const char *str)
-{
- TRACE("(%p %p)\n", this, str);
- MSVCRT_exception_ctor(this, &str);
- this->vtable = &MSVCRT_improper_scheduler_detach_vtable;
- return this;
-}
-
-/* ??0improper_scheduler_detach@Concurrency@@QAE@XZ */
-/* ??0improper_scheduler_detach@Concurrency@@QEAA@XZ */
-DEFINE_THISCALL_WRAPPER(improper_scheduler_detach_ctor, 4)
-improper_scheduler_detach* __thiscall improper_scheduler_detach_ctor(
- improper_scheduler_detach *this)
-{
- return improper_scheduler_detach_ctor_str(this, NULL);
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_improper_scheduler_detach_copy_ctor,8)
-improper_scheduler_detach * __thiscall MSVCRT_improper_scheduler_detach_copy_ctor(
- improper_scheduler_detach * _this, const improper_scheduler_detach * rhs)
-{
- TRACE("(%p %p)\n", _this, rhs);
- MSVCRT_exception_copy_ctor(_this, rhs);
- _this->vtable = &MSVCRT_improper_scheduler_detach_vtable;
- return _this;
-}
-
-DEFINE_THISCALL_WRAPPER(MSVCRT_improper_scheduler_detach_dtor,4)
-void __thiscall MSVCRT_improper_scheduler_detach_dtor(
- improper_scheduler_detach * _this)
-{
- TRACE("(%p)\n", _this);
- MSVCRT_exception_dtor(_this);
-}
-
-#endif /* _MSVCR_VER >= 100 */
-
-#ifndef __GNUC__
-void __asm_dummy_vtables(void) {
-#endif
-
-__ASM_VTABLE(type_info,
- VTABLE_ADD_FUNC(MSVCRT_type_info_vector_dtor));
-__ASM_VTABLE(exception,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
#if _MSVCR_VER >= 80
__ASM_VTABLE(exception_old,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
+ VTABLE_ADD_FUNC(exception_vector_dtor)
+ VTABLE_ADD_FUNC(exception_what));
__ASM_VTABLE(bad_alloc,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
+ VTABLE_ADD_FUNC(exception_vector_dtor)
+ VTABLE_ADD_FUNC(exception_what));
#endif
__ASM_VTABLE(bad_typeid,
- VTABLE_ADD_FUNC(MSVCRT_bad_typeid_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
+ VTABLE_ADD_FUNC(bad_typeid_vector_dtor)
+ VTABLE_ADD_FUNC(exception_what));
__ASM_VTABLE(bad_cast,
- VTABLE_ADD_FUNC(MSVCRT_bad_cast_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
+ VTABLE_ADD_FUNC(bad_cast_vector_dtor)
+ VTABLE_ADD_FUNC(exception_what));
__ASM_VTABLE(__non_rtti_object,
- VTABLE_ADD_FUNC(MSVCRT___non_rtti_object_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-#if _MSVCR_VER >= 100
-__ASM_VTABLE(scheduler_resource_allocation_error,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-__ASM_VTABLE(improper_lock,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-__ASM_VTABLE(invalid_scheduler_policy_key,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-__ASM_VTABLE(invalid_scheduler_policy_value,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-__ASM_VTABLE(invalid_scheduler_policy_thread_specification,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-__ASM_VTABLE(improper_scheduler_attach,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-__ASM_VTABLE(improper_scheduler_detach,
- VTABLE_ADD_FUNC(MSVCRT_exception_vector_dtor)
- VTABLE_ADD_FUNC(MSVCRT_what_exception));
-#endif
+ VTABLE_ADD_FUNC(__non_rtti_object_vector_dtor)
+ VTABLE_ADD_FUNC(exception_what));
-#ifndef __GNUC__
-}
-#endif
+__ASM_BLOCK_END
-DEFINE_RTTI_DATA0( type_info, 0, ".?AVtype_info@@" )
#if _MSVCR_VER >= 80
-DEFINE_RTTI_DATA0( exception, 0, ".?AVexception@std@@" )
DEFINE_RTTI_DATA0( exception_old, 0, ".?AVexception@@" )
DEFINE_RTTI_DATA1( bad_typeid, 0, &exception_rtti_base_descriptor,
".?AVbad_typeid@std@@" )
DEFINE_RTTI_DATA1( bad_cast, 0, &exception_rtti_base_descriptor,
".?AVbad_cast@std@@" )
DEFINE_RTTI_DATA2( __non_rtti_object, 0, &bad_typeid_rtti_base_descriptor,
&exception_rtti_base_descriptor, ".?AV__non_rtti_object@std@@" )
DEFINE_RTTI_DATA1( bad_alloc, 0, &exception_rtti_base_descriptor,
".?AVbad_alloc@std@@" )
#else
-DEFINE_RTTI_DATA0( exception, 0, ".?AVexception@@" )
DEFINE_RTTI_DATA1( bad_typeid, 0, &exception_rtti_base_descriptor,
".?AVbad_typeid@@" )
DEFINE_RTTI_DATA1( bad_cast, 0, &exception_rtti_base_descriptor,
".?AVbad_cast@@" )
DEFINE_RTTI_DATA2( __non_rtti_object, 0, &bad_typeid_rtti_base_descriptor,
&exception_rtti_base_descriptor, ".?AV__non_rtti_object@@" )
#endif
-#if _MSVCR_VER >= 100
-DEFINE_RTTI_DATA1(scheduler_resource_allocation_error, 0,
&exception_rtti_base_descriptor,
- ".?AVscheduler_resource_allocation_error@Concurrency@@")
-DEFINE_RTTI_DATA1(improper_lock, 0, &exception_rtti_base_descriptor,
".?AVimproper_lock@Concurrency@@" )
-DEFINE_RTTI_DATA1(invalid_scheduler_policy_key, 0, &exception_rtti_base_descriptor,
- ".?AVinvalid_scheduler_policy_key@Concurrency@@" )
-DEFINE_RTTI_DATA1(invalid_scheduler_policy_value, 0,
&exception_rtti_base_descriptor,
- ".?AVinvalid_scheduler_policy_value@Concurrency@@" )
-DEFINE_RTTI_DATA1(invalid_scheduler_policy_thread_specification, 0,
&exception_rtti_base_descriptor,
- ".?AVinvalid_scheduler_policy_thread_specification@Concurrency@@" )
-DEFINE_RTTI_DATA1(improper_scheduler_attach, 0, &exception_rtti_base_descriptor,
- ".?AVimproper_scheduler_attach@Concurrency@@" )
-DEFINE_RTTI_DATA1(improper_scheduler_detach, 0, &exception_rtti_base_descriptor,
- ".?AVimproper_scheduler_detach@Concurrency@@" )
-#endif
-DEFINE_EXCEPTION_TYPE_INFO( exception, 0, NULL, NULL )
-DEFINE_EXCEPTION_TYPE_INFO( bad_typeid, 1, &exception_cxx_type_info, NULL )
-DEFINE_EXCEPTION_TYPE_INFO( bad_cast, 1, &exception_cxx_type_info, NULL )
-DEFINE_EXCEPTION_TYPE_INFO( __non_rtti_object, 2, &bad_typeid_cxx_type_info,
&exception_cxx_type_info )
+DEFINE_CXX_EXCEPTION0( exception, exception_dtor )
+DEFINE_CXX_DATA1( bad_typeid, &exception_cxx_type_info, bad_typeid_dtor )
+DEFINE_CXX_DATA1( bad_cast, &exception_cxx_type_info, bad_cast_dtor )
+DEFINE_CXX_DATA2( __non_rtti_object, &bad_typeid_cxx_type_info,
+ &exception_cxx_type_info, __non_rtti_object_dtor )
#if _MSVCR_VER >= 80
-DEFINE_EXCEPTION_TYPE_INFO( bad_alloc, 1, &exception_cxx_type_info, NULL )
-#endif
-#if _MSVCR_VER >= 100
-DEFINE_EXCEPTION_TYPE_INFO(scheduler_resource_allocation_error, 1,
&exception_cxx_type_info, NULL)
-DEFINE_EXCEPTION_TYPE_INFO(improper_lock, 1, &exception_cxx_type_info, NULL)
-DEFINE_EXCEPTION_TYPE_INFO(invalid_scheduler_policy_key, 1, &exception_cxx_type_info,
NULL)
-DEFINE_EXCEPTION_TYPE_INFO(invalid_scheduler_policy_value, 1,
&exception_cxx_type_info, NULL)
-DEFINE_EXCEPTION_TYPE_INFO(invalid_scheduler_policy_thread_specification, 1,
&exception_cxx_type_info, NULL)
-DEFINE_EXCEPTION_TYPE_INFO(improper_scheduler_attach, 1, &exception_cxx_type_info,
NULL)
-DEFINE_EXCEPTION_TYPE_INFO(improper_scheduler_detach, 1, &exception_cxx_type_info,
NULL)
+DEFINE_CXX_DATA1( bad_alloc, &exception_cxx_type_info, bad_alloc_dtor )
#endif
void msvcrt_init_exception(void *base)
@@ -1108,15 +608,6 @@ void msvcrt_init_exception(void *base)
init_bad_typeid_rtti(base);
init_bad_cast_rtti(base);
init___non_rtti_object_rtti(base);
-#if _MSVCR_VER >= 100
- init_scheduler_resource_allocation_error_rtti(base);
- init_improper_lock_rtti(base);
- init_invalid_scheduler_policy_key_rtti(base);
- init_invalid_scheduler_policy_value_rtti(base);
- init_invalid_scheduler_policy_thread_specification_rtti(base);
- init_improper_scheduler_attach_rtti(base);
- init_improper_scheduler_detach_rtti(base);
-#endif
init_exception_cxx(base);
init_bad_typeid_cxx(base);
@@ -1125,65 +616,15 @@ void msvcrt_init_exception(void *base)
#if _MSVCR_VER >= 80
init_bad_alloc_cxx(base);
#endif
-#if _MSVCR_VER >= 100
- init_scheduler_resource_allocation_error_cxx(base);
- init_improper_lock_cxx(base);
- init_invalid_scheduler_policy_key_cxx(base);
- init_invalid_scheduler_policy_value_cxx(base);
- init_invalid_scheduler_policy_thread_specification_cxx(base);
- init_improper_scheduler_attach_cxx(base);
- init_improper_scheduler_detach_cxx(base);
-#endif
#endif
}
#if _MSVCR_VER >= 80
-void throw_exception(exception_type et, HRESULT hr, const char *str)
+void throw_bad_alloc(void)
{
- switch(et) {
- case EXCEPTION_BAD_ALLOC: {
- bad_alloc e;
- bad_alloc_ctor(&e, &str);
- _CxxThrowException(&e, &bad_alloc_exception_type);
- }
-#if _MSVCR_VER >= 100
- case EXCEPTION_SCHEDULER_RESOURCE_ALLOCATION_ERROR: {
- scheduler_resource_allocation_error e;
- scheduler_resource_allocation_error_ctor_name(&e, str, hr);
- _CxxThrowException(&e.e,
&scheduler_resource_allocation_error_exception_type);
- }
- case EXCEPTION_IMPROPER_LOCK: {
- improper_lock e;
- improper_lock_ctor_str(&e, str);
- _CxxThrowException(&e, &improper_lock_exception_type);
- }
- case EXCEPTION_INVALID_SCHEDULER_POLICY_KEY: {
- invalid_scheduler_policy_key e;
- invalid_scheduler_policy_key_ctor_str(&e, str);
- _CxxThrowException(&e, &invalid_scheduler_policy_key_exception_type);
- }
- case EXCEPTION_INVALID_SCHEDULER_POLICY_VALUE: {
- invalid_scheduler_policy_value e;
- invalid_scheduler_policy_value_ctor_str(&e, str);
- _CxxThrowException(&e, &invalid_scheduler_policy_value_exception_type);
- }
- case EXCEPTION_INVALID_SCHEDULER_POLICY_THREAD_SPECIFICATION: {
- invalid_scheduler_policy_thread_specification e;
- invalid_scheduler_policy_thread_specification_ctor_str(&e, str);
- _CxxThrowException(&e,
&invalid_scheduler_policy_thread_specification_exception_type);
- }
- case EXCEPTION_IMPROPER_SCHEDULER_ATTACH: {
- improper_scheduler_attach e;
- improper_scheduler_attach_ctor_str(&e, str);
- _CxxThrowException(&e, &improper_scheduler_attach_exception_type);
- }
- case EXCEPTION_IMPROPER_SCHEDULER_DETACH: {
- improper_scheduler_detach e;
- improper_scheduler_detach_ctor_str(&e, str);
- _CxxThrowException(&e, &improper_scheduler_detach_exception_type);
- }
-#endif
- }
+ bad_alloc e;
+ __exception_ctor(&e, "bad allocation", &bad_alloc_vtable);
+ _CxxThrowException(&e, &bad_alloc_exception_type);
}
#endif
@@ -1198,10 +639,10 @@ void throw_exception(exception_type et, HRESULT hr, const char
*str)
* RETURNS
* The previously installed handler function, if any.
*/
-MSVCRT_terminate_function CDECL MSVCRT_set_terminate(MSVCRT_terminate_function func)
+terminate_function CDECL set_terminate(terminate_function func)
{
thread_data_t *data = msvcrt_get_thread_data();
- MSVCRT_terminate_function previous = data->terminate_handler;
+ terminate_function previous = data->terminate_handler;
TRACE("(%p) returning %p\n",func,previous);
data->terminate_handler = func;
return previous;
@@ -1210,7 +651,7 @@ MSVCRT_terminate_function CDECL
MSVCRT_set_terminate(MSVCRT_terminate_function f
/******************************************************************
* _get_terminate (MSVCRT.@)
*/
-MSVCRT_terminate_function CDECL MSVCRT__get_terminate(void)
+terminate_function CDECL _get_terminate(void)
{
thread_data_t *data = msvcrt_get_thread_data();
TRACE("returning %p\n", data->terminate_handler);
@@ -1228,10 +669,10 @@ MSVCRT_terminate_function CDECL MSVCRT__get_terminate(void)
* RETURNS
* The previously installed handler function, if any.
*/
-MSVCRT_unexpected_function CDECL MSVCRT_set_unexpected(MSVCRT_unexpected_function func)
+unexpected_function CDECL set_unexpected(unexpected_function func)
{
thread_data_t *data = msvcrt_get_thread_data();
- MSVCRT_unexpected_function previous = data->unexpected_handler;
+ unexpected_function previous = data->unexpected_handler;
TRACE("(%p) returning %p\n",func,previous);
data->unexpected_handler = func;
return previous;
@@ -1240,7 +681,7 @@ MSVCRT_unexpected_function CDECL
MSVCRT_set_unexpected(MSVCRT_unexpected_functio
/******************************************************************
* _get_unexpected (MSVCRT.@)
*/
-MSVCRT_unexpected_function CDECL MSVCRT__get_unexpected(void)
+unexpected_function CDECL _get_unexpected(void)
{
thread_data_t *data = msvcrt_get_thread_data();
TRACE("returning %p\n", data->unexpected_handler);
@@ -1250,10 +691,10 @@ MSVCRT_unexpected_function CDECL MSVCRT__get_unexpected(void)
/******************************************************************
* ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z
(MSVCRT.@)
*/
-MSVCRT__se_translator_function CDECL
MSVCRT__set_se_translator(MSVCRT__se_translator_function func)
+_se_translator_function CDECL _set_se_translator(_se_translator_function func)
{
thread_data_t *data = msvcrt_get_thread_data();
- MSVCRT__se_translator_function previous = data->se_translator;
+ _se_translator_function previous = data->se_translator;
TRACE("(%p) returning %p\n",func,previous);
data->se_translator = func;
return previous;
@@ -1272,21 +713,21 @@ MSVCRT__se_translator_function CDECL
MSVCRT__set_se_translator(MSVCRT__se_transl
* handler installed by calling set_terminate(), or (by default) abort()
* is called.
*/
-void CDECL MSVCRT_terminate(void)
+void CDECL terminate(void)
{
thread_data_t *data = msvcrt_get_thread_data();
if (data->terminate_handler) data->terminate_handler();
- MSVCRT_abort();
+ abort();
}
/******************************************************************
* ?unexpected@@YAXXZ (MSVCRT.@)
*/
-void CDECL MSVCRT_unexpected(void)
+void CDECL unexpected(void)
{
thread_data_t *data = msvcrt_get_thread_data();
if (data->unexpected_handler) data->unexpected_handler();
- MSVCRT_terminate();
+ terminate();
}
@@ -1309,16 +750,15 @@ void CDECL MSVCRT_unexpected(void)
* of using one of the C++ dynamic cast statements.
*/
#ifndef __x86_64__
-const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
+const type_info* CDECL __RTtypeid(void *cppobj)
{
const type_info *ret;
if (!cppobj)
{
bad_typeid e;
- MSVCRT_bad_typeid_ctor( &e, "Attempted a typeid of NULL pointer!"
);
+ bad_typeid_ctor( &e, "Attempted a typeid of NULL pointer!" );
_CxxThrowException( &e, &bad_typeid_exception_type );
- return NULL;
}
__TRY
@@ -1329,9 +769,8 @@ const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
__EXCEPT_PAGE_FAULT
{
__non_rtti_object e;
- MSVCRT___non_rtti_object_ctor( &e, "Bad read pointer - no RTTI
data!" );
+ __non_rtti_object_ctor( &e, "Bad read pointer - no RTTI data!" );
_CxxThrowException( &e, &__non_rtti_object_exception_type );
- return NULL;
}
__ENDTRY
return ret;
@@ -1339,16 +778,15 @@ const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
#else
-const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
+const type_info* CDECL __RTtypeid(void *cppobj)
{
const type_info *ret;
if (!cppobj)
{
bad_typeid e;
- MSVCRT_bad_typeid_ctor( &e, "Attempted a typeid of NULL pointer!"
);
+ bad_typeid_ctor( &e, "Attempted a typeid of NULL pointer!" );
_CxxThrowException( &e, &bad_typeid_exception_type );
- return NULL;
}
__TRY
@@ -1366,9 +804,8 @@ const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
__EXCEPT_PAGE_FAULT
{
__non_rtti_object e;
- MSVCRT___non_rtti_object_ctor( &e, "Bad read pointer - no RTTI
data!" );
+ __non_rtti_object_ctor( &e, "Bad read pointer - no RTTI data!" );
_CxxThrowException( &e, &__non_rtti_object_exception_type );
- return NULL;
}
__ENDTRY
return ret;
@@ -1398,7 +835,7 @@ const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
* of using one of the C++ dynamic cast statements.
*/
#ifndef __x86_64__
-void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
+void* CDECL __RTDynamicCast(void *cppobj, int unknown,
type_info *src, type_info *dst,
int do_throw)
{
@@ -1446,16 +883,15 @@ void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
{
const char *msg = "Bad dynamic_cast!";
bad_cast e;
- MSVCRT_bad_cast_ctor( &e, &msg );
+ bad_cast_ctor( &e, &msg );
_CxxThrowException( &e, &bad_cast_exception_type );
}
}
__EXCEPT_PAGE_FAULT
{
__non_rtti_object e;
- MSVCRT___non_rtti_object_ctor( &e, "Access violation - no RTTI
data!" );
+ __non_rtti_object_ctor( &e, "Access violation - no RTTI data!" );
_CxxThrowException( &e, &__non_rtti_object_exception_type );
- return NULL;
}
__ENDTRY
return ret;
@@ -1463,7 +899,7 @@ void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
#else
-void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
+void* CDECL __RTDynamicCast(void *cppobj, int unknown,
type_info *src, type_info *dst,
int do_throw)
{
@@ -1509,16 +945,15 @@ void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
{
const char *msg = "Bad dynamic_cast!";
bad_cast e;
- MSVCRT_bad_cast_ctor( &e, &msg );
+ bad_cast_ctor( &e, &msg );
_CxxThrowException( &e, &bad_cast_exception_type );
}
}
__EXCEPT_PAGE_FAULT
{
__non_rtti_object e;
- MSVCRT___non_rtti_object_ctor( &e, "Access violation - no RTTI
data!" );
+ __non_rtti_object_ctor( &e, "Access violation - no RTTI data!" );
_CxxThrowException( &e, &__non_rtti_object_exception_type );
- return NULL;
}
__ENDTRY
return ret;
@@ -1542,7 +977,7 @@ void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
* This function is usually called by compiler generated code as a result
* of using one of the C++ dynamic cast statements.
*/
-void* CDECL MSVCRT___RTCastToVoid(void *cppobj)
+void* CDECL __RTCastToVoid(void *cppobj)
{
void *ret;
@@ -1556,9 +991,8 @@ void* CDECL MSVCRT___RTCastToVoid(void *cppobj)
__EXCEPT_PAGE_FAULT
{
__non_rtti_object e;
- MSVCRT___non_rtti_object_ctor( &e, "Access violation - no RTTI
data!" );
+ __non_rtti_object_ctor( &e, "Access violation - no RTTI data!" );
_CxxThrowException( &e, &__non_rtti_object_exception_type );
- return NULL;
}
__ENDTRY
return ret;
@@ -1569,7 +1003,7 @@ void* CDECL MSVCRT___RTCastToVoid(void *cppobj)
* _CxxThrowException (MSVCRT.@)
*/
#ifndef __x86_64__
-void WINAPI _CxxThrowException( exception *object, const cxx_exception_type *type )
+void WINAPI _CxxThrowException( void *object, const cxx_exception_type *type )
{
ULONG_PTR args[3];
@@ -1579,7 +1013,7 @@ void WINAPI _CxxThrowException( exception *object, const
cxx_exception_type *typ
RaiseException( CXX_EXCEPTION, EH_NONCONTINUABLE, 3, args );
}
#else
-void WINAPI _CxxThrowException( exception *object, const cxx_exception_type *type )
+void WINAPI _CxxThrowException( void *object, const cxx_exception_type *type )
{
ULONG_PTR args[4];
@@ -1632,7 +1066,7 @@ int __cdecl _is_exception_typeof(const type_info *ti,
EXCEPTION_POINTERS *ep)
__ENDTRY
if(ret == -1)
- MSVCRT_terminate();
+ terminate();
return ret;
}
#else
@@ -1673,7 +1107,7 @@ int __cdecl _is_exception_typeof(const type_info *ti,
EXCEPTION_POINTERS *ep)
__ENDTRY
if(ret == -1)
- MSVCRT_terminate();
+ terminate();
return ret;
}
#endif
@@ -1695,7 +1129,7 @@ const char * __thiscall type_info_name_internal_method(type_info *
_this, struct
static int once;
if (node && !once++) FIXME("type_info_node parameter ignored\n");
- return MSVCRT_type_info_name(_this);
+ return type_info_name(_this);
}
#endif /* _MSVCR_VER >= 80 */
@@ -1721,7 +1155,7 @@ void __cdecl __ExceptionPtrCreate(exception_ptr *ep)
ep->ref = NULL;
}
-#if defined(__i386__) && !defined(__MINGW32__)
+#ifdef __ASM_USE_THISCALL_WRAPPER
extern void call_dtor(const cxx_exception_type *type, void *func, void *object);
__ASM_GLOBAL_FUNC( call_dtor,
@@ -1812,7 +1246,7 @@ void __cdecl __ExceptionPtrRethrow(const exception_ptr *ep)
static const char *exception_msg = "bad exception";
exception e;
- MSVCRT_exception_ctor(&e, &exception_msg);
+ exception_ctor(&e, &exception_msg);
_CxxThrowException(&e, &exception_exception_type);
return;
}
@@ -1942,7 +1376,7 @@ void __cdecl __ExceptionPtrCurrentException(exception_ptr *ep)
* ?__ExceptionPtrToBool@@YA_NPBX@Z
* ?__ExceptionPtrToBool@@YA_NPEBX@Z
*/
-MSVCRT_bool __cdecl __ExceptionPtrToBool(exception_ptr *ep)
+bool __cdecl __ExceptionPtrToBool(exception_ptr *ep)
{
return !!ep->rec;
}
@@ -2031,7 +1465,7 @@ void __cdecl __ExceptionPtrCopyException(exception_ptr *ep,
}
#endif
-MSVCRT_bool __cdecl __ExceptionPtrCompare(const exception_ptr *ep1, const exception_ptr
*ep2)
+bool __cdecl __ExceptionPtrCompare(const exception_ptr *ep1, const exception_ptr *ep2)
{
return ep1->rec == ep2->rec;
}
@@ -2059,27 +1493,27 @@ typedef struct
char name[1];
} type_info_entry;
-static void* CDECL type_info_entry_malloc(MSVCRT_size_t size)
+static void* CDECL type_info_entry_malloc(size_t size)
{
- type_info_entry *ret = MSVCRT_malloc(FIELD_OFFSET(type_info_entry, name) + size);
+ type_info_entry *ret = malloc(FIELD_OFFSET(type_info_entry, name) + size);
return ret->name;
}
static void CDECL type_info_entry_free(void *ptr)
{
ptr = (char*)ptr - FIELD_OFFSET(type_info_entry, name);
- MSVCRT_free(ptr);
+ free(ptr);
}
/******************************************************************
* __std_type_info_compare (UCRTBASE.@)
*/
-int CDECL MSVCRT_type_info_compare(const type_info140 *l, const type_info140 *r)
+int CDECL __std_type_info_compare(const type_info140 *l, const type_info140 *r)
{
int ret;
if (l == r) ret = 0;
- else ret = MSVCRT_strcmp(l->mangled + 1, r->mangled + 1);
+ else ret = strcmp(l->mangled + 1, r->mangled + 1);
TRACE("(%p %p) returning %d\n", l, r, ret);
return ret;
}
@@ -2087,7 +1521,7 @@ int CDECL MSVCRT_type_info_compare(const type_info140 *l, const
type_info140 *r)
/******************************************************************
* __std_type_info_name (UCRTBASE.@)
*/
-const char* CDECL MSVCRT_type_info_name_list(type_info140 *ti, SLIST_HEADER *header)
+const char* CDECL __std_type_info_name(type_info140 *ti, SLIST_HEADER *header)
{
if (!ti->name)
{
@@ -2118,7 +1552,7 @@ const char* CDECL MSVCRT_type_info_name_list(type_info140 *ti,
SLIST_HEADER *hea
/******************************************************************
* __std_type_info_destroy_list (UCRTBASE.@)
*/
-void CDECL MSVCRT_type_info_destroy_list(SLIST_HEADER *header)
+void CDECL __std_type_info_destroy_list(SLIST_HEADER *header)
{
SLIST_ENTRY *cur, *next;
@@ -2127,16 +1561,16 @@ void CDECL MSVCRT_type_info_destroy_list(SLIST_HEADER *header)
for(cur = InterlockedFlushSList(header); cur; cur = next)
{
next = cur->Next;
- MSVCRT_free(cur);
+ free(cur);
}
}
/******************************************************************
* __std_type_info_hash (UCRTBASE.@)
*/
-MSVCRT_size_t CDECL MSVCRT_type_info_hash(const type_info140 *ti)
+size_t CDECL __std_type_info_hash(const type_info140 *ti)
{
- MSVCRT_size_t hash, fnv_prime;
+ size_t hash, fnv_prime;
const char *p;
#ifdef _WIN64
@@ -2162,26 +1596,3 @@ MSVCRT_size_t CDECL MSVCRT_type_info_hash(const type_info140 *ti)
}
#endif /* _MSVCR_VER >= 140 */
-
-#if _MSVCR_VER >= 100
-
-enum ConcRT_EventType
-{
- CONCRT_EVENT_GENERIC,
- CONCRT_EVENT_START,
- CONCRT_EVENT_END,
- CONCRT_EVENT_BLOCK,
- CONCRT_EVENT_UNBLOCK,
- CONCRT_EVENT_YIELD,
- CONCRT_EVENT_ATTACH,
- CONCRT_EVENT_DETACH
-};
-
-/* ?_Trace_ppl_function@Concurrency@@YAXABU_GUID@@EW4ConcRT_EventType@1@@Z */
-/* ?_Trace_ppl_function@Concurrency@@YAXAEBU_GUID@@EW4ConcRT_EventType@1@@Z */
-void __cdecl Concurrency__Trace_ppl_function(const GUID *guid, unsigned char level, enum
ConcRT_EventType type)
-{
- FIXME("(%s %u %i) stub\n", debugstr_guid(guid), level, type);
-}
-
-#endif /* _MSVCR_VER >= 100 */
diff --git a/sdk/lib/crt/wine/cppexcept.h b/sdk/lib/crt/wine/cppexcept.h
index 69fb3c5eed9..26abc4aed24 100644
--- a/sdk/lib/crt/wine/cppexcept.h
+++ b/sdk/lib/crt/wine/cppexcept.h
@@ -29,6 +29,7 @@
#define CXX_EXCEPTION 0xe06d7363
#define FUNC_DESCR_SYNCHRONOUS 1 /* synchronous exceptions only (built with /EHs and
/EHsc) */
+#define FUNC_DESCR_NOEXCEPT 4 /* noexcept function */
typedef void (*vtable_ptr)(void);
@@ -124,7 +125,7 @@ typedef struct
} cxx_exception_type;
#endif
-void WINAPI _CxxThrowException(exception*,const cxx_exception_type*);
+void WINAPI _CxxThrowException(void*,const cxx_exception_type*);
int CDECL _XcptFilter(NTSTATUS, PEXCEPTION_POINTERS);
static inline const char *dbgstr_type_info( const type_info *info )
@@ -155,36 +156,35 @@ static inline void *get_this_pointer( const this_ptr_offsets *off,
void *object
}
#ifndef __x86_64__
-#define DEFINE_EXCEPTION_TYPE_INFO(type, base_no, cl1, cl2) \
-\
+#define DEFINE_CXX_TYPE_INFO(type) \
static const cxx_type_info type ## _cxx_type_info = { \
0, \
& type ##_type_info, \
{ 0, -1, 0 }, \
sizeof(type), \
- (cxx_copy_ctor)THISCALL(MSVCRT_ ## type ##_copy_ctor) \
-}; \
-\
-static const cxx_type_info_table type ## _type_info_table = { \
+ (cxx_copy_ctor)THISCALL(type ##_copy_ctor) \
+};
+
+#define DEFINE_CXX_EXCEPTION(type, base_no, cl1, cl2, dtor) \
+static const cxx_type_info_table type ## _cxx_type_table = { \
base_no+1, \
{ \
& type ## _cxx_type_info, \
cl1, \
- cl2 \
+ cl2, \
} \
}; \
\
static const cxx_exception_type type ## _exception_type = { \
0, \
- (cxx_copy_ctor)THISCALL(MSVCRT_ ## type ## _dtor), \
+ (cxx_copy_ctor)THISCALL(dtor), \
NULL, \
- & type ## _type_info_table \
+ & type ## _cxx_type_table \
};
#else
-#define DEFINE_EXCEPTION_TYPE_INFO(type, base_no, cl1, cl2) \
-\
+#define DEFINE_CXX_TYPE_INFO(type) \
static cxx_type_info type ## _cxx_type_info = { \
0, \
0xdeadbeef, \
@@ -193,12 +193,19 @@ static cxx_type_info type ## _cxx_type_info = { \
0xdeadbeef \
}; \
\
-static cxx_type_info_table type ## _type_info_table = { \
+static void init_ ## type ## _cxx_type_info(char *base) \
+{ \
+ type ## _cxx_type_info.type_info = (char *)&type ## _type_info - base; \
+ type ## _cxx_type_info.copy_ctor = (char *)type ## _copy_ctor - base; \
+}
+
+#define DEFINE_CXX_EXCEPTION(type, base_no, cl1, cl2, dtor) \
+static cxx_type_info_table type ## _cxx_type_table = { \
base_no+1, \
{ \
0xdeadbeef, \
0xdeadbeef, \
- 0xdeadbeef \
+ 0xdeadbeef, \
} \
}; \
\
@@ -211,14 +218,116 @@ static cxx_exception_type type ##_exception_type = { \
\
static void init_ ## type ## _cxx(char *base) \
{ \
- type ## _cxx_type_info.type_info = (char *)&type ## _type_info - base; \
- type ## _cxx_type_info.copy_ctor = (char *)MSVCRT_ ## type ## _copy_ctor - base; \
- type ## _type_info_table.info[0] = (char *)&type ## _cxx_type_info - base; \
- type ## _type_info_table.info[1] = (char *)cl1 - base; \
- type ## _type_info_table.info[2] = (char *)cl2 - base; \
- type ## _exception_type.destructor = (char *)MSVCRT_ ## type ## _dtor - base;
\
- type ## _exception_type.type_info_table = (char *)&type ## _type_info_table -
base; \
+ init_ ## type ## _cxx_type_info(base); \
+ type ## _cxx_type_table.info[0] = (char *)&type ## _cxx_type_info - base; \
+ type ## _cxx_type_table.info[1] = (char *)cl1 - base; \
+ type ## _cxx_type_table.info[2] = (char *)cl2 - base; \
+ type ## _exception_type.destructor = (char *)dtor - base; \
+ type ## _exception_type.type_info_table = (char *)&type ## _cxx_type_table -
base; \
}
+
#endif
+#define DEFINE_CXX_DATA(type, base_no, cl1, cl2, dtor) \
+DEFINE_CXX_TYPE_INFO(type) \
+DEFINE_CXX_EXCEPTION(type, base_no, cl1, cl2, dtor)
+
+#define DEFINE_CXX_EXCEPTION0(name, dtor) \
+ DEFINE_CXX_EXCEPTION(name, 0, NULL, NULL, dtor)
+
+#define DEFINE_CXX_DATA0(name, dtor) \
+ DEFINE_CXX_DATA(name, 0, NULL, NULL, dtor)
+#define DEFINE_CXX_DATA1(name, cl1, dtor) \
+ DEFINE_CXX_DATA(name, 1, cl1, NULL, dtor)
+#define DEFINE_CXX_DATA2(name, cl1, cl2, dtor) \
+ DEFINE_CXX_DATA(name, 2, cl1, cl2, dtor)
+
+#if _MSVCR_VER >= 80
+#define EXCEPTION_MANGLED_NAME ".?AVexception@std@@"
+#else
+#define EXCEPTION_MANGLED_NAME ".?AVexception@@"
+#endif
+
+#define CREATE_EXCEPTION_OBJECT(exception_name) \
+static exception* __exception_ctor(exception *this, const char *str, const vtable_ptr
*vtbl) \
+{ \
+ if (str) \
+ { \
+ unsigned int len = strlen(str) + 1; \
+ this->name = malloc(len); \
+ memcpy(this->name, str, len); \
+ this->do_free = TRUE; \
+ } \
+ else \
+ { \
+ this->name = NULL; \
+ this->do_free = FALSE; \
+ } \
+ this->vtable = vtbl; \
+ return this; \
+} \
+\
+static exception* __exception_copy_ctor(exception *this, const exception *rhs, const
vtable_ptr *vtbl) \
+{ \
+ if (rhs->do_free) \
+ { \
+ __exception_ctor(this, rhs->name, vtbl); \
+ } \
+ else \
+ { \
+ *this = *rhs; \
+ this->vtable = vtbl; \
+ } \
+ return this; \
+} \
+extern const vtable_ptr exception_name ## _vtable; \
+exception* __thiscall exception_name ## _copy_ctor(exception *this, const exception
*rhs); \
+DEFINE_THISCALL_WRAPPER(exception_name ## _copy_ctor,8) \
+exception* __thiscall exception_name ## _copy_ctor(exception *this, const exception *rhs)
\
+{ \
+ return __exception_copy_ctor(this, rhs, & exception_name ## _vtable); \
+} \
+\
+void __thiscall exception_name ## _dtor(exception *this); \
+DEFINE_THISCALL_WRAPPER(exception_name ## _dtor,4) \
+void __thiscall exception_name ## _dtor(exception *this) \
+{ \
+ if (this->do_free) free(this->name); \
+} \
+\
+void* __thiscall exception_name ## _vector_dtor(exception *this, unsigned int flags); \
+DEFINE_THISCALL_WRAPPER(exception_name ## _vector_dtor,8) \
+void* __thiscall exception_name ## _vector_dtor(exception *this, unsigned int flags) \
+{ \
+ if (flags & 2) \
+ { \
+ INT_PTR i, *ptr = (INT_PTR *)this - 1; \
+\
+ for (i = *ptr - 1; i >= 0; i--) exception_name ## _dtor(this + i); \
+ operator_delete(ptr); \
+ } \
+ else \
+ { \
+ exception_name ## _dtor(this); \
+ if (flags & 1) operator_delete(this); \
+ } \
+ return this; \
+} \
+\
+const char* __thiscall exception_name ## _what(exception *this); \
+DEFINE_THISCALL_WRAPPER(exception_name ## _what,4) \
+const char* __thiscall exception_name ## _what(exception *this) \
+{ \
+ return this->name ? this->name : "Unknown exception"; \
+} \
+\
+__ASM_BLOCK_BEGIN(exception_name ## _vtables) \
+__ASM_VTABLE(exception_name, \
+ VTABLE_ADD_FUNC(exception_name ## _vector_dtor) \
+ VTABLE_ADD_FUNC(exception_name ## _what)); \
+__ASM_BLOCK_END \
+\
+DEFINE_RTTI_DATA0(exception_name, 0, EXCEPTION_MANGLED_NAME) \
+DEFINE_CXX_TYPE_INFO(exception_name)
+
#endif /* __MSVCRT_CPPEXCEPT_H */
diff --git a/sdk/lib/crt/wine/cxx.h b/sdk/lib/crt/wine/cxx.h
index 58afc75bd15..d1bfb7cc381 100644
--- a/sdk/lib/crt/wine/cxx.h
+++ b/sdk/lib/crt/wine/cxx.h
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "wine/asm.h"
+#include "cppexcept.h"
#ifdef _MSC_VER
#define __ASM_VTABLE(name,funcs)
@@ -29,8 +29,8 @@
__asm__(".data\n" \
"\t.balign 8\n" \
"\t.quad " __ASM_NAME(#name "_rtti") "\n" \
- "\t.globl " __ASM_NAME("MSVCRT_" #name
"_vtable") "\n" \
- __ASM_NAME("MSVCRT_" #name "_vtable") ":\n" \
+ "\t.globl " __ASM_NAME(#name "_vtable") "\n"
\
+ __ASM_NAME(#name "_vtable") ":\n" \
funcs "\n\t.text")
#else
@@ -41,8 +41,8 @@
__asm__(".data\n" \
"\t.balign 4\n" \
"\t.long " __ASM_NAME(#name "_rtti") "\n" \
- "\t.globl " __ASM_NAME("MSVCRT_" #name
"_vtable") "\n" \
- __ASM_NAME("MSVCRT_" #name "_vtable") ":\n" \
+ "\t.globl " __ASM_NAME(#name "_vtable") "\n"
\
+ __ASM_NAME(#name "_vtable") ":\n" \
funcs "\n\t.text")
#endif /* _WIN64 */
@@ -50,9 +50,9 @@
#ifndef __x86_64__
-#define DEFINE_RTTI_DATA(name, off, base_classes_no, cl1, cl2, cl3, cl4, cl5, cl6, cl7,
cl8, cl9, mangled_name) \
+#define DEFINE_RTTI_BASE(name, base_classes_no, mangled_name) \
static type_info name ## _type_info = { \
- &MSVCRT_type_info_vtable, \
+ &type_info_vtable, \
NULL, \
mangled_name \
}; \
@@ -62,7 +62,10 @@ static const rtti_base_descriptor name ## _rtti_base_descriptor = { \
base_classes_no, \
{ 0, -1, 0}, \
64 \
-}; \
+};
+
+#define DEFINE_RTTI_DATA(name, off, base_classes_no, cl1, cl2, cl3, cl4, cl5, cl6, cl7,
cl8, cl9, mangled_name) \
+ DEFINE_RTTI_BASE(name, base_classes_no, mangled_name) \
\
static const rtti_base_array name ## _rtti_base_array = { \
{ \
@@ -96,9 +99,9 @@ const rtti_object_locator name ## _rtti = { \
#else
-#define DEFINE_RTTI_DATA(name, off, base_classes_no, cl1, cl2, cl3, cl4, cl5, cl6, cl7,
cl8, cl9, mangled_name) \
+#define __DEFINE_RTTI_BASE(name, base_classes_no, mangled_name) \
static type_info name ## _type_info = { \
- &MSVCRT_type_info_vtable, \
+ &type_info_vtable, \
NULL, \
mangled_name \
}; \
@@ -108,7 +111,18 @@ static rtti_base_descriptor name ## _rtti_base_descriptor = { \
base_classes_no, \
{ 0, -1, 0}, \
64 \
-}; \
+};
+
+#define DEFINE_RTTI_BASE(name, base_classes_no, mangled_name) \
+ __DEFINE_RTTI_BASE(name, base_classes_no, mangled_name) \
+ \
+ static void init_ ## name ## _rtti(char *base) \
+ { \
+ name ## _rtti_base_descriptor.type_descriptor = (char*)&name ## _type_info -
base; \
+ }
+
+#define DEFINE_RTTI_DATA(name, off, base_classes_no, cl1, cl2, cl3, cl4, cl5, cl6, cl7,
cl8, cl9, mangled_name) \
+ __DEFINE_RTTI_BASE(name, base_classes_no, mangled_name) \
\
static rtti_base_array name ## _rtti_base_array = { \
{ \
@@ -244,7 +258,7 @@ typedef struct
#endif
-#if defined(__i386__) && !defined(__MINGW32__)
+#ifdef __ASM_USE_THISCALL_WRAPPER
#define CALL_VTBL_FUNC(this, off, ret, type, args) ((ret
(WINAPI*)type)&vtbl_wrapper_##off)args
@@ -268,4 +282,37 @@ extern void *vtbl_wrapper_48;
#endif
-exception* __thiscall MSVCRT_exception_ctor(exception*, const char**);
+exception* __thiscall exception_ctor(exception*, const char**);
+
+extern const vtable_ptr type_info_vtable;
+
+#ifdef __REACTOS__
+void * __thiscall type_info_vector_dtor(type_info * _this, unsigned int flags);
+#endif
+
+#define CREATE_TYPE_INFO_VTABLE \
+DEFINE_THISCALL_WRAPPER(type_info_vector_dtor,8) \
+void * __thiscall type_info_vector_dtor(type_info * _this, unsigned int flags) \
+{ \
+ if (flags & 2) \
+ { \
+ /* we have an array, with the number of elements stored before the first object
*/ \
+ INT_PTR i, *ptr = (INT_PTR *)_this - 1; \
+\
+ for (i = *ptr - 1; i >= 0; i--) free(_this[i].name); \
+ free(ptr); \
+ } \
+ else \
+ { \
+ free(_this->name); \
+ if (flags & 1) free(_this); \
+ } \
+ return _this; \
+} \
+\
+DEFINE_RTTI_DATA0( type_info, 0, ".?AVtype_info@@" ) \
+\
+__ASM_BLOCK_BEGIN(type_info_vtables) \
+ __ASM_VTABLE(type_info, \
+ VTABLE_ADD_FUNC(type_info_vector_dtor)); \
+__ASM_BLOCK_END
diff --git a/sdk/lib/crt/wine/except.c b/sdk/lib/crt/wine/except.c
index 147ed5e9ef0..4679560dae5 100644
--- a/sdk/lib/crt/wine/except.c
+++ b/sdk/lib/crt/wine/except.c
@@ -21,17 +21,19 @@
* FIXME: Incomplete support for nested exceptions/try block cleanup.
*/
-#include "config.h"
-#include "wine/port.h"
-
+#include <float.h>
+#include <signal.h>
#include <stdarg.h>
+#include <stdbool.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
+#ifdef __REACTOS__ // FIXME: Clean up wine headers!
#include "wine/exception.h"
+#endif // __REACTOS__
#include "msvcrt.h"
#include "excpt.h"
#include "wincon.h"
@@ -45,7 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(seh);
static MSVCRT_security_error_handler security_error_handler;
#endif
-static MSVCRT___sighandler_t sighandlers[MSVCRT_NSIG] = { MSVCRT_SIG_DFL };
+static __sighandler_t sighandlers[NSIG] = { SIG_DFL };
static BOOL WINAPI msvcrt_console_handler(DWORD ctrlType)
{
@@ -54,10 +56,10 @@ static BOOL WINAPI msvcrt_console_handler(DWORD ctrlType)
switch (ctrlType)
{
case CTRL_C_EVENT:
- if (sighandlers[MSVCRT_SIGINT])
+ if (sighandlers[SIGINT])
{
- if (sighandlers[MSVCRT_SIGINT] != MSVCRT_SIG_IGN)
- sighandlers[MSVCRT_SIGINT](MSVCRT_SIGINT);
+ if (sighandlers[SIGINT] != SIG_IGN)
+ sighandlers[SIGINT](SIGINT);
ret = TRUE;
}
break;
@@ -68,7 +70,7 @@ static BOOL WINAPI msvcrt_console_handler(DWORD ctrlType)
/*********************************************************************
* __pxcptinfoptrs (MSVCRT.@)
*/
-void** CDECL MSVCRT___pxcptinfoptrs(void)
+void** CDECL __pxcptinfoptrs(void)
{
return (void**)&msvcrt_get_thread_data()->xcptinfo;
}
@@ -81,19 +83,19 @@ static const struct
NTSTATUS status;
int signal;
} float_exception_map[] = {
- { EXCEPTION_FLT_DENORMAL_OPERAND, MSVCRT__FPE_DENORMAL },
- { EXCEPTION_FLT_DIVIDE_BY_ZERO, MSVCRT__FPE_ZERODIVIDE },
- { EXCEPTION_FLT_INEXACT_RESULT, MSVCRT__FPE_INEXACT },
- { EXCEPTION_FLT_INVALID_OPERATION, MSVCRT__FPE_INVALID },
- { EXCEPTION_FLT_OVERFLOW, MSVCRT__FPE_OVERFLOW },
- { EXCEPTION_FLT_STACK_CHECK, MSVCRT__FPE_STACKOVERFLOW },
- { EXCEPTION_FLT_UNDERFLOW, MSVCRT__FPE_UNDERFLOW },
+ { EXCEPTION_FLT_DENORMAL_OPERAND, _FPE_DENORMAL },
+ { EXCEPTION_FLT_DIVIDE_BY_ZERO, _FPE_ZERODIVIDE },
+ { EXCEPTION_FLT_INEXACT_RESULT, _FPE_INEXACT },
+ { EXCEPTION_FLT_INVALID_OPERATION, _FPE_INVALID },
+ { EXCEPTION_FLT_OVERFLOW, _FPE_OVERFLOW },
+ { EXCEPTION_FLT_STACK_CHECK, _FPE_STACKOVERFLOW },
+ { EXCEPTION_FLT_UNDERFLOW, _FPE_UNDERFLOW },
};
static LONG msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
{
LONG ret = EXCEPTION_CONTINUE_SEARCH;
- MSVCRT___sighandler_t handler;
+ __sighandler_t handler;
if (!except || !except->ExceptionRecord)
return EXCEPTION_CONTINUE_SEARCH;
@@ -101,16 +103,16 @@ static LONG msvcrt_exception_filter(struct _EXCEPTION_POINTERS
*except)
switch (except->ExceptionRecord->ExceptionCode)
{
case EXCEPTION_ACCESS_VIOLATION:
- if ((handler = sighandlers[MSVCRT_SIGSEGV]) != MSVCRT_SIG_DFL)
+ if ((handler = sighandlers[SIGSEGV]) != SIG_DFL)
{
- if (handler != MSVCRT_SIG_IGN)
+ if (handler != SIG_IGN)
{
- EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)MSVCRT___pxcptinfoptrs(),
*old_ep;
+ EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)__pxcptinfoptrs(),
*old_ep;
old_ep = *ep;
*ep = except;
- sighandlers[MSVCRT_SIGSEGV] = MSVCRT_SIG_DFL;
- handler(MSVCRT_SIGSEGV);
+ sighandlers[SIGSEGV] = SIG_DFL;
+ handler(SIGSEGV);
*ep = old_ep;
}
ret = EXCEPTION_CONTINUE_EXECUTION;
@@ -127,15 +129,15 @@ static LONG msvcrt_exception_filter(struct _EXCEPTION_POINTERS
*except)
case EXCEPTION_FLT_OVERFLOW:
case EXCEPTION_FLT_STACK_CHECK:
case EXCEPTION_FLT_UNDERFLOW:
- if ((handler = sighandlers[MSVCRT_SIGFPE]) != MSVCRT_SIG_DFL)
+ if ((handler = sighandlers[SIGFPE]) != SIG_DFL)
{
- if (handler != MSVCRT_SIG_IGN)
+ if (handler != SIG_IGN)
{
- EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)MSVCRT___pxcptinfoptrs(),
*old_ep;
+ EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)__pxcptinfoptrs(),
*old_ep;
unsigned int i;
- int float_signal = MSVCRT__FPE_INVALID;
+ int float_signal = _FPE_INVALID;
- sighandlers[MSVCRT_SIGFPE] = MSVCRT_SIG_DFL;
+ sighandlers[SIGFPE] = SIG_DFL;
for (i = 0; i < ARRAY_SIZE(float_exception_map); i++)
{
if (float_exception_map[i].status ==
@@ -148,7 +150,7 @@ static LONG msvcrt_exception_filter(struct _EXCEPTION_POINTERS
*except)
old_ep = *ep;
*ep = except;
- ((float_handler)handler)(MSVCRT_SIGFPE, float_signal);
+ ((float_handler)handler)(SIGFPE, float_signal);
*ep = old_ep;
}
ret = EXCEPTION_CONTINUE_EXECUTION;
@@ -156,16 +158,16 @@ static LONG msvcrt_exception_filter(struct _EXCEPTION_POINTERS
*except)
break;
case EXCEPTION_ILLEGAL_INSTRUCTION:
case EXCEPTION_PRIV_INSTRUCTION:
- if ((handler = sighandlers[MSVCRT_SIGILL]) != MSVCRT_SIG_DFL)
+ if ((handler = sighandlers[SIGILL]) != SIG_DFL)
{
- if (handler != MSVCRT_SIG_IGN)
+ if (handler != SIG_IGN)
{
- EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)MSVCRT___pxcptinfoptrs(),
*old_ep;
+ EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)__pxcptinfoptrs(),
*old_ep;
old_ep = *ep;
*ep = except;
- sighandlers[MSVCRT_SIGILL] = MSVCRT_SIG_DFL;
- handler(MSVCRT_SIGILL);
+ sighandlers[SIGILL] = SIG_DFL;
+ handler(SIGILL);
*ep = old_ep;
}
ret = EXCEPTION_CONTINUE_EXECUTION;
@@ -185,36 +187,37 @@ void msvcrt_free_signals(void)
SetConsoleCtrlHandler(msvcrt_console_handler, FALSE);
}
+#ifndef __REACTOS__ // Own implementation in signal/signal.c
/*********************************************************************
* signal (MSVCRT.@)
* Some signals may never be generated except through an explicit call to
* raise.
*/
-MSVCRT___sighandler_t CDECL MSVCRT_signal(int sig, MSVCRT___sighandler_t func)
+__sighandler_t CDECL signal(int sig, __sighandler_t func)
{
- MSVCRT___sighandler_t ret = MSVCRT_SIG_ERR;
+ __sighandler_t ret = SIG_ERR;
TRACE("(%d, %p)\n", sig, func);
- if (func == MSVCRT_SIG_ERR) return MSVCRT_SIG_ERR;
+ if (func == SIG_ERR) return SIG_ERR;
switch (sig)
{
/* Cases handled internally. Note SIGTERM is never generated by Windows,
* so we effectively mask it.
*/
- case MSVCRT_SIGABRT:
- case MSVCRT_SIGFPE:
- case MSVCRT_SIGILL:
- case MSVCRT_SIGSEGV:
- case MSVCRT_SIGINT:
- case MSVCRT_SIGTERM:
- case MSVCRT_SIGBREAK:
+ case SIGABRT:
+ case SIGFPE:
+ case SIGILL:
+ case SIGSEGV:
+ case SIGINT:
+ case SIGTERM:
+ case SIGBREAK:
ret = sighandlers[sig];
sighandlers[sig] = func;
break;
default:
- ret = MSVCRT_SIG_ERR;
+ ret = SIG_ERR;
}
return ret;
}
@@ -222,43 +225,43 @@ MSVCRT___sighandler_t CDECL MSVCRT_signal(int sig,
MSVCRT___sighandler_t func)
/*********************************************************************
* raise (MSVCRT.@)
*/
-int CDECL MSVCRT_raise(int sig)
+int CDECL raise(int sig)
{
- MSVCRT___sighandler_t handler;
+ __sighandler_t handler;
TRACE("(%d)\n", sig);
switch (sig)
{
- case MSVCRT_SIGFPE:
- case MSVCRT_SIGILL:
- case MSVCRT_SIGSEGV:
+ case SIGFPE:
+ case SIGILL:
+ case SIGSEGV:
handler = sighandlers[sig];
- if (handler == MSVCRT_SIG_DFL) MSVCRT__exit(3);
- if (handler != MSVCRT_SIG_IGN)
+ if (handler == SIG_DFL) _exit(3);
+ if (handler != SIG_IGN)
{
- EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)MSVCRT___pxcptinfoptrs(),
*old_ep;
+ EXCEPTION_POINTERS **ep = (EXCEPTION_POINTERS**)__pxcptinfoptrs(), *old_ep;
- sighandlers[sig] = MSVCRT_SIG_DFL;
+ sighandlers[sig] = SIG_DFL;
old_ep = *ep;
*ep = NULL;
- if (sig == MSVCRT_SIGFPE)
- ((float_handler)handler)(sig, MSVCRT__FPE_EXPLICITGEN);
+ if (sig == SIGFPE)
+ ((float_handler)handler)(sig, _FPE_EXPLICITGEN);
else
handler(sig);
*ep = old_ep;
}
break;
- case MSVCRT_SIGABRT:
- case MSVCRT_SIGINT:
- case MSVCRT_SIGTERM:
- case MSVCRT_SIGBREAK:
+ case SIGABRT:
+ case SIGINT:
+ case SIGTERM:
+ case SIGBREAK:
handler = sighandlers[sig];
- if (handler == MSVCRT_SIG_DFL) MSVCRT__exit(3);
- if (handler != MSVCRT_SIG_IGN)
+ if (handler == SIG_DFL) _exit(3);
+ if (handler != SIG_IGN)
{
- sighandlers[sig] = MSVCRT_SIG_DFL;
+ sighandlers[sig] = SIG_DFL;
handler(sig);
}
break;
@@ -267,6 +270,7 @@ int CDECL MSVCRT_raise(int sig)
}
return 0;
}
+#endif // __REACTOS__
/*********************************************************************
* _XcptFilter (MSVCRT.@)
@@ -282,7 +286,7 @@ int CDECL _XcptFilter(NTSTATUS ex, PEXCEPTION_POINTERS ptr)
/*********************************************************************
* _abnormal_termination (MSVCRT.@)
*/
-int CDECL _abnormal_termination(void)
+int CDECL __intrinsic_abnormal_termination(void)
{
FIXME("(void)stub\n");
return 0;
@@ -292,7 +296,7 @@ int CDECL _abnormal_termination(void)
/******************************************************************
* __uncaught_exception (MSVCRT.@)
*/
-BOOL CDECL MSVCRT___uncaught_exception(void)
+BOOL CDECL __uncaught_exception(void)
{
return msvcrt_get_thread_data()->processing_throw != 0;
}
@@ -323,7 +327,7 @@ void CDECL __security_error_handler(int code, void *data)
else
FIXME("(%d, %p) stub\n", code, data);
- MSVCRT__exit(3);
+ _exit(3);
}
#endif /* _MSVCR_VER>=70 && _MSVCR_VER<=71 */
@@ -332,7 +336,7 @@ void CDECL __security_error_handler(int code, void *data)
/*********************************************************************
* __crtSetUnhandledExceptionFilter (MSVCR110.@)
*/
-LPTOP_LEVEL_EXCEPTION_FILTER CDECL
MSVCR110__crtSetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER filter)
+LPTOP_LEVEL_EXCEPTION_FILTER CDECL
__crtSetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER filter)
{
return SetUnhandledExceptionFilter(filter);
}
@@ -479,8 +483,8 @@ void CDECL __CxxUnregisterExceptionObject(cxx_frame_info *frame_info,
BOOL in_us
}
struct __std_exception_data {
- char *what;
- MSVCRT_bool dofree;
+ char *what;
+ char dofree;
};
#if _MSVCR_VER>=140
@@ -488,13 +492,13 @@ struct __std_exception_data {
/*********************************************************************
* __std_exception_copy (UCRTBASE.@)
*/
-void CDECL MSVCRT___std_exception_copy(const struct __std_exception_data *src,
+void CDECL __std_exception_copy(const struct __std_exception_data *src,
struct __std_exception_data *dst)
{
TRACE("(%p %p)\n", src, dst);
if(src->dofree && src->what) {
- dst->what = MSVCRT__strdup(src->what);
+ dst->what = _strdup(src->what);
dst->dofree = 1;
} else {
dst->what = src->what;
@@ -505,12 +509,12 @@ void CDECL MSVCRT___std_exception_copy(const struct
__std_exception_data *src,
/*********************************************************************
* __std_exception_destroy (UCRTBASE.@)
*/
-void CDECL MSVCRT___std_exception_destroy(struct __std_exception_data *data)
+void CDECL __std_exception_destroy(struct __std_exception_data *data)
{
TRACE("(%p)\n", data);
if(data->dofree)
- MSVCRT_free(data->what);
+ free(data->what);
data->what = NULL;
data->dofree = 0;
}
diff --git a/sdk/lib/crt/wine/except_arm.c b/sdk/lib/crt/wine/except_arm.c
index 41b0c1c7d3e..fecbfe65929 100644
--- a/sdk/lib/crt/wine/except_arm.c
+++ b/sdk/lib/crt/wine/except_arm.c
@@ -19,12 +19,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "config.h"
-#include "wine/port.h"
-
#ifdef __arm__
+#include <setjmp.h>
#include <stdarg.h>
+#include <fpieee.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
@@ -110,13 +109,12 @@ unsigned int CDECL __CxxQueryExceptionSize(void)
* _setjmp (MSVCRT.@)
*/
__ASM_GLOBAL_FUNC(MSVCRT__setjmp,
- "mov r1, #0\n\t" /* frame */
"b " __ASM_NAME("__wine_setjmpex"));
/*******************************************************************
* longjmp (MSVCRT.@)
*/
-void __cdecl MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int retval)
+void __cdecl MSVCRT_longjmp(_JUMP_BUFFER *jmp, int retval)
{
EXCEPTION_RECORD rec;
@@ -137,10 +135,10 @@ void __cdecl MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int
retval)
/*********************************************************************
* _fpieee_flt (MSVCRT.@)
*/
-int __cdecl _fpieee_flt(ULONG exception_code, EXCEPTION_POINTERS *ep,
+int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep,
int (__cdecl *handler)(_FPIEEE_RECORD*))
{
- FIXME("(%x %p %p)\n", exception_code, ep, handler);
+ FIXME("(%lx %p %p)\n", exception_code, ep, handler);
return EXCEPTION_CONTINUE_SEARCH;
}
diff --git a/sdk/lib/crt/wine/except_arm64.c b/sdk/lib/crt/wine/except_arm64.c
index 97059d13972..574e77485f9 100644
--- a/sdk/lib/crt/wine/except_arm64.c
+++ b/sdk/lib/crt/wine/except_arm64.c
@@ -20,12 +20,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "config.h"
-#include "wine/port.h"
-
#ifdef __aarch64__
+#include <setjmp.h>
#include <stdarg.h>
+#include <fpieee.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
@@ -111,13 +110,12 @@ unsigned int CDECL __CxxQueryExceptionSize(void)
* _setjmp (MSVCRT.@)
*/
__ASM_GLOBAL_FUNC(MSVCRT__setjmp,
- "mov x1, #0\n\t" /* frame */
"b " __ASM_NAME("__wine_setjmpex"));
/*******************************************************************
* longjmp (MSVCRT.@)
*/
-void __cdecl MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int retval)
+void __cdecl MSVCRT_longjmp(_JUMP_BUFFER *jmp, int retval)
{
EXCEPTION_RECORD rec;
@@ -138,10 +136,10 @@ void __cdecl MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int
retval)
/*********************************************************************
* _fpieee_flt (MSVCRT.@)
*/
-int __cdecl _fpieee_flt(ULONG exception_code, EXCEPTION_POINTERS *ep,
+int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep,
int (__cdecl *handler)(_FPIEEE_RECORD*))
{
- FIXME("(%x %p %p)\n", exception_code, ep, handler);
+ FIXME("(%lx %p %p)\n", exception_code, ep, handler);
return EXCEPTION_CONTINUE_SEARCH;
}
diff --git a/sdk/lib/crt/wine/except_i386.c b/sdk/lib/crt/wine/except_i386.c
index 68f6c75c1b3..fa8ec4997bd 100644
--- a/sdk/lib/crt/wine/except_i386.c
+++ b/sdk/lib/crt/wine/except_i386.c
@@ -25,12 +25,11 @@
*
www.thecodeproject.com.
*/
-#include "config.h"
-#include "wine/port.h"
-
#ifdef __i386__
+#include <setjmp.h>
#include <stdarg.h>
+#include <fpieee.h>
#include "windef.h"
#include "winbase.h"
@@ -120,7 +119,7 @@ typedef struct _SCOPETABLE
void * (*lpfnHandler)(void);
} SCOPETABLE, *PSCOPETABLE;
-typedef struct _MSVCRT_EXCEPTION_FRAME
+typedef struct MSVCRT_EXCEPTION_FRAME
{
EXCEPTION_REGISTRATION_RECORD *prev;
void (*handler)(PEXCEPTION_RECORD, EXCEPTION_REGISTRATION_RECORD*,
@@ -328,7 +327,7 @@ static void cxx_local_unwind( cxx_exception_frame* frame, const
cxx_function_des
if (trylevel < 0 || trylevel >= descr->unwind_count)
{
ERR( "invalid trylevel %d\n", trylevel );
- MSVCRT_terminate();
+ terminate();
}
handler = descr->unwind_table[trylevel].handler;
if (handler)
@@ -540,7 +539,7 @@ static LONG CALLBACK se_translation_filter( EXCEPTION_POINTERS *ep,
void *c )
if (rec->ExceptionCode != CXX_EXCEPTION)
{
TRACE( "non-c++ exception thrown in SEH handler: %x\n",
rec->ExceptionCode );
- MSVCRT_terminate();
+ terminate();
}
exc_type = (cxx_exception_type *)rec->ExceptionInformation[2];
@@ -551,6 +550,18 @@ static LONG CALLBACK se_translation_filter( EXCEPTION_POINTERS *ep,
void *c )
return ExceptionContinueSearch;
}
+static void check_noexcept( PEXCEPTION_RECORD rec,
+ const cxx_function_descr *descr, BOOL nested )
+{
+ if (!nested && rec->ExceptionCode == CXX_EXCEPTION &&
+ descr->magic >= CXX_FRAME_MAGIC_VC8 &&
+ (descr->flags & FUNC_DESCR_NOEXCEPT))
+ {
+ ERR("noexcept function propagating exception\n");
+ terminate();
+ }
+}
+
/*********************************************************************
* cxx_frame_handler
*
@@ -578,7 +589,11 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec,
cxx_exception_frame* frame
if (descr->unwind_count && !nested_frame) cxx_local_unwind( frame,
descr, -1 );
return ExceptionContinueSearch;
}
- if (!descr->tryblock_count) return ExceptionContinueSearch;
+ if (!descr->tryblock_count)
+ {
+ check_noexcept(rec, descr, nested_frame != NULL);
+ return ExceptionContinueSearch;
+ }
if(rec->ExceptionCode == CXX_EXCEPTION &&
rec->ExceptionInformation[1] == 0 &&
rec->ExceptionInformation[2] == 0)
@@ -643,6 +658,7 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec,
cxx_exception_frame* frame
call_catch_block( rec, context, frame, descr,
nested_frame, exc_type );
+ check_noexcept(rec, descr, nested_frame != NULL);
return ExceptionContinueSearch;
}
@@ -678,7 +694,7 @@ __ASM_GLOBAL_FUNC( __CxxFrameHandler,
*
* Callback meant to be used as UnwindFunc for setjmp/longjmp.
*/
-void __stdcall __CxxLongjmpUnwind( const struct MSVCRT___JUMP_BUFFER *buf )
+void __stdcall __CxxLongjmpUnwind( const _JUMP_BUFFER *buf )
{
cxx_exception_frame *frame = (cxx_exception_frame *)buf->Registration;
const cxx_function_descr *descr = (const cxx_function_descr
*)buf->UnwindData[0];
@@ -1014,7 +1030,7 @@ int CDECL _except_handler4_common( ULONG *cookie, void
(*check_cookie)(void),
*/
#define MSVCRT_JMP_MAGIC 0x56433230 /* ID value for new jump structure */
-typedef void (__stdcall *MSVCRT_unwind_function)(const struct MSVCRT___JUMP_BUFFER *);
+typedef void (__stdcall *MSVCRT_unwind_function)(const _JUMP_BUFFER *);
/* define an entrypoint for setjmp/setjmp3 that stores the registers in the jmp buf */
/* and then jumps to the C backend function */
@@ -1034,7 +1050,7 @@ typedef void (__stdcall *MSVCRT_unwind_function)(const struct
MSVCRT___JUMP_BUFF
* _setjmp (MSVCRT.@)
*/
DEFINE_SETJMP_ENTRYPOINT(MSVCRT__setjmp)
-int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(struct MSVCRT___JUMP_BUFFER *jmp)
+int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(_JUMP_BUFFER *jmp)
{
jmp->Registration = (unsigned long)NtCurrentTeb()->Tib.ExceptionList;
if (jmp->Registration == ~0UL)
@@ -1051,7 +1067,7 @@ int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(struct
MSVCRT___JUMP_BUFFER *jmp
* _setjmp3 (MSVCRT.@)
*/
DEFINE_SETJMP_ENTRYPOINT( MSVCRT__setjmp3 )
-int WINAPIV DECLSPEC_HIDDEN __regs_MSVCRT__setjmp3(struct MSVCRT___JUMP_BUFFER *jmp, int
nb_args, ...)
+int WINAPIV DECLSPEC_HIDDEN __regs_MSVCRT__setjmp3(_JUMP_BUFFER *jmp, int nb_args, ...)
{
jmp->Cookie = MSVCRT_JMP_MAGIC;
jmp->UnwindFunc = 0;
@@ -1082,7 +1098,7 @@ int WINAPIV DECLSPEC_HIDDEN __regs_MSVCRT__setjmp3(struct
MSVCRT___JUMP_BUFFER *
/*********************************************************************
* longjmp (MSVCRT.@)
*/
-void CDECL MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int retval)
+void CDECL MSVCRT_longjmp(_JUMP_BUFFER *jmp, int retval)
{
unsigned long cur_frame = 0;
@@ -1120,7 +1136,7 @@ void CDECL MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int
retval)
/*********************************************************************
* _seh_longjmp_unwind (MSVCRT.@)
*/
-void __stdcall _seh_longjmp_unwind(struct MSVCRT___JUMP_BUFFER *jmp)
+void __stdcall _seh_longjmp_unwind(_JUMP_BUFFER *jmp)
{
msvcrt_local_unwind2( (MSVCRT_EXCEPTION_FRAME *)jmp->Registration,
jmp->TryLevel, (void *)jmp->Ebp );
}
@@ -1128,7 +1144,7 @@ void __stdcall _seh_longjmp_unwind(struct MSVCRT___JUMP_BUFFER
*jmp)
/*********************************************************************
* _seh_longjmp_unwind4 (MSVCRT.@)
*/
-void __stdcall _seh_longjmp_unwind4(struct MSVCRT___JUMP_BUFFER *jmp)
+void __stdcall _seh_longjmp_unwind4(_JUMP_BUFFER *jmp)
{
msvcrt_local_unwind4( (ULONG *)&jmp->Cookie, (MSVCRT_EXCEPTION_FRAME
*)jmp->Registration,
jmp->TryLevel, (void *)jmp->Ebp );
@@ -1137,14 +1153,14 @@ void __stdcall _seh_longjmp_unwind4(struct MSVCRT___JUMP_BUFFER
*jmp)
/*********************************************************************
* _fpieee_flt (MSVCRT.@)
*/
-int __cdecl _fpieee_flt(ULONG exception_code, EXCEPTION_POINTERS *ep,
+int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep,
int (__cdecl *handler)(_FPIEEE_RECORD*))
{
FLOATING_SAVE_AREA *ctx = &ep->ContextRecord->FloatSave;
_FPIEEE_RECORD rec;
int ret;
- TRACE("(%x %p %p)\n", exception_code, ep, handler);
+ TRACE("(%lx %p %p)\n", exception_code, ep, handler);
switch(exception_code) {
case STATUS_FLOAT_DIVIDE_BY_ZERO:
diff --git a/sdk/lib/crt/wine/except_x86_64.c b/sdk/lib/crt/wine/except_x86_64.c
index 9e7676413de..3c6e7af940c 100644
--- a/sdk/lib/crt/wine/except_x86_64.c
+++ b/sdk/lib/crt/wine/except_x86_64.c
@@ -18,12 +18,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "config.h"
-#include "wine/port.h"
-
#ifdef __x86_64__
+#include <setjmp.h>
#include <stdarg.h>
+#include <fpieee.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
@@ -90,6 +89,7 @@ typedef struct
{
cxx_frame_info frame_info;
BOOL rethrow;
+ EXCEPTION_RECORD *prev_rec;
} cxx_catch_ctx;
typedef struct
@@ -290,7 +290,7 @@ static void cxx_local_unwind(ULONG64 frame, DISPATCHER_CONTEXT
*dispatch,
if (trylevel<0 || trylevel>=descr->unwind_count)
{
ERR("invalid trylevel %d\n", trylevel);
- MSVCRT_terminate();
+ terminate();
}
handler = rva_to_ptr(unwind_table[trylevel].handler, dispatch->ImageBase);
if (handler)
@@ -306,14 +306,13 @@ static void cxx_local_unwind(ULONG64 frame, DISPATCHER_CONTEXT
*dispatch,
static LONG CALLBACK cxx_rethrow_filter(PEXCEPTION_POINTERS eptrs, void *c)
{
EXCEPTION_RECORD *rec = eptrs->ExceptionRecord;
- thread_data_t *data = msvcrt_get_thread_data();
cxx_catch_ctx *ctx = c;
if (rec->ExceptionCode != CXX_EXCEPTION)
return EXCEPTION_CONTINUE_SEARCH;
if (!rec->ExceptionInformation[1] && !rec->ExceptionInformation[2])
return EXCEPTION_EXECUTE_HANDLER;
- if (rec->ExceptionInformation[1] ==
data->exc_record->ExceptionInformation[1])
+ if (rec->ExceptionInformation[1] ==
ctx->prev_rec->ExceptionInformation[1])
ctx->rethrow = TRUE;
return EXCEPTION_CONTINUE_SEARCH;
}
@@ -340,6 +339,7 @@ static void* WINAPI call_catch_block(EXCEPTION_RECORD *rec)
TRACE("calling handler %p\n", handler);
ctx.rethrow = FALSE;
+ ctx.prev_rec = prev_rec;
__CxxRegisterExceptionObject(&ep, &ctx.frame_info);
msvcrt_get_thread_data()->processing_throw--;
__TRY
@@ -487,7 +487,7 @@ static LONG CALLBACK se_translation_filter(EXCEPTION_POINTERS *ep,
void *c)
if (rec->ExceptionCode != CXX_EXCEPTION)
{
TRACE("non-c++ exception thrown in SEH handler: %x\n",
rec->ExceptionCode);
- MSVCRT_terminate();
+ terminate();
}
exc_type = (cxx_exception_type *)rec->ExceptionInformation[2];
@@ -498,6 +498,18 @@ static LONG CALLBACK se_translation_filter(EXCEPTION_POINTERS *ep,
void *c)
return ExceptionContinueSearch;
}
+static void check_noexcept( PEXCEPTION_RECORD rec,
+ const cxx_function_descr *descr, BOOL nested )
+{
+ if (!nested && rec->ExceptionCode == CXX_EXCEPTION &&
+ descr->magic >= CXX_FRAME_MAGIC_VC8 &&
+ (descr->flags & FUNC_DESCR_NOEXCEPT))
+ {
+ ERR("noexcept function propagating exception\n");
+ terminate();
+ }
+}
+
static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
CONTEXT *context, DISPATCHER_CONTEXT *dispatch,
const cxx_function_descr *descr)
@@ -561,10 +573,20 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64
frame,
cxx_local_unwind(orig_frame, dispatch, descr, unwindlevel);
return ExceptionContinueSearch;
}
- if (!descr->tryblock_count) return ExceptionContinueSearch;
+ if (!descr->tryblock_count)
+ {
+ check_noexcept(rec, descr, orig_frame != frame);
+ return ExceptionContinueSearch;
+ }
if (rec->ExceptionCode == CXX_EXCEPTION)
{
+ if (!rec->ExceptionInformation[1] &&
!rec->ExceptionInformation[2])
+ {
+ TRACE("rethrow detected.\n");
+ *rec = *msvcrt_get_thread_data()->exc_record;
+ }
+
exc_type = (cxx_exception_type *)rec->ExceptionInformation[2];
if (TRACE_ON(seh))
@@ -605,6 +627,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
}
... 2427 lines suppressed ...