Commit Graph

177 Commits

Author SHA1 Message Date
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
Piotr Caban dc830aa640 msvcrt: Rework wcsncpy_s to work on overlapping pointers. 2012-04-24 19:12:51 +02:00
Piotr Caban a80aec4c56 msvcrt: Added support for _TRUNCATE flag in wcsncpy_s. 2012-04-12 20:39:15 +02:00
Daniel Lehman 08aa6ae52d msvcrt: Add _snwprintf_l. 2012-01-09 12:52:17 +01:00
Akihiro Sagawa 13aff6dc56 msvcrt: Fix wctob in C locale. 2011-12-01 14:16:30 +01:00
Piotr Caban 45b4b4205a msvcrt: Added _iswdigit_l implementation. 2011-10-06 16:46:40 -05:00
Piotr Caban 8df606fea4 msvcrt: Fix wcsncpy_s implementation. 2011-10-04 16:54:04 -05:00
Piotr Caban af6fd252ef msvcr90: Fix _vswprintf_p implementation. 2011-09-20 16:21:40 +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 f9de4eef75 msvcrt: Fix mingw compilation issues. 2011-06-03 17:44:06 +02:00
Piotr Caban 6991ac0331 msvcrt: Use get_locinfo instead of get_locale. 2011-05-25 11:45:42 +02:00
Piotr Caban ddad22d037 msvcrt: Fix return values in wcstombs and wcsrtombs functions. 2011-05-16 16:36:10 +02:00
Piotr Caban 69ea5768a6 msvcrt: Added _towupper_l and _towlower_l implementation. 2011-05-12 14:26:07 +02:00
Piotr Caban 64cf208040 msvcrt: Don't pass NULL as __ms_va_list in printf implementation. 2011-05-11 17:49:16 +02:00
Francois Gouget ca268b199a msvcrt: Make printf_arg arg_clbk_positional() and MSVCRT_wcsrtombs_s_l() static. 2011-05-03 14:38:06 +02:00
Piotr Caban 6ecabf7cae msvcrt: Added _set_printf_count_output and _get_printf_count_output implementation. 2011-04-28 11:08:06 +02:00
Piotr Caban 168909283c msvcrt: Added wcsrtombs implementation. 2011-04-28 11:07:46 +02:00
Piotr Caban 00182ca6d9 msvcrt: Added sprintf_p_l implementation. 2011-04-27 13:18:59 +02:00
Piotr Caban c09f9ef498 msvcrt: Removed pf_vnsprintf internal function. 2011-04-25 14:36:42 +02:00
Piotr Caban bfc2f5f2a5 msvcrt: Use callback based printf in sprintf functions family. 2011-04-25 14:36:36 +02:00
Piotr Caban 7303b8c4db msvcrt: Use callback based printf in cprintf functions family. 2011-04-25 14:36:26 +02:00
Piotr Caban 056dfb26ce msvcrt: Copy and reorganize printf implementation. 2011-04-25 14:36:19 +02:00
Piotr Caban f989011be2 msvcrt: Added wctob implementation. 2011-04-06 12:05:07 +02:00
Andrew Nguyen 5c57185060 msvcrt: Ensure that old buffer contents are copied when allocating a growable pf_output buffer for the first time. 2011-04-04 16:12:37 +02:00
Piotr Caban da4ed47076 msvcrt: Correctly terminate string in wcsncat_s. 2011-03-30 18:59:23 +02:00
Piotr Caban fdffe548f1 msvcrt: Added space for nullbyte in size returned by wcstombs_s and mbstowcs_s. 2011-03-30 18:59:22 +02:00
Nikolay Sivov 46ae113e71 msvcrt: Added partially complete _wcsupr_s_l (without locale support). 2011-03-07 13:18:19 +01:00
Nikolay Sivov 27e18b3bbc msvcrt: Added _wcslwr_s implementation. 2011-03-07 13:18:03 +01:00
Mike Gibson 23906816d8 msvcrt: Implement wcsnicoll. 2010-12-05 16:45:43 +01:00
Eric Pouech d38196a0ff msvcrt: Use the macros for parameter checking for wcsncat_s (and fix the test). 2010-11-16 12:02:00 +01:00
Eric Pouech 7d384d23f8 msvcrt: For internal msvcrt use, added ability to grow automatically the size of the buffer in printf core engine. 2010-11-08 18:12:57 +01:00
Eric Pouech 4b6d5fd583 msvcrt: Implemented wcstok_s. 2010-11-03 11:08:56 +01:00
Eric Pouech 5d4de2ac45 msvcrt: Use parameter checking macros in vsn(w)printf_s_l. 2010-11-01 12:35:55 +01:00
Eric Pouech 4c337fb491 msvcrt: Use parameter checking macros in wcstombs_s_l. 2010-11-01 12:35:45 +01:00
Eric Pouech 16c89a543a msvcrt: Use parameter checking macros for wcsto{number} functions. 2010-11-01 12:35:34 +01:00
Damjan Jovanovic b39c59e75d msvcrt: Improve wcsncat_s. 2010-10-19 10:15:38 +02:00
Damjan Jovanovic 302d63a225 msvcrt: Implement wcsncat_s. 2010-10-18 19:47:49 +02:00
Hans Leidekker 23fdfbc392 msvcrt: Implement wcsnlen. 2010-09-29 10:11:48 +02:00
Piotr Caban 120346da88 msvcrt: Added 'll' modifier to printf functions. 2010-09-23 17:50:12 +02:00
Piotr Caban 600fa766f3 msvcrt: Added _scprintf implementation. 2010-08-27 12:06:12 +02:00
Piotr Caban 9915dd03b4 msvcrt: Fixed strtod_l/wcstod_l implementation. 2010-07-22 16:11:02 +02:00
Nikolay Sivov 97807760ca msvcrt: Add _scwprintf implementation. 2010-06-11 11:36:39 +02:00
Nikolay Sivov 1a234159fe msvcrt: Add _snwprintf_s implementation. 2010-06-11 11:36:35 +02:00
Nikolay Sivov 59bddde594 msvcrt: Add _snprintf_s implementation. 2010-06-11 11:36:30 +02:00
Alexander Scott-Johns d56113cd4f msvcrt: The sizeOfBuffer argument of _vsnwprintf_s is measured in wide characters, not bytes. 2010-06-07 13:51:55 +02:00
Alexander Scott-Johns 2663079c60 msvcrt: Rename _TRUNCATE to MSVCRT__TRUNCATE. 2010-06-07 13:51:34 +02:00
Alexander Scott-Johns 19bff6bda5 msvcrt: Fix comments. 2010-06-07 13:49:18 +02:00
Piotr Caban 6f358ef867 msvcrt: Fix wcstombs_l implementation. 2010-05-24 11:25:09 +02:00
Piotr Caban 117faee955 msvcrt: Fix strtod and wcstod implementation. 2010-05-10 10:08:57 +02:00
Piotr Caban 335c9772ec msvcrt: Fixed wcstombs(_s_l) implementation. 2010-05-06 15:20:11 +02:00
Detlef Riekenberg 1ac1633161 msvcrt: Fix wrong msvcr90 in comments. 2010-04-28 15:04:39 -05:00
Piotr Caban 6c0e61cd65 msvcrt: Added wcstombs_s implementation. 2010-04-27 13:04:57 -05:00
Piotr Caban 0ec1635172 msvcrt: Added _wcstoi64 and _wcstoui64 implementation. 2010-04-27 13:04:52 -05:00
Piotr Caban 6974abe0e6 msvcrt: Use wcstod_l/strtod_l in other functions that parses doubles. 2010-04-26 09:07:44 -05:00
Piotr Caban f7197663c9 msvcrt: Added wcstod_l implementation.
It's almost a copy of strtod_l.
2010-04-26 09:07:30 -05:00
Piotr Caban c483bebe2b msvcrt: Added swprintf_s implementation. 2010-04-21 11:07:45 +02:00
Piotr Caban 97bad69184 msvcrt: Added implementations of _vswprintf* functions. 2010-04-19 15:10:55 +02:00
Piotr Caban 743e6ba688 msvcrt: Added _vsnwprintf* implementation. 2010-04-19 15:10:44 +02:00
Piotr Caban 85fa2ee53c msvcrt: Added _vsnprintf* implementation. 2010-04-19 15:10:26 +02:00
Piotr Caban 09a32152d5 msvcrt: Add parameters to mimic *_s function behaviour in pf_vsnprintf. 2010-04-19 15:10:14 +02:00
Piotr Caban 419f902546 msvcrt: Format strings according to specified locale in pf_vsnprintf. 2010-04-19 15:10:04 +02:00
Piotr Caban 903c524d43 msvcrt: Added _iswalpha_l implementation. 2010-04-08 12:38:56 +02:00
Piotr Caban b90320652d msvcrt: Rename functions conflicting with mingw headers. 2010-03-29 15:50:19 +02:00
Jason Edmeades 97194ec070 msvcrt: Add support for sprintf_s. 2010-01-11 12:19:34 -06:00
Jason Edmeades a2d4e5cb5d msvcrt: Add support for vsprintf_s. 2010-01-11 12:19:30 -06:00
Marcus Meissner 4da51e087d msvcrt: Remove unnecessary NULL check (Coverity). 2009-12-04 14:34:58 +01:00
Andrew Nguyen 1eb0775670 msvcrt: Implement and test _wcsupr_s. 2009-11-16 17:06:16 +01:00
Andrew Nguyen 15b0087d6e msvcrt: Remove dead code in wcscpy_s. 2009-08-10 13:11:02 +02:00
Hans Leidekker 0803575fd3 msvcrt: Implement _vscprintf and _vscwprintf. 2009-03-26 16:12:15 +01:00
Alexandre Julliard a494b13abe msvcrt: Avoid size_t in printf format. 2009-01-08 13:12:24 +01:00
Alexandre Julliard 07ca8f4f8f msvcrt: Convert all the printf functions to use MS ABI varargs. 2009-01-03 11:38:25 +01:00
Alexandre Julliard 34f2487163 msvcrt: Fix formatting of pointers in printf. 2009-01-02 21:33:33 +01:00
Andrew Talbot 4c3d27dfee msvcrt: Sign-compare warnings fix. 2008-10-22 13:54:53 +02:00
Eric Pouech 6a77a36b24 msvcrt: Implemented vswprintf_s. 2008-10-21 11:45:54 +02:00
Eric Pouech 07c80924eb msvcrt: Implemented wcscat_s. 2008-10-13 11:55:55 +02:00
Eric Pouech 096991428f msvcrt: Implemented wcsncpy_s. 2008-10-06 14:11:53 +02:00
Jon Griffiths 8e86162be5 msvcrt: Fix exponents in *printf family. 2008-07-16 20:10:28 +02:00
Jon Griffiths b86915382d msvcrt: Follow Vista behaviour in wcscpy_s. 2008-05-27 19:37:09 +02:00
Alistair Leslie-Hughes 00609d5e78 msvcrt: Implement wcscpy_s. 2008-02-27 14:52:26 +01:00
Alexandre Julliard 1f5a4a8046 msvcrt: Get rid of the now unused strndup/wstrndup functions. 2007-07-27 12:18:44 +02:00
Michael Stefaniuc bbe9c51b31 msvcrt: Fix *printf() handling of negative field width. 2007-02-05 12:26:10 +01:00
Sam Dennis 48c006621d msvcrt: Use the custom vsnprintf implementation for msvcrt.vsprintf too. 2006-11-15 11:25:00 +01:00
Jesse Allen 5b75c86921 msvcrt: Estimate required buffer size better in pf_vsnprintf. 2006-11-14 11:37:31 +01:00
Jesse Allen fa8656f841 msvcrt: Free correct buffer in pf_vsnprintf. 2006-11-14 11:35:42 +01:00
Alexandre Julliard 24beabfd4e msvcrt: Explicitly specify CDECL calling convention on exported functions. 2006-06-13 11:40:23 +02:00
Andrew Talbot 5ebf4f5b4e msvcrt: Write-strings warnings fix. 2006-06-06 11:29:41 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Peter Beutner bc83ae9fda msvcrt: Fix handling of 'h' prefix in swprintf.
- '%hs' in widechar string functions is wrongly recognized as
  a widechar string. Fix this by always checking the prefix first.
