Mike McCormack
5b4327515e
Handle the printf %F format modifier.
2005-03-04 10:47:27 +00:00
Francois Gouget
fbb3343547
Assorted spelling fixes.
2005-03-02 13:53:50 +00:00
Uwe Bonnes
0fb9ef68f3
Advance over * argument for precision.
...
Honor precision argument for strings.
2005-02-25 19:16:46 +00:00
Jon Griffiths
eb5bf7dd38
Documentation spelling fixes.
2005-02-25 14:07:56 +00:00
Gunnar Dalsnes
1b7e736334
When getting current directory on a drive different from the working
...
drive, _getdcwd incorrectly passed "X:\" (X = any drive) as path to
GetFullPathName. "X:" (without the backslash) is the correct thing to
use.
2005-02-18 12:51:00 +00:00
Francois Gouget
dd073bbb3f
Cast the GetProcAddress() return value to avoid warnings about the
...
function pointer being of the wrong type.
Fix assorted signed/unsigned comparison warnings.
2005-02-14 21:04:45 +00:00
Mike McCormack
2cc5f1e469
Add handling of %ws, %S and %C to _vns(w)printf, improve sprintf
...
tests.
2005-02-14 20:53:42 +00:00
Francois Gouget
4d801b66e6
Assorted spelling fixes.
2005-02-10 19:19:35 +00:00
Francois Gouget
168265ebb0
Fix handling of EOF for the '%c' and '%C' cases in scanf().
...
Add conformance tests to verify the behavior of '%c'.
Improve some of the test's error messages.
2005-01-28 11:27:26 +00:00
Bill Medland
1953a1ed2d
Only report the unsupported flags.
...
Keep quiet about hints.
2005-01-10 14:28:21 +00:00
Lionel Ulmer
cc89feb9c4
fpos_t should be 64 bits (verified with native MSVCRT.DLL)
2005-01-04 20:38:14 +00:00
Lionel Ulmer
66725349d5
Handle buffering in fgetpos / fsetpos.
2005-01-04 20:37:54 +00:00
Eric Pouech
89f5283432
Some missing const correctness fixes.
2005-01-03 14:50:12 +00:00
Rein Klazes
3714a39867
Correct cases where arguments of ok() calls depend on the order in
...
which they are evaluated.
2004-12-27 17:26:37 +00:00
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Juan Lang
7b44be79df
Implement _popen and _pclose, and use debugstr_a to avoid a crash
...
tracing long command lines.
2004-12-14 15:13:54 +00:00
Juan Lang
8c0ccdcb68
Use debugstr_a to avoid crash tracing long command line.
2004-12-14 15:13:05 +00:00
Juan Lang
9b6c0eff37
- make file functions (mostly) thread-safe
...
- update a couple traces
2004-12-14 11:59:43 +00:00
Francois Gouget
eb3f078c75
Add trailing '\n's to ok() calls.
2004-12-14 11:41:24 +00:00
Eric Pouech
4056d7ef8c
Fixed some errors in function prototypes.
2004-12-13 21:19:01 +00:00
Rein Klazes
03d9cf286e
- implement __pioinfo, __badioinfo and _adjust_fdiv
...
- remove all stubs of data item from the spec file, those actually may
hide problems.
2004-12-10 15:28:25 +00:00
Juan Lang
1e23777ae5
- implement _dup, _dup2, and _pipe
...
- make max file descriptors 2048 to match MS
- increase max file streams to match
2004-12-09 16:51:26 +00:00
Alexandre Julliard
ebe3c529b1
Janitorial: C booleans must not be compared against TRUE.
2004-12-09 14:07:59 +00:00
Juan Lang
b100339e2f
Flush file in fputc when character is '\n'.
2004-12-07 17:05:08 +00:00
Juan Lang
4120647ae7
Set st_mode bits in _fstati64.
2004-12-06 16:14:09 +00:00
Juan Lang
e3060b4d98
msvcrt_spawn should free STARTUPINFOA's lpReserved2, not its address.
2004-12-06 16:08:36 +00:00
Peter Chapman
505dfdefb5
Fix up several inline assembler blocks so that they produce correct
...
code with the -fomit-frame-pointer gcc flag.
2004-12-02 18:19:25 +00:00
Eric Pouech
0a258964c2
Const correctness fixes.
2004-11-30 21:38:57 +00:00
Eric Pouech
d3b39fe3f2
Fixed file name when opening NUL.
2004-11-28 15:01:50 +00:00
Bill Medland
2ea15a5673
Don't mess up the msvcrt codepage on e.g. _MB_CP_ANSI.
2004-11-21 15:42:03 +00:00
Eric Pouech
a2d24c8a4a
Now that name undecoration works, fix the type info.
2004-11-08 22:11:05 +00:00
Eric Pouech
98f94544ac
Implemented __unDName and __unDNameEx functions.
2004-11-08 22:10:43 +00:00
Rein Klazes
dceae02d73
- RtlTimeFieldsToTime should not normalize the time fields
...
structure. Instead return error when it is given an unormalized
date.
- Use better algorithms for RtlTimeToTimeFields and
RtlTimeFieldsToTime. RtlTimeToTimeFields is about 3 times faster.
- Add tests for RtlTimeFieldsToTime.
- SystemTimeToFileTime must fail if RtlTimeFieldsToTime fails. Users
of SystemTimeToFileTime must do likewise.
- Remove a todo_wine from SystemTimeToFileTime tests.
- Since msvcrt.mktime must accept unnormalized dates, it cannot use
SystemTimeToFileTime and do the calculations itself.
- Add some tests for mktime accepting unnormalized dates.
2004-11-06 03:53:53 +00:00
Aneurin Price
97cc28ff0f
- Move printf tests from scanf.c to printf.c (and fix one on the
...
way).
- Add some more.
2004-11-04 21:03:30 +00:00
Tony Lambregts
2dec525020
Fix up init_fp test for freopen.
2004-11-03 22:17:05 +00:00
Rein Klazes
2fc0f991d8
In MSVCRT_localtime() return tm_isdst = 0 when there are no daylight
...
time changes in the local time zone.
2004-10-27 21:17:44 +00:00
Rein Klazes
4ca34c4b2f
Correctly use the returned value from GetTimeZoneInformation.
2004-10-25 21:48:57 +00:00
Rein Klazes
dc78e9a595
- mktime should compute the tm_wday, tm_yday and renormalize the
...
other fields of the supplied tm structure.
- add prototype declarations for the time functions.
2004-10-21 19:56:46 +00:00
Alexandre Julliard
5d5f523052
Output the virtual tables for the exception classes using assembly so
...
that they can have the correct layout, and get rid of the
corresponding hacks in RTTI_GetObjectLocator.
Build more of the code on non-i386 platforms too.
Protect __RTDynamicCast and friends with exception handlers.
Fix handling of the vtable pointer so that we don't need to declare
all object pointers as type_info.
2004-10-19 04:03:07 +00:00
Alexandre Julliard
b8d5d962ee
Fixed __RTDynamicCast to return the correct pointer for multiple
...
inheritance hierarchies (thanks to Muse Research for help with this
one).
Added some debug output.
2004-10-18 23:13:55 +00:00
Alexandre Julliard
21548cf02b
Fixed spelling of 'hierarchy'.
2004-10-14 03:11:52 +00:00
Hans Leidekker
9ec800fd6d
Prefix _fsopen with MSVCRT_ to avoid collision with MinGW header.
...
Typo fix.
2004-10-14 00:26:39 +00:00
Uwe Bonnes
46e922bba5
Added MSVCRT_CLOCKS_PER_SEC define.
2004-09-08 19:05:28 +00:00
Hans Leidekker
fe442b21f7
Fix signed/unsigned comparison warnings.
2004-09-08 01:23:57 +00:00
Eric Pouech
0bfb1cbc6b
- msvcrt: the file descriptors are now inherited between parent/child
...
processes
- kernel32.CreateProcess: make use of the *reserved2 fields for
C-RunTime data inheritance
2004-09-03 01:05:30 +00:00
Alexandre Julliard
1b30417811
Function parameters don't need WINE_UNUSED.
2004-09-01 04:58:21 +00:00
Alexandre Julliard
03250ff6e7
Inline functions don't need WINE_UNUSED.
2004-09-01 04:55:52 +00:00
Francois Gouget
dff5004bc0
Assorted spelling fixes.
2004-08-26 00:31:20 +00:00
Francois Gouget
61d21ce706
Update RTL_BITMAP and RTL_BITMAP_RUN to match the 2000 DDK.
...
Only test the Rtl{Initialize,SetAll,ClearAll}Bits macros if they are
defined.
2004-08-23 18:52:54 +00:00
Francois Gouget
493cf88bb6
Remove these Wine-only types:
...
EnumICMProfilesProcCallback
PEXCEPTION_REGISTRATION_RECORD
Don't test these Wine-only types:
EMRSETTEXTJUSTIFICATION
EXCEPTION_REGISTRATION_RECORD
Remove EXCEPTION_FRAME, it doesn't exist at all.
2004-08-22 02:07:13 +00:00
Francois Gouget
6f902f16fb
The Windows headers don't define PEXCEPTION_REGISTRATION_RECORD.
...
Remove it.
2004-08-13 23:22:30 +00:00
Francois Gouget
48ea250887
Don't define __WINE_USE_MSVCRT in the Visual C++ project. It is not
...
needed as it is defined by the Wine headers.
Use __WINE_USE_MSVCRT to detect whether we are being compiled with the
Wine MSVCRT headers or the Windows ones. In the latter case:
- don't try to include the Wine-specific msvcrt headers
- skip all the headers.c tests since there's no MSVCRT_* symbols to
check
2004-08-11 19:36:17 +00:00
Francois Gouget
f8e01efb3d
Assorted spelling fixes.
2004-07-23 23:02:09 +00:00
Mike Hearn
ad4a00d35a
Add some test cases for _wputenv, fix deletion of non-existent
...
environment variables, return -1 on error.
2004-07-19 21:23:02 +00:00
Alexandre Julliard
9d3ee0d7c1
Implemented _spawnle and _spawnlpe.
2004-07-16 03:08:19 +00:00
Pierre d'Herbemont
2c3bf27108
Don't test i386 types on non i386.
2004-07-12 23:48:58 +00:00
Alexandre Julliard
bfb98f66f6
Added tests for div_t and ldiv_t.
2004-07-06 18:45:26 +00:00
Pierre d'Herbemont
30d5ce7ffb
Define MSVCRT_div_t and MSVCRT_ldiv_t.
2004-07-06 18:45:02 +00:00
Dimitrie O. Paun
0377462460
Split the MSVCRT implementation headers from the public headers.
...
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +00:00
Mike McCormack
db0d0bb39b
Copy the vsnprintfW implementation from libunicode.so to msvcrt and
...
add a handler for the %S flag. That requires a conversion to unicode
and knowledge of the current ASCII code page.
2004-06-02 00:35:09 +00:00
Uwe Bonnes
f7e9e5b788
Fixed typo.
2004-05-27 20:01:34 +00:00
Eric Pouech
df93f2eeee
GetModuleFileName[AW] doesn't terminate the string if the buffer is
...
too small.
2004-05-19 03:22:55 +00:00
Patrik Stridvall
070db4e5de
Fixed some issues found by winapi_check.
2004-05-17 21:08:31 +00:00
Raphael Junqueira
d134aa5945
Fix scanf handling of float numbers (beginning with a dot).
2004-05-17 19:49:44 +00:00
Alexandre Julliard
adc86dccaa
Fixed copy/paste bug in previous change.
2004-05-13 00:23:25 +00:00
Alexandre Julliard
8f7c2bc6a5
Fixed the prototypes of the _adj_fdiv_* functions.
2004-05-12 23:22:36 +00:00
Eric Pouech
bcc2a5c540
- rewrote the file code so that streams manage low level file desc
...
(the code was written the other way around)
- reworked the flag handling code (now the stream._flag is closer to
what MS does)
- simplified temp files handling by using FILE_FLAG_DELETE_ON_CLOSE in
CreateFile
- fixed a couple of bugs
2004-05-12 00:12:26 +00:00
Francois Gouget
cfc3943c5f
Make our ascii strings static const.
...
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Francois Gouget
c6c109a362
Use named constants instead of magic numbers.
2004-04-09 19:03:13 +00:00
Alexandre Julliard
b004771314
Portability fix.
2004-04-08 19:49:49 +00:00
Dave Belanger
9a05e1fd41
wcstod: added exponent parsing and fixed handling of negative sign.
2004-04-08 19:48:19 +00:00
Uwe Bonnes
1c6cb382bc
Correct errors with move to kernel time functions.
...
Add test case.
2004-03-25 00:12:40 +00:00
Rein Klazes
4d6db9a6e7
The name is _longjmpex (with the underscore).
2004-03-24 23:38:16 +00:00
Alexandre Julliard
9e4ed6460c
.spec.c files are no longer used for 32-bit dlls.
2004-03-24 03:36:44 +00:00
Uwe Bonnes
9c6774f18a
Relay msvcrt_memcpy to memmove, CString::Insert seems to rely on that
...
behaviour. Add a test case.
2004-03-19 01:53:11 +00:00
Hans Leidekker
3f09feda6e
Reimplement time functions with Win32 APIs.
...
Implement localtime()/gmtime().
2004-03-19 01:16:59 +00:00
Hans Leidekker
821f4775a3
- Prefix many more functions, types, structs, etc. with MSVCRT_.
...
- Correct prototypes for _memccpy()/_memicmp().
- "define before use" reordering in file.c.
- Use the new math.h/float.h.
2004-03-16 19:17:11 +00:00
Hans Leidekker
6ee09f5d56
Implement _ftime with Win32 APIs.
2004-03-11 00:43:47 +00:00
Dimitrie O. Paun
bb6d87f626
Heap tests cleanup.
2004-03-11 00:38:14 +00:00
Alexandre Julliard
589e115233
We no longer use the .exe.spec.c files.
2004-03-02 21:16:37 +00:00
Uwe Bonnes
0511d33522
Implement I64 modifier, move WARN to TRACE.
2004-02-24 01:09:39 +00:00
Alexandre Julliard
c042e13ef6
Fixed varargs handling in the scanf functions (spotted by Eric
...
Pouech).
2004-02-19 01:13:12 +00:00
Francois Gouget
ad5ff7ceeb
Assorted spelling and case fixes.
2004-02-09 22:07:42 +00:00
Alfons Hoogervorst
bfc4044511
Fix infinite loop in _flushall.
2004-02-09 20:49:34 +00:00
Jon Griffiths
f90092c4c6
Use Unicode calls instead of ASCII where applicable.
...
Documentation updates.
2004-02-09 20:45:59 +00:00
Francois Gouget
231fbff8d0
Add trailing '\n's to ok() calls.
2004-01-27 04:01:10 +00:00
Rein Klazes
950da26b98
Two "unknown" parameters of _unDName() turn out to be the output
...
string and it length. If possible, use these instead of allocating a
new one. Put the code in _unDNameEx() and call that from _unDName().
2004-01-13 22:56:59 +00:00
Alexandre Julliard
dec198afe0
Implemented the remaining 64-bit file functions, and added a few other
...
functions and exported variables.
Removed the almost empty lconv.c file.
2004-01-13 05:45:05 +00:00
Alexandre Julliard
83883e1730
_set_error_mode is cdecl not stdcall.
2004-01-13 01:08:59 +00:00
Francois Gouget
640cc3f3e1
Assorted spelling fixes.
2004-01-06 22:08:33 +00:00
Peter Berg Larsen
a457ee0a3d
%[a-z] and %[z-a] are interpreted as equivalent to %[abcde...z].
...
Added some scanf tests.
2004-01-06 21:36:10 +00:00
Peter Berg Larsen
ccd749684f
Added _BITMAPSIZE_ and split _CONVERT_ macro to remove #ifdefs.
2004-01-06 20:38:37 +00:00
Ferenc Wagner
d8e98d3a0a
Fix undeleted temporary file.
...
Correct error messages and comments, break long lines.
2003-12-30 19:09:08 +00:00
Uwe Bonnes
545a3b7118
Patch and test for scanf %i.
2003-12-15 21:06:19 +00:00
Ferenc Wagner
20c1d1e0f9
Added snprintf test.
2003-12-15 19:50:05 +00:00
Alexandre Julliard
f752be843e
Implement some more register functions using DEFINE_REGS_ENTRYPOINT to
...
make them available for imports.
2003-12-04 05:51:01 +00:00
Alexandre Julliard
0b19a6f7bc
Better support for div and ldiv in Winelib apps.
2003-11-28 23:17:28 +00:00
Dimitrie O. Paun
c5150fb682
Fix realloc() to match the documented behaviour.
...
Add a few simple tests for it.
2003-11-20 23:41:13 +00:00
Kirill Smelkov
676164cc39
Added _execle/_execlpe & _spawnle/_spawnlpe stubs.
2003-11-14 03:29:51 +00:00
Ulrich Czekalla
736d96b5b3
Duplicate stdin/stdout handles to avoid closing them when library is
...
unloaded.
2003-10-31 04:17:45 +00:00