Commit Graph

1475 Commits

Author SHA1 Message Date
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
Piotr Caban 99579ca42a msvcrt: Added _mbtowc_l implementation. 2011-10-12 17:09:34 +02:00
Piotr Caban 0f53100ade msvcrt: Move _pctype definition to locale.c. 2011-10-12 17:09:30 +02:00
Piotr Caban c32d4e8840 msvcrt: Use _ismbblead instead of _isleadbyte in mbcodepage dependent functions. 2011-10-12 17:09:25 +02:00
Piotr Caban cfca12e486 msvcrt: Use ismbcodepage instead of mb_cur_max in mbcodepage dependent functions. 2011-10-12 17:09:20 +02:00
Piotr Caban c9cdb55066 msvcrt: Handle C locale in _setmbcp. 2011-10-12 17:09:12 +02:00
Piotr Caban cf27cb4927 msvcrt: Don't overwrite mbcinfo inside setlocale. 2011-10-12 17:09:07 +02:00
Andrew Talbot 5f16eb9c48 msvcrt: Remove a superfluous semicolon. 2011-10-08 19:47:23 +02:00
Andrew Talbot 2df8dced84 msvcrt: Mark some fall-throughs in a switch statement. 2011-10-08 17:40:18 +02:00
Piotr Caban 45b4b4205a msvcrt: Added _iswdigit_l implementation. 2011-10-06 16:46:40 -05:00
Piotr Caban c867f3324e msvcrt: Free fd entries with incorrect HANDLE value. 2011-10-06 16:46:40 -05:00
Piotr Caban 190c67c70e msvcrt: Fix __pioinfo block size. 2011-10-06 16:46:40 -05:00
Piotr Caban 8df606fea4 msvcrt: Fix wcsncpy_s implementation. 2011-10-04 16:54:04 -05:00
Frédéric Delanoy 3274475299 msvcrt/tests: Remove dead assignments (Clang). 2011-09-28 12:38:21 +02:00
Piotr Caban af6fd252ef msvcr90: Fix _vswprintf_p implementation. 2011-09-20 16:21:40 +02:00
Francois Gouget 7da4305aec msvcrt: Fix printing NULL strings. 2011-09-20 16:21:39 +02:00
Piotr Caban 45dc6c0e22 msvcrt: Improve operator new implementation. 2011-09-13 11:27:45 +02:00
Piotr Caban b7ea63118a msvcrt: Fix _vswprintf* arguments. 2011-09-05 19:57:47 +02:00
Andrew Talbot dce81b9465 msvcrt: Constify some variables. 2011-08-23 16:53:53 +02:00
Andrew Talbot fb3b28f013 msvcrt: void functions should not return a value. 2011-08-22 16:14:31 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Austin English 1197b5e3e3 msvcrt/tests: Make sure to use return values. 2011-08-03 19:00:11 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Piotr Caban 0c14dc5330 msvcrt: Added vscwprintf_{l,p_l} functions implementation. 2011-08-01 18:26:26 +02:00
Piotr Caban 62a5540259 msvcrt: Fixed vswprintf* exports. 2011-07-29 15:33:49 +02:00
Piotr Caban a8c6fda501 msvcrt: Fix uninitialized memory access in wcsrtombs_l implementation (valgrind). 2011-07-28 18:37:39 +02:00
Piotr Caban d7b5c0b14f msvcrt: Fix %f format handling in printf so it works with big floats. 2011-07-26 16:33:40 +02:00
Piotr Caban 5e9ee3b909 msvcrt: Fixed tmpnam and _wtmpname implementation. 2011-07-26 16:33:04 +02:00
Daniel Verkamp fcd04e5987 msvcrt/tests: Add test for _get_pgmptr. 2011-07-04 13:40:27 +02:00
Daniel Verkamp 1357589eca msvcrt: Add _get_pgmptr and _get_wpgmptr. 2011-07-04 13:39:58 +02:00
Damjan Jovanovic c28baa7b96 msvcrt: The time passed to utime functions can be NULL. 2011-06-20 19:32:02 +02:00
Piotr Caban e5f68408ed msvcrt: Avoid deadlock when _beginthread is executed inside loader critical section. 2011-06-20 19:32:02 +02:00
Piotr Caban 4debdd6ac8 msvcrt: Fix __p__pctype implementation. 2011-06-20 11:28:12 +02:00
Marcus Meissner 034c2cb3fd mscvrt: Do not shadow fmt (Coverity). 2011-06-14 15:24:55 +02:00
Piotr Caban 34ed6b0dbc msvcrt: Fix broken exports in spec file. 2011-06-08 14:12:41 +02:00
Piotr Caban ab9077d640 msvcrt: Fixed buffer overflow in snprintf functions family.
Spotted by Andrew Miller.
2011-06-06 21:49:22 +02:00
Piotr Caban e398b93900 msvcrt: Improved tolower_l and toupper_l implementation. 2011-06-03 17:44:06 +02:00
Piotr Caban 2b9d946aea msvcrt: Fix pclmap and pcumap for "C" locale. 2011-06-03 17:44:06 +02:00
Piotr Caban f9de4eef75 msvcrt: Fix mingw compilation issues. 2011-06-03 17:44:06 +02:00