- add testcase
- remove code duplication in %c/%s handling by moving code into a function.
2006-05-16 20:21:44 +02:00
Alexandre Julliard a17b2c1cd2 msvcrt: Use the msvcrt version of printf everywhere. 2006-01-24 12:21:58 +01:00
Alexandre Julliard ee603ce6dd msvcrt: Make snprintf and snwprintf use the msvcrt version of printf.
Remove todos from tests that succeed now.
2006-01-14 17:30:02 +01:00
Alexandre Julliard 2ec3b96135 msvcrt: Make strtok and wcstok thread-safe by using the per-thread data. 2006-01-14 17:24:49 +01:00
Jesse Allen 419d493aac msvcrt: pf_integer_conv for I64.
- Add pf_integer_conv and pf_is_integer_format.
- Update pf_fill to handle printing the sign for signed integers.
- Handle I64 integer sizes using pf_integer_conv and pf_output_format_A.
2005-12-26 13:01:38 +01:00
Jesse Allen ee058ed078 msvcrt: Do not treat %ll as an IntegerDouble in printf. 2005-12-26 13:00:35 +01:00
Jesse Allen 6c70942a05 msvcrt: Parse I, I32, and I64 integer size flags in printf. 2005-12-26 13:00:01 +01:00
Jesse Allen 180326bb0a msvcrt: Fix printf sign flags.
Fix the printf sign flags so that '+' doesn't always override ' '
space alone.  If they both appear, continue parsing and let '+' take
precedence.
2005-12-21 20:07:03 +01:00
Jesse Allen 39b725b799 msvcrt: Ignore PadZero when LeftAlign is true in printf conversions. 2005-12-20 11:49:05 +01:00
Jesse Allen 5c6311688c msvcrt: Require exact uppercase and lowercase format in printf routines. 2005-12-19 21:26:46 +01:00