Daniel Marmier
f95be92d24
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-15 03:35:54 +00:00
Alexandre Julliard
2937826866
Rewrote splitpath and wsplitpath to avoid modifying the path
...
separators.
2003-10-15 02:34:51 +00:00
Dimitrie O. Paun
fbdfd910c1
Remove SYMBOLFILE and LDDLLFLAGS from Makefiles.
2003-10-11 01:09:15 +00:00
Uwe Bonnes
78754341db
Added test for %n.
2003-10-10 00:00:35 +00:00
Uwe Bonnes
242beda8d2
%n returns the number of consumed characters.
2003-10-10 00:00:19 +00:00
Uwe Bonnes
3e83ec296e
Added some tests around fget(w)s.
2003-10-07 05:30:36 +00:00
Uwe Bonnes
7b8b62e61a
fget(w)s(): Don't drop characters when buffer is not large enough.
2003-10-07 05:22:04 +00:00
Uwe Bonnes
16fa009085
_write(): Don't fragment WriteFile() for TEXT mode write.
2003-10-07 04:01:28 +00:00
Uwe Bonnes
6fbcacbb92
_read(): In _O_TEXT mode make Readfile calls in chunks as big as
...
possible.
2003-10-07 03:33:58 +00:00
Uwe Bonnes
32f47b0648
MSVCRT___RTDynamicCast: Reject a NULL cppobj.
2003-10-06 21:10:44 +00:00
Daniel Marmier
a613de2a22
Use #ifdef instead of #if for all feature tests.
...
Check that _MSC_VER is defined before using it.
2003-09-30 00:33:47 +00:00
Alexandre Julliard
2470af6213
_tempnam and _wtempnam should not create the temp file (reported by
...
Wim Vanderbauwhede).
2003-09-27 02:45:39 +00:00
Jon Griffiths
90535ce905
Various test fixes for XP/msvc.
2003-09-25 20:29:40 +00:00
Alexandre Julliard
b48d812433
Rewrote getenv and _wgetenv to avoid returning a pointer to a freed
...
memory block.
2003-09-24 18:57:28 +00:00
Jon Griffiths
0b2d44ed53
Added tests for cpp objects/RTTI.
2003-09-24 18:49:45 +00:00
Jon Griffiths
d051a95b26
A first stab at wcstod().
2003-09-23 22:50:30 +00:00
Alexandre Julliard
cf52644a1c
Removed the A/W constants for builtin cursors, icons and resource
...
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard
7df1b9e03a
Start using the exported TEB structure from winternl.h where
...
possible.
2003-08-28 19:57:35 +00:00
Alexandre Julliard
b91e9cb3e6
Renamed a few more TEB fields.
2003-08-28 03:44:41 +00:00
Alexandre Julliard
ee106783d0
Renamed EXCEPTION_FRAME to EXCEPTION_REGISTRATION_RECORD since that
...
seems to be the official name.
2003-08-28 03:07:56 +00:00
Dimitrie O. Paun
00e5ccfa17
Stub out the _[w]popen/_pclose() functions.
2003-08-20 03:34:20 +00:00
Jon Griffiths
743b61e63a
Use exception as the base for all exception derived classes.
...
Implement type_info methods correctly.
Add static RTTI for exported objects.
Throw exceptions when run time casts fail.
2003-08-19 03:12:32 +00:00
Alexandre Julliard
9b8a0595bc
_ftol should return a 64-bit int (spotted by Jon Griffiths).
2003-08-19 01:03:08 +00:00
Alexandre Julliard
f93256a56c
Warning fixes.
2003-08-06 22:08:04 +00:00
André Johansen
70d1136ca7
Added a dummy implementation of the _set_error_mode() function.
2003-07-28 19:04:47 +00:00
Jon Griffiths
622a343e9f
Implement __p__wpgmptr, _wpgmptr.
...
Avoid using static storage for pgm pointers.
2003-07-18 22:54:47 +00:00
Alexandre Julliard
cf4e5d4eea
Added an assembly wrapper to retrieve the this pointer from %ecx for
...
_thiscall functions.
Fixed some bugs, and added a few missing functions.
2003-06-17 03:59:24 +00:00
Martin Fuchs
fb9d5c786f
Stub implementation for _Gettnames.
2003-06-06 18:11:23 +00:00
Marcus Meissner
960b6dcebf
Implemented localeconv() with libc function.
2003-06-04 20:24:56 +00:00
Uwe Bonnes
29c7e32f83
Fix some sscanf cases and testcase to get wxtide32.exe running.
2003-05-13 23:38:46 +00:00
Francois Gouget
f803e2a92d
Fix miscellaneous spelling errors and typos.
2003-05-13 00:41:57 +00:00
Francois Gouget
2ec955c93f
Change the #include order so the test compiles with the MSVC headers.
...
Fix a few signed/unsigned warnings.
2003-05-13 00:29:34 +00:00
Mike McCormack
0bfa31ee6f
Implemented _wfullpath.
2003-05-12 03:31:16 +00:00
Adam Gundy
9ea3c2d3ee
_open_osfhandle is expected to take the absence of either _O_TEXT or
...
_O_BINARY to mean _O_BINARY.
2003-05-08 21:02:31 +00:00
Michael Stefaniuc
7d77d77d71
mbtowc returns -1 if we can't find a valid multibyte char in the non
...
NULL source string.
2003-04-17 02:15:03 +00:00
Andreas Mohr
51c38cc729
Fix blatantly wrong SetFilePointer() calls.
2003-04-14 21:33:49 +00:00
Adam Gundy
2f5e5f3d29
MSVCRT_fclose() mustn't use the _flag field from the file structure
...
after _close() has been called.
When _open_osfhandle() is used by MFC's CStdioFile, it expects write
access even though it doesn't set the necessary flag bit.
2003-03-30 03:06:30 +00:00
Sylvain Petreolle
79461420bf
_wsplitpath: Display correctly the path being split.
2003-03-27 18:35:12 +00:00
Alexandre Julliard
9612383678
Moved [efg]cvt functions to msvcrt and fixed them to use a per-thread
...
buffer.
2003-03-20 23:47:25 +00:00
Alexandre Julliard
114a31a2a8
Take advantage of new winebuild syntax to remove redundant function
...
names in spec files.
2003-03-20 03:53:12 +00:00
Jon Griffiths
c62c1c0158
Add __CxxDetectRethrow(), __CxxQueryExceptionSize().
...
Constify parameters (enabling static RTTI).
Move type definitions into a header for sharing with cpp.c objects.
2003-03-18 18:26:05 +00:00
Jon Griffiths
9c2c288139
Move a couple of shared definitions into msvcrt.h.
...
init_vtables() is redundant with upcoming fixes to cxx functions.
2003-03-17 21:21:59 +00:00
Jon Griffiths
26a3968758
_EXIT_LOCK2 is used by type_info objects.
2003-03-17 21:21:34 +00:00
Alexandre Julliard
cf4f95326e
Fixed a couple of relay arguments, and updated some of the stub
...
comments.
2003-03-17 04:44:12 +00:00
Alexandre Julliard
a9c51cb60b
Replaced forwards by normal function declarations.
2003-03-17 00:17:00 +00:00
Alexandre Julliard
d354a1ca87
Implemented _getdllprocaddr(), it cannot be simply a forward to
...
GetProcAddress.
2003-03-17 00:05:44 +00:00
Alexandre Julliard
2c8a52ebad
Implemented _chkesp, based on a patch by Jon Griffiths.
2003-03-15 22:26:09 +00:00
Jon Griffiths
f5be136c58
Display abnormal exit text in a message box for GUI apps.
2003-03-15 22:25:01 +00:00
Jon Griffiths
57915f50c7
Implemented __p__pgmptr, _pgmptr.
2003-03-15 19:38:39 +00:00
Dmitry Timoshkov
ad068bc0c2
Move vsnwprintf implementation to libwine_unicode, export snprintfW
...
and vsnprintfW from there, forward MSVCRT and NTDLL functions to
libwine_unicode.
2003-03-12 22:30:16 +00:00
Thomas Mertes
657ca8a873
Forward to the ntdll functions _itoa, _ltoa, _ultoa, _i64toa,
...
_ui64toa, _itow, _ltow, _ultow, _i64tow, _ui64tow, _atoi64, _wtoi,
_wtol, _wtoi64 from msvcrt / msvcrt20.
2003-03-12 20:17:03 +00:00
Marcus Meissner
dbcbbe0211
Added _daylight stub int, and __p__daylight function.
2003-03-04 02:19:15 +00:00
Uwe Bonnes
f540ea642e
Rough implementation of _O_TEXT/_O_BINARY translation by doing single
...
byte read/writes in _O_TEXT mode and CR/LR handling.
fput/getwc must read multibyte characters in _O_TEXT.
Added test cases for _O_TEXT/_O_BINARY file handling and fgetws.
2003-02-19 22:09:33 +00:00
Warren Baird
586808fdf2
- Avoid possible seg fault when calling TRACE with NULL string pointers.
...
- Fix bad side-effect of makepath on input parameters.
2003-02-19 03:43:08 +00:00
Alexandre Julliard
ac13d2f47e
Print thread ids in traces with only 4 digits now that they are small
...
integers.
2003-02-18 23:29:47 +00:00
Michael Stefaniuc
909ffb7930
Implemented _mbsnbcat.
2003-02-14 23:26:58 +00:00
Marcus Meissner
5e71f2d536
Fix warning in __crtLCMapStringA.
2003-02-12 21:28:47 +00:00
Michael Stefaniuc
3dcd451bf6
Remove dead code after return or properly comment it out.
2003-02-12 01:23:17 +00:00
Marcus Meissner
1998beaeef
Implemented __crtLCMapStringA.
2003-02-11 22:11:17 +00:00
Alexandre Julliard
bb2210bc45
Store mbstok() next pointer in the per-thread data.
2003-02-01 00:59:22 +00:00
Michael Stefaniuc
d76455df74
Implemented _mbstok and _mbsnbset.
2003-02-01 00:45:22 +00:00
Marcus Meissner
af39862fe3
Implemented mbsicoll (without locale handling).
2003-01-31 03:20:25 +00:00
Francois Gouget
9b0b1e078a
Remove (POINTER)NULL casts.
2003-01-14 23:43:41 +00:00
Alexandre Julliard
76db6b062e
Warning fixes.
2003-01-11 22:50:15 +00:00
Alexandre Julliard
a3717a2edd
Fixed EOF return value for sscanf.
2003-01-11 21:06:02 +00:00
Dimitrie O. Paun
13098ea188
Create stubs for chsize, dup, and dup2.
2003-01-11 21:01:04 +00:00
Mehmet Yasar
653510348a
- return EOF when stream is empty
...
- conformance test updated
2003-01-11 20:53:22 +00:00
Patrik Stridvall
46304a7361
Fixed some issues found by winapi_check.
2003-01-02 19:28:09 +00:00
Alexandre Julliard
7ea8a0b9be
Handle unknown format chars correctly (spotted by György 'Nog'
...
Jeney) and added test for it.
Removed unneeded _L_ macro.
2002-12-20 00:35:41 +00:00
Alexandre Julliard
5f31b32946
Use MSVCRT_wchar_t instead of WCHAR so that the implementation matches
...
the prototypes.
2002-12-19 04:21:30 +00:00
Alexandre Julliard
3f5ff2fba2
Avoid including other headers from the msvcrt headers, duplicate some
...
definitions instead like Windows does.
Always define wchar_t (suggested by Dimitrie O. Paun), and use wchar_t
everywhere instead of WCHAR to avoid depending on Windows headers.
2002-12-18 20:17:20 +00:00
Bill Currie
c78902221f
fdopen: don't rewind the file after creating the FILE* handle. Added
...
unit test for that.
2002-12-17 04:18:07 +00:00
Dimitrie O. Paun
737d4be892
Move excpt.h out of include/msvcrt/ as it does not conflict with any
...
standard Unix header.
2002-12-12 23:34:01 +00:00
Alexandre Julliard
dbf8b78acd
Added .spec.def files.
2002-12-12 22:04:04 +00:00
Alexandre Julliard
72e1c64345
Added list of symbols to ignore by default in winebuild.
...
Made the -i option support removing ignored symbols too.
Removed the -noimport flag in spec files.
2002-12-12 02:20:47 +00:00
Alexandre Julliard
435e2e63f4
winnt.h should not be self-contained, it must depend on windef.h so
...
that STRICT works correctly; moved some definitions back to windef.h
where they belong, and removed a couple of definitions that don't
exist on Windows.
2002-12-10 22:56:43 +00:00
Stefan Leichter
a5d7fbfb10
Converted implementation of _lseek to _lseeki64, implemented _lseek by
...
calling _lseeki64.
2002-11-25 20:50:01 +00:00
Stefan Leichter
b88a9d5399
Converted implementation of _stat and _fstat to _stati64 and
...
_fstati64.
Implemented _stat/_fstat by calling _stati64/_fstati64.
2002-11-25 02:44:34 +00:00
Alexandre Julliard
910aebbc8e
Removed -noimport on functions that are forwards to ntdll.
...
Added -noimport on functions that directly call the libc equivalent.
2002-11-20 19:52:14 +00:00
Alexandre Julliard
083b0beb0b
Implemented some ismbc* functions (based on a patch by Greg Turner).
2002-11-19 00:52:38 +00:00
Alexandre Julliard
2b6eafa0f9
Fixed data copying in msvcrt_argvtos (spotted by bill@taniwha.org).
2002-11-13 04:20:54 +00:00
Alberto Massari
43662153c0
The already implemented function swscanf was missing an entry.
2002-11-12 23:20:31 +00:00
Patrik Stridvall
517a93afe3
Fixed some issues found by winapi_check.
2002-11-06 19:57:49 +00:00
Alexandre Julliard
1e1313d54c
Made the dll entry point default to DllMain and removed most of the
...
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Alexandre Julliard
6bd508f82c
Added clobber lists to the inline assembly functions.
2002-11-01 01:50:51 +00:00
Marcus Meissner
306a60d162
_seh_longjmp_unwind is i386 only for now.
2002-10-31 22:04:53 +00:00
Alexandre Julliard
5ad69f19bf
Added support for nested exceptions happening inside a catch block.
2002-10-31 02:10:15 +00:00
Uwe Bonnes
a768fa3119
First version of msvcrt scanf test.
2002-10-30 23:49:03 +00:00
Michael Stefaniuc
789b4b4204
Compile the msvcrt dll with -DSTRICT.
2002-10-25 03:12:01 +00:00
Alexandre Julliard
23bb3715f7
Added support for building certain dlls with -DSTRICT.
...
Added -DWINE_NO_STRICT flag to dlls that don't support STRICT yet.
2002-10-18 23:46:28 +00:00
Alexandre Julliard
acea9d12eb
Implemented _seh_longjmp_unwind.
2002-10-16 18:59:38 +00:00
György 'Nog' Jeney
e022026c93
Implement [ format specifier.
2002-10-15 02:20:07 +00:00
Alexandre Julliard
d78b458ed1
Fixed sign extension bug in EH_prolog, and made trylevel an int to
...
avoid similar problems.
2002-10-10 17:56:48 +00:00
Alexandre Julliard
613ead7f0f
Fixed some handle conversions in prevision of void* handles.
2002-10-04 00:27:10 +00:00
Alexandre Julliard
0ac49a9994
except_handler3: Set correct %ebp when calling exception filter.
2002-10-02 18:34:58 +00:00
Jukka Heinonen
9747c15a15
Functions sscanf and swscanf now expect strings to be terminated with
...
null (0) instead of EOF (-1).
2002-09-29 18:00:23 +00:00
Martin Wilck
94638aa276
MSVCRT needs a public errno.h file.
2002-09-17 18:32:53 +00:00
Martin Wilck
27a91c782e
Fix MoveFileEx() flags in MSVCRT rename()/_wrename().
2002-09-16 22:39:50 +00:00
Alexandre Julliard
1668870f38
Fixed warnings caused by new winternl.h.
2002-09-12 22:28:01 +00:00