Commit Graph

1513 Commits

Author SHA1 Message Date
Andrew Talbot 4c191378e9 msvcrt: Indentation fix. 2012-12-18 12:35:14 +01:00
Piotr Caban 78553db096 msvcrt: Added _atodbl tests. 2012-12-17 20:31:26 +01:00
Piotr Caban 3b5ab1b48f msvcrt: Added _atodbl_l implementation. 2012-12-17 20:31:25 +01:00
Piotr Caban 38bf8ac44b msvcrt: Don't duplicate floating-point number parsing code in MSVCRT__atoflt_l. 2012-12-17 20:31:24 +01:00
Austin English c8e71e9a3e msvcrt: Implement memcpy in msvcrt instead of forwarding to ntdll. 2012-12-14 12:15:05 +01:00
Austin English a79de8aa29 msvcrt: Implement _ftol in msvcrt instead of forwarding to ntdll. 2012-12-14 12:13:39 +01:00
Piotr Caban 42d5cc3c6e msvcrt: Added __getmainargs tests. 2012-12-14 11:54:28 +01:00
Piotr Caban 678abf4064 msvcrt: Support expand_wildcards parameter in __wgetmainargs function. 2012-12-14 11:54:20 +01:00
Piotr Caban 7c39023f60 msvcrt: Fixed wildcard expanding when path is specified in __getmainargs. 2012-12-14 11:54:14 +01:00
Piotr Caban c34769cfa1 msvcrt: Support expand_wildcards parameter in __getmainargs function. 2012-12-13 18:24:17 +01:00
Piotr Caban bc33d39e23 msvcrt: Don't flush stream in fputs function. 2012-12-13 18:24:03 +01:00
Piotr Caban f5c8647919 msvcrt: Added _mbsnbcoll_l implementation. 2012-12-12 12:01:36 +01:00
Piotr Caban a2b71b732a msvcrt: Added _mbsnbicoll_l implementation. 2012-12-12 12:01:22 +01:00
Piotr Caban 3b41fab0e9 msvcrt: Added _fwprintf_l implementation. 2012-12-12 12:01:11 +01:00
Piotr Caban 48335be04e msvcrt: Added _vfwprintf_l implementation. 2012-12-12 12:01:01 +01:00
Piotr Caban b5cf3057e9 msvcrt: Added _atoi_l implementation. 2012-12-12 12:00:46 +01:00
Piotr Caban 3acb238f15 msvcrt: Added _wtoi_l implementation. 2012-12-12 12:00:41 +01:00
Piotr Caban d958ecbc69 msvcrt: Fixed floating point numbers printing when flags.Sign=' '. 2012-12-12 11:59:55 +01:00
Piotr Caban b9c71ffd42 msvcrt: Fixed get_this_pointer implementation. 2012-12-10 17:36:29 +01:00
Piotr Caban d3ecfe0599 msvcrt: Fixed _localtime64 implementation. 2012-12-10 17:36:28 +01:00
Piotr Caban 11216fabc4 msvcrt: Reorganize _localtime64 function. 2012-12-10 17:36:28 +01:00
Piotr Caban acac63663a msvcrt: Improved input parameter range check in _gmtime64_s. 2012-12-10 17:36:28 +01:00
Piotr Caban c9a7436812 msvcrt: Fixed mkgmtime and _mkgmtime64 implementation. 2012-12-10 17:36:27 +01:00
Piotr Caban a66ed048a3 msvcrt: Fixed mktime and _mktime64 implementation. 2012-12-10 17:36:27 +01:00
Piotr Caban 59776ccc99 msvcrt: Added _tzset tests. 2012-12-10 17:36:26 +01:00
Piotr Caban 351dff91de msvcrt: Reimplement _tzset function. 2012-12-10 17:36:26 +01:00
Piotr Caban d677bda974 msvcrt: Added wcrtomb tests. 2012-11-30 11:43:09 +01:00
Piotr Caban c0ce611ebd msvcrt: Added wcrtomb implementation. 2012-11-30 11:43:03 +01:00
Piotr Caban 1ced0f460c msvcrt: Added mbsrtowcs tests. 2012-11-29 11:23:10 +01:00
Piotr Caban 5e50ec3df2 msvcrt: Added mbsrtowcs implementation. 2012-11-29 11:23:03 +01:00
Piotr Caban f20a85a5da msvcrt: Added mbrtowc tests. 2012-11-29 11:16:56 +01:00
Piotr Caban 4b67531bf7 msvcrt: Added mbrtowc implementation. 2012-11-29 11:16:51 +01:00
Piotr Caban 00658a4a63 msvcrt: Added mbrlen tests. 2012-11-29 11:16:44 +01:00
Piotr Caban b8ee0dd7ab msvcrt: Added mbrlen implementation. 2012-11-29 11:16:38 +01:00
Piotr Caban bdedab6c84 msvcrt: Remove superfluous semicolons. 2012-11-28 20:14:47 +01:00
Piotr Caban 9c319baa66 msvcrt: Fixed __p___mb_cur_max tests. 2012-11-07 18:12:06 +01:00
Piotr Caban cbb94b1fcc msvcrt: Improved strtod_l precision. 2012-11-06 16:02:36 +01:00
Piotr Caban 505e5a162f msvcrt: Improved _wcstod_l precision. 2012-11-06 16:02:35 +01:00
Piotr Caban a3035679d5 msvcrt: Improved _atoflt_l precision. 2012-11-06 16:02:35 +01:00
Piotr Caban 74ec93bab7 msvcrt: Improved scanf precision. 2012-11-05 17:44:32 +01:00
Piotr Caban ec26342c88 msvcrt: Allocate buffer in fwrite function. 2012-11-02 19:47:33 +01:00
Daniel Lehman ffa7ac7331 msvcrt: Return value from MSVCRT____mb_cur_max_func instead of pointer. 2012-11-01 19:01:34 +01:00
Piotr Caban a9c6113c28 msvcrt: Improved parsing precision of doubles in scanf.
This code is based on doubles parsing in jscript lexer.
2012-11-01 15:43:21 +01:00
Piotr Caban bab686e7d1 msvcrt: Fixed %Lf format handling in scanf. 2012-11-01 15:43:14 +01:00
Piotr Caban 39345a1b15 msvcrt: Fixed _ungetwc implementation. 2012-10-24 11:25:33 +02:00
Piotr Caban c00702cd6e msvcrt: Fixed tmpfile implementation. 2012-10-16 20:45:44 +02:00
Piotr Caban 488693e407 msvcrt: Fixed exception information on 64-bit systems. 2012-10-11 20:22:45 +02:00
Piotr Caban b3dff995ee msvcrt/tests: Added more RTTI tests. 2012-09-13 13:56:15 +02:00
Piotr Caban f4e323baa4 msvcrt: Fixed RTTI base pointer calculation if signature==0. 2012-09-13 13:56:04 +02:00
Piotr Caban 688aa1f529 msvcrt: Skip RTTI signature==1 tests on platforms that doesn't support it. 2012-09-10 20:48:39 +02:00
Piotr Caban bdf9a9f9bd msvcrt: Fixed strncpy_s behavior when count equals 0. 2012-09-07 19:15:29 +02:00
Piotr Caban 8060752c09 msvcrt: Fixed RTTI structure on 64-bit systems. 2012-09-07 11:55:32 +02:00
Piotr Caban 33937f039f msvcrt: Support 64-bit RTTI in __RTDynamicCast. 2012-09-05 21:56:57 +02:00
Piotr Caban fbae5a95c3 msvcrt: Support 64-bit RTTI in __RTtypeid function. 2012-09-05 21:56:57 +02:00
Piotr Caban 63be52e2aa msvcrt: Moved RTTI and thiscall related macros to separate header. 2012-09-05 21:56:56 +02:00
Francois Gouget 88840fc849 msvcrt/tests: Add a trailing '\n' to a win_skip(). 2012-08-21 17:47:47 +02:00
Piotr Caban 83024db0ae msvcrt/tests: Execute c++ related tests on 64-bit systems. 2012-08-20 15:01:13 +02:00
Piotr Caban fef8a52fc9 msvcrt: Fixed vector destructors implementation on 64-bit systems. 2012-08-20 15:00:43 +02:00
Dan Kegel 4956045842 msvcrt: memmove_s shouldn't zero its output buffer on error. 2012-08-17 14:03:15 +02:00
Alexandre Julliard f80d443f5c msvcrt: Add a number of floating point functions for 64-bit. 2012-08-16 18:09:47 +02:00
Michael Stefaniuc 0409b9895c msvcrt: Aoid TRUE:FALSE conditional expressions. 2012-08-13 17:29:40 +02:00
Alexandre Julliard 06989a0483 msvcrt: Make sure that errno is always set when calling the invalid parameter handler. 2012-07-26 11:05:32 +02:00
André Hentschel f09a40a215 msvcrt: Add tmpfile_s implementation. 2012-07-18 11:49:19 +02:00
André Hentschel f320f6cf48 msvcrt: Add bsearch_s implementation by reusing code and tests from ntdll. 2012-07-17 14:21:32 +02:00
Francois Gouget d817bbd6f4 msvcrt: Use the CSTR_XXX macros instead of numeric literals. 2012-06-21 08:33:36 +02:00
Piotr Caban 7ac3c8700c msvcrt/tests: Fix Portuguese locale test on NT4. 2012-06-14 22:21:02 +02:00
Francois Gouget d8ed347ab3 msvcrt: Fix the name of the Portuguese locale alias. 2012-06-13 21:35:42 +02:00
Piotr Caban 5e418f0ccf msvcrt: Handle rethrown exception in cxx_frame_handler. 2012-05-30 16:27:23 +02:00
Piotr Caban 482159a234 msvcrt: Fixed typo in DEFINE_EXCEPTION_TYPE_INFO macro. 2012-05-30 11:28:10 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Thomas Faber bf5c7d4546 msvcrt: Fix malloc_func_t/free_func_t calling convention. 2012-05-07 11:37:19 +02:00
Piotr Caban dc830aa640 msvcrt: Rework wcsncpy_s to work on overlapping pointers. 2012-04-24 19:12:51 +02:00
Piotr Caban 7240170cee msvcrt: Added more length modifiers in scanf function. 2012-04-16 18:56:15 +02:00
Piotr Caban 0cc16fc8a5 msvcrt: Fixed 'h' modifier handling when printing integers. 2012-04-16 18:56:15 +02:00
Piotr Caban bfa3045816 msvcrt: Added support for %W and %U format in strftime. 2012-04-16 17:49:24 +02:00
Piotr Caban 2759779990 msvcrt: Fix months and weekday names in C locale. 2012-04-13 16:10:10 +02:00
Piotr Caban a80aec4c56 msvcrt: Added support for _TRUNCATE flag in wcsncpy_s. 2012-04-12 20:39:15 +02:00
Piotr Caban 43d208d215 msvcrt/tests: Added more strftime tests. 2012-04-11 18:23:27 +02:00
Piotr Caban ef08e80765 msvcrt: Added _Strftime implementation. 2012-04-11 18:23:23 +02:00
Piotr Caban b58cfb40b9 msvcrt: Added field names to MSVCRT___lc_time_data structure. 2012-04-11 18:21:00 +02:00
Piotr Caban 426e58be69 msvcrt: Set correct date and time format for C locale. 2012-04-11 18:20:52 +02:00
Piotr Caban 2ca9a73a31 msvcrt: Rewrite wasctime function. 2012-04-11 18:20:34 +02:00
Piotr Caban 0f7c834bd1 msvcrt: Rewrite asctime function. 2012-04-11 18:20:14 +02:00
Alexandre Julliard 04ccf4f100 msvcrt: Use macros to define exception type info structures. 2012-04-04 20:47:06 +02:00
Alexandre Julliard 6bb9f20090 msvcrt: Use macros to define RTTI data. 2012-04-04 20:17:44 +02:00
Robert van Herk 516bb0ba64 msvcrt: Fix file mode T (temporary file). 2012-03-28 11:47:13 +02:00
Akihiro Sagawa ece5d712f6 msvcrt: Fix _mbsnbcmp and _mbsnbicmp implementation. 2012-03-26 18:15:33 +02:00
Akihiro Sagawa 7535b367dd msvcrt: Fix _mbcjistojms off by one error. 2012-03-26 18:15:33 +02:00
Akihiro Sagawa c1558bb7ef msvcrt/tests: Add more tests for _mbcjistojms. 2012-03-26 18:15:32 +02:00
Akihiro Sagawa 9085a2e54c msvcrt/tests: Rewrite test_mbcjisjms to test in various codepages. 2012-03-26 18:15:32 +02:00
Akihiro Sagawa 578d85f320 msvcrt: Improve _mbbtombc to handle Japanese characters. 2012-03-26 18:15:31 +02:00
Akihiro Sagawa d3e9665001 msvcrt: Add test for _mbbtombc. 2012-03-26 18:15:31 +02:00
André Hentschel 36217c208f msvcrt: Fix a typo. 2012-03-26 12:41:27 +02:00
Akihiro Sagawa c9f1489cab msvcrt: Implement _mbcjmstojis. 2012-03-16 11:11:07 +01:00
Akihiro Sagawa 0800572257 msvcrt: Add semi stub _mbcjmstojis implementation. 2012-03-16 11:10:54 +01:00
Alexandre Julliard 881374ee96 msvcrt: Add entry points for the C++ exception functions on x86_64. 2012-03-16 11:00:01 +01:00
Alexandre Julliard b8467c5f69 msvcrt: Add a new file for the x86_64 exception handling. 2012-03-16 10:58:08 +01:00
Alexandre Julliard 89b2dd08ff msvcrt: Move more i386-specific exception code to except_i386.c. 2012-03-16 10:53:21 +01:00
Alexandre Julliard aba6423b83 msvcrt: Create an i386-specific file for exception handling. 2012-03-16 10:52:10 +01:00
Akihiro Sagawa cf7479ca85 msvcrt: Add support for _flushall to clear all input buffer. 2012-03-14 12:59:11 +01:00
Akihiro Sagawa 58d6a9a331 msvcrt: Add a helper function to flush all buffers. 2012-03-14 12:59:10 +01:00
Akihiro Sagawa 1a01893c74 msvcrt: Add support for fflush to clear an input buffer. 2012-03-14 12:59:10 +01:00
Akihiro Sagawa 09a7f8c196 msvcrt/tests: Add tests for fflush on input stream. 2012-03-14 12:59:09 +01:00
Piotr Caban 79c19aef29 msvcrt: Fixed printf behaviour on hexadecimal, zero-padded numbers. 2012-03-13 10:26:05 +01:00
Piotr Caban c39793087d msvcrt: Handle negative file->_cnt value in _flsbuf function. 2012-02-07 09:32:20 -06:00
Eric Pouech f8b29a0685 msvcrt: Fix TRACE format modifier for wfreopen. 2012-02-06 10:19:32 -06:00
Dmitry Timoshkov 42157151d0 msvcrt: Add some tests for strftime/wcsftime. 2012-01-10 17:55:51 +01:00
Daniel Lehman 08aa6ae52d msvcrt: Add _snwprintf_l. 2012-01-09 12:52:17 +01:00
Daniel Lehman 85559848ff msvcrt: Sync _wtempnam with _tempnam. 2012-01-09 12:52:16 +01:00
Alexandre Julliard 446a6b3556 msvcrt: Use the correct type for findnext64. 2012-01-06 21:57:38 +01:00
Alexandre Julliard 2a1ce301fa msvcrt: Don't name a local variable 'errno'. 2012-01-06 21:48:56 +01:00
Daniel Lehman 5a3695ccee msvcrt: Make WEOF returned from swscanf signed. 2012-01-06 19:24:16 +01:00
Marcus Meissner b057a3e898 msvcrt: Mark various internal functions as hidden. 2012-01-03 12:37:32 +01:00
Piotr Caban 17f0ee4622 msvcrt: NULL terminate strings returned by _Getdays and _Getmonths. 2011-12-28 17:50:11 +01:00
André Hentschel 825a25ef96 msvcrt/tests: Fix two test messages. 2011-12-27 16:55:06 +01:00
Piotr Caban 283c07b8ce msvcp90: Added ctype<char>::tolower functions implementation. 2011-12-21 18:05:47 +01:00
Alexandre Julliard 88d632aec3 msvcrt: Fix formatting of pointers in printf. 2011-12-21 16:05:04 +01:00
Piotr Caban 516a65a605 msvcrt/tests: Added _Gettnames tests. 2011-12-07 17:50:05 +01:00
Piotr Caban d82dd2a4db msvcrt: Added _Getmonths implementation. 2011-12-07 17:50:05 +01:00
Piotr Caban 7a43f0cb8f msvcrt: Added _Getdays implementation. 2011-12-07 17:50:05 +01:00
Piotr Caban 4bb1e9c32a msvcrt: Added _Gettnames implementation. 2011-12-07 17:50:04 +01:00
Piotr Caban 344883fb85 msvcrt: Initialize lc_time_curr inside create_locale. 2011-12-07 17:50:04 +01:00
Piotr Caban dbff7a1ca2 msvcrt: Fix lc_collate_cp initialization. 2011-12-06 15:51:00 +01:00
Piotr Caban f84858ac2c msvcrt: Added _get_current_locale implementation. 2011-12-06 15:51:00 +01:00
Akihiro Sagawa 28184600e7 msvcrt: Add validity checks for _mbstrlen_l. 2011-12-01 14:17:35 +01:00
Akihiro Sagawa 13aff6dc56 msvcrt: Fix wctob in C locale. 2011-12-01 14:16:30 +01:00
Akihiro Sagawa f9403bfb90 msvcrt: Use given locale info in _mbtowcs_l. 2011-12-01 14:15:12 +01:00
André Hentschel f012242037 msvcrt: Implement _wasctime_s. 2011-11-30 17:04:39 +01:00
André Hentschel 35722cb4ce msvcrt: Implement asctime_s. 2011-11-30 17:04:35 +01:00
Eric Pouech d7bc2eff2f msvcrt: Implemented _ultow_s. 2011-11-29 13:23:47 +01:00
Piotr Caban 66520ea08a msvcrt: Fix FILE critical section initialization. 2011-11-24 20:57:01 +01:00
Piotr Caban 3fe5e6ee8a msvcrt: Keep FILE critical section initialized after closing file. 2011-11-23 14:14:39 +01:00
Frédéric Delanoy 520a92de33 msvcrt: Avoid hardcoding array lengths. 2011-11-23 09:11:22 +01:00
Francois Gouget d78bfe1149 msvcrt: Statically initialize and name the MSVCRT_file_cs critical section. 2011-11-16 17:02:10 +01:00
Piotr Caban 764b85511c msvcrt: Don't use fputc in flsbuf implementation. 2011-11-16 17:01:09 +01:00
Piotr Caban e4ac347075 msvcrt: Don't hold FILE critical section in some functions. 2011-11-15 19:37:37 +01:00
André Hentschel 947d1bf588 msvcrt: Implement _wfreopen_s. 2011-11-15 11:48:38 +01:00
André Hentschel ba5b0c34a8 msvcrt: Implement freopen_s. 2011-11-15 11:48:24 +01:00
Francois Gouget f2043352d1 msvcrt: Give a name to the critical sections. 2011-11-14 20:15:33 +01:00
Francois Gouget 8eef0cc258 dlls: Remove unneeded include directives in resource files. 2011-11-14 15:25:23 +01:00
Thomas Faber e374c8fe46 msvcrt: Fix MSVC build in locale.c. 2011-11-07 11:29:49 +01:00
Thomas Faber 5402827329 msvcrt: Fix MSVC build in exit.c and msvcrt.h. 2011-11-07 11:29:43 +01:00
Piotr Caban 698afdca98 msvcrt: Don't search for LCID in _setmbcp_l if it was already done. 2011-10-26 17:07:05 +02:00
Frédéric Delanoy 7bfe648666 msvcrt: Avoid superfluous cast of MSVCRT_malloc return value. 2011-10-21 12:31:36 +02:00
Piotr Caban 0bb641ad59 msvcrt: Initialize all ctype fields. 2011-10-18 18:29:19 +02:00
Marcus Meissner cd51c797f3 msvcrt: Use correct sizeof to realloc (Coverity). 2011-10-18 15:16:17 +02:00
Marcus Meissner 6ca6464cf3 msvcrt: Replaced bad memcpy by strcpy (Coverity). 2011-10-17 17:45:05 +02:00
Piotr Caban 922ae2e268 msvcrt: Fix handling of locales without region in MSVCRT_locale_to_LCID. 2011-10-14 13:12:28 +02:00
Piotr Caban 95f3be6573 msvcrt: Added missing calling convention specification. 2011-10-14 13:12:28 +02:00
Piotr Caban fea69b2305 msvcrt: Don't duplicate _setmbcp functionality inside _create_locale function. 2011-10-13 19:57:19 +02:00