Andrew Talbot
ac550a88ef
msvcrt/tests: Cast-qual warnings fix.
2006-12-13 11:49:06 +01:00
Andrew Talbot
9317377fb8
msvcrt/tests: Cast-qual warnings fix.
2006-12-12 12:11:12 +01:00
Andrew Talbot
24c4f46da4
msvcrt/tests: Cast-qual warnings fix.
2006-12-12 12:11:07 +01:00
Marcus Meissner
f0280cbd1e
made functions and variables static in some testcases.
2006-12-11 12:18:29 +01:00
Alexandre Julliard
ec7f2f8802
msvcrt: Use LOCALE_USER_DEFAULT to get the proper codepage for the Unix locale.
2006-12-08 12:56:17 +01:00
Francois Gouget
bb8e625b5b
Assorted spelling fixes.
2006-12-05 10:31:47 +01:00
Francois Gouget
1a145bb532
msvcrt/tests: We cannot link with _initterm() with Visual C++, so we have to load it dynamically.
2006-11-24 12:56:35 +01:00
Francois Gouget
b2765fc45a
msvcrt/tests: The tests must not include msvcrt.h because it contains declarations that may be incompatible with the PSDK headers.
2006-11-24 11:49:13 +01:00
Louis Lenders
fa47970e6c
msvcrt: Add _fstat64 and _stat64 to msvcrt.spec.
2006-11-17 12:45:21 +01:00
Sam Dennis
48c006621d
msvcrt: Use the custom vsnprintf implementation for msvcrt.vsprintf too.
2006-11-15 11:25:00 +01:00
Alexandre Julliard
63b62dc50b
msvcrt/tests: Clean up a temp file.
2006-11-14 12:00:38 +01:00
Jesse Allen
a697fe51e0
msvcrt: printf buffer overrun tests.
2006-11-14 11:37:40 +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
Andrew Talbot
55f25b712d
msvcrt: Cast-qual warnings fix.
2006-11-06 15:39:55 +01:00
Louis. Lenders
32ffc7cb8a
msvcrt: Add stub for _setmaxstdio + tiny test.
2006-10-31 11:46:20 +01:00
Duane Clark
b4c1c67ea4
msvcrt: Fix fread on large buffers in ascii mode.
2006-10-27 12:30:24 +02:00
Markus Amsler
9fb58434cb
msvcrt: Speed up new operator.
2006-10-23 14:39:07 +02:00
Louis. Lenders
a5e6c89dcf
msvcrt: Add stub for _getmaxstdio.
2006-10-18 12:35:40 +02:00
Markus Amsler
9ae995f674
msvcrt: Fix fread eof handling.
2006-10-13 11:20:40 +02:00
Markus Amsler
fdd61a7a35
msvcrt: fread: Fill buffer on small reads.
2006-10-13 11:20:35 +02:00
Markus Amsler
ef5ed0a42a
msvcrt: Add fread eof tests.
2006-10-13 11:20:26 +02:00
Michael Stefaniuc
173f7bd26c
janitorial: Remove remaining NULL checks before free() (found by Smatch).
2006-10-10 12:56:24 +02:00
Michael Stefaniuc
223b92fc67
msvcrt/tests: Win64 printf format warning fixes.
2006-10-06 12:33:29 +02:00
Michael Stefaniuc
6520ee04c8
msvcrt: Win64 printf format warning fixes.
2006-10-04 09:58:47 +02:00
Michael Stefaniuc
85ce5117c5
Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int.
2006-09-29 16:08:30 +02:00
Duane Clark
9a71b483d3
msvcrt: fgetc needs to use unsigned parameters.
...
Spotted by and adapted from test written by Tobias Ringström.
2006-09-26 11:41:25 +02:00
Andrew Talbot
c5df5717e9
msvcrt: Cast-qual warnings fix.
2006-09-20 12:23:32 +02:00
Alexandre Julliard
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +02:00
Marcus Meissner
0c15360a3e
Removes all unnecessary WINE_DEFAULT_DEBUG_CHANNEL and respective wine/debug.h includes.
2006-09-11 11:30:48 +02:00
Dan Kegel
39857443e4
programs/wcmd: Rename to programs/cmd.
2006-09-07 15:08:44 +02:00
Alexandre Julliard
5cf75e615a
makefiles: Only run test and documentation targets in directories that need them.
2006-08-28 13:37:44 +02:00
Andrzej Popowski
4e5c51a6ee
msvcrt: Fix scanf format "%i" base detection.
2006-08-23 17:04:53 +02:00
Alexandre Julliard
9edcd1c1b2
msvcrt: Fixed access to the extra arguments of setjmp3.
2006-08-18 20:56:43 +02:00
Tijl Coosemans
7c69033b0a
msvcrt: Rename _execve to MSVCRT__execve.
2006-08-09 23:09:08 +02:00
Duane Clark
4d3952f3dc
msvcrt: In text mode a ctrl-z signals EOF.
...
Spotted by David Hagood with test suggested by Dan Kegel.
2006-08-09 17:33:23 +02:00
Michael Stefaniuc
243a3e4107
msvcrt: Remove redundant NULL checks before MSVCRT_free.
2006-08-09 11:21:07 +02:00
Stefan Leichter
aefdcd13e5
msvcrt: Some more exports requested from msvcr80.dll.
2006-08-07 13:10:10 +02:00
Duane Clark
bc194793a7
msvcrt: Fix fgetwc/s in binary mode.
2006-07-31 21:44:17 +02:00
Duane Clark
d74b6055fe
msvcrt: Test fgetwc/s in binary mode.
2006-07-31 21:43:08 +02:00
Duane Clark
5c4b18a931
msvcrt: Remove read_i loop and fix fread.
2006-07-31 21:43:01 +02:00
Duane Clark
88aeeb9fd8
msvcrt: Fix _getw.
2006-07-31 11:15:21 +02:00
Duane Clark
b44ea8084d
msvcrt: Fix fread.
2006-07-31 11:15:21 +02:00
Duane Clark
b37b967add
msvcrt: Fix _read and fgetc.
2006-07-31 11:15:21 +02:00
Duane Clark
1aa8db05a0
msvcrt: File read buffer tests.
2006-07-31 11:15:21 +02:00
Duane Clark
f8e4d4ccee
msvcrt: Add tests of file operations in ASCII mode.
2006-07-18 11:16:31 +02:00
Alexandre Julliard
eb8a40c368
libs: Merged libwine_unicode into libwine.
...
Most dlls use libwine_unicode at this point, so there's nothing to
gain by having two separate libraries.
2006-07-11 19:33:22 +02:00
Alexandre Julliard
77dc0d9be5
.gitignore: Added wildcards to ignore generated resource files.
2006-07-10 21:39:00 +02:00
Alexandre Julliard
0fa8baafcb
make_dlls: Recursively ignore .ok files in all tests directories.
2006-07-10 21:26:50 +02:00
Alexandre Julliard
edd100b899
make_dlls: Recursively ignore testlist.c in all tests directories.
2006-07-10 21:19:42 +02:00
Alexandre Julliard
5258e061dc
make_dlls: Ignore generated import libraries from the top-level .gitignore.
2006-07-10 20:55:58 +02:00
Alexandre Julliard
cc2b3b48e6
Take advantage of the recursive nature of .gitignore for Makefile entries.
...
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Alexandre Julliard
429cd9e817
msvcrt: Avoid including system headers in msvcrt.h.
2006-07-10 11:54:10 +02:00
Ivan Leo
f2bfc7b12d
msvcrt/tests: Don't leave files on the disk.
2006-06-27 21:14:02 +02:00
Louis. Lenders
6f1ab505ac
msvcrt: Add simple test for _strdup(0).
2006-06-21 13:54:06 +02:00
Louis. Lenders
6d4a811cd5
msvcrt: Fix a crash in _strdup.
2006-06-21 13:53:59 +02:00
Andrew Ziem
2132eb5490
msvcrt: Fix _initterm, with tests.
2006-06-21 13:40:33 +02:00
Jeremy White
a73d568ece
msvcrt: Solaris asctime_r compilation fix.
2006-06-19 22:42:05 +02:00
Alexandre Julliard
db78a84d47
msvcrt: Use unsigned int instead of size_t to avoid printf format warnings.
2006-06-13 14:14:06 +02:00
Alexandre Julliard
24beabfd4e
msvcrt: Explicitly specify CDECL calling convention on exported functions.
2006-06-13 11:40:23 +02:00
Dmitry Timoshkov
a87a153587
msvcrt: Print exception code in hex.
2006-06-12 13:21:47 +02:00
Andrew Talbot
034fc473ec
msvcrt: Write-strings warning fix.
2006-06-07 15:24:18 +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
Vitaliy Margolen
99cfc8bdf8
msvcrt: Fix times tests to pass on windows.
...
Add more tests for daylight-time savings.
2006-05-15 14:25:52 +02:00
qingdoa daoo
4f7adfb04a
msvcrt: Don't duplicate handle in _get_osfhandle.
2006-05-08 17:40:09 +02:00
qingdoa daoo
750102d1a3
msvcrt: If caller passes a NULL deallocator to __unDNameEx, don't use it.
2006-04-13 11:23:13 +02:00
Eric Pouech
819565be21
msvcrt: IO init.
...
Make sure, when copying handles from std ones (when no io info is
inherited from parent) to create inheritable handles (spotted by
qingdao daoo).
2006-04-11 12:38:23 +02:00
qingdoa daoo
508c6e6cf4
msvcrt: Append extension(.exe) for _spawnve argument.
2006-04-06 12:05:54 +02:00
qingdoa daoo
330978ec9b
msvcrt: Fix a TRACE message to avoid buffer overflow.
2006-04-05 10:58:41 +02:00
qingdoa daoo
35a9398ffe
msvcrt: Allow environment strings longer than 512 characters.
2006-04-03 11:39:56 +02:00
Rein Klazes
ef9038c761
msvcrt: Fix read beyond end of string in __unDNameEx().
2006-03-30 21:54:45 +02:00
H. Verbeet
8c29b7dc8b
msvcrt: Fix reading of signed numbers with unsigned read types in scanf.
2006-03-27 11:30:50 +02:00
Alexandre Julliard
19a088202a
msvcrt: Fix fflush() of files opened for read.
...
Some apps, for no particular reason, call fflush() on files opened for
read. This keeps them from tripping over their shoelaces.
2006-03-27 11:30:50 +02:00
Alexandre Julliard
7fe881c7f2
msvcrt: Implementation of wcsftime (based on a patch by Mike McCormack).
2006-03-23 20:35:52 +01:00
Eric Pouech
f7441f9e1a
msvcrt: Some more fixes to name demangling.
2006-03-06 11:37:14 +01:00
Mike McCormack
d16c72dea5
msvcrt: Add a stub for _wsetlocale.
2006-02-28 12:02:13 +01:00
Francois Gouget
e092adfc9b
Add trailing '\n's to ok() calls.
2006-02-24 21:07:33 +01:00
Peter Beutner
82818284c3
msvcrt: Save esp before calling catch block and restore afterwards.
...
It seems like the esp value (which is saved at [ebp-16]) is sometimes
changed inside the catch handler so we end up with a bogus esp
afterwards. To avoid that save it before calling the catch block.
2006-02-22 12:21:00 +01:00
Peter Beutner
be07b6db59
msvcrt: Fix handling of multiple nested exceptions.
...
Save in each nested frame a pointer to the original exception record.
Only one refence in thread_data isn't enough when we have multiple
nested frames.
2006-02-22 12:06:56 +01:00
Peter Beutner
62dc7f52f4
msvcrt: Fix handling of nested exceptions.
...
Move handling of nested exceptions completely in the
catch_function_nested_handler(). If a new exception was thrown inside
a catch block destroy the old exception object, if it is a rethrow
re-propagate the previous object.
2006-02-22 12:04:13 +01:00
Michael Stefaniuc
4758df4687
msvcrt: Misc cleanups in undname.c.
...
- remove unused argument from functions
- print the pointer in the str_array_push TRACE to be able to distinguish
the different arrays.
- comment and white space cleanups
2006-02-20 11:18:51 +01:00
Michael Stefaniuc
067be97852
msvcrt: Add some tests for __unDName().
...
Add some tests for unDName() checking:
- data type modifiers A,B,P,Q,R,S
- literal strings
- back references to names
2006-02-20 11:18:25 +01:00
Michael Stefaniuc
262a5eec78
msvcrt: Use a separate stack for back references to names
...
Use a separate array/stack for the back references to names as
sym->stack is used to push temporary strings to it which breaks back
referencing in some occasions (26 symbols in the mfc42 dll). During
this cleanup get_class() a little bit.
2006-02-20 11:18:04 +01:00
Michael Stefaniuc
e367ebbf19
msvcrt: Move code to parse a literal string out of get_class().
...
unDName: Move the code to parse a literal string from get_class() to a
separate function. Add some error handling to the new function.
2006-02-20 11:17:41 +01:00
Michael Stefaniuc
538d1a1233
msvcrt: Wrap get_class() and get_class_string() for unDName.
2006-02-20 11:16:59 +01:00
Michael Stefaniuc
29fe8d02c7
msvcrt: Fix 20 tests from demangle_test() on old Win versions.
...
In test_demangle use a custom strcmp that treats multiple spaces as
single space. __unDName() from older msvcrt (including W2K it seems)
emit in some places 2 spaces instead of one. Fixes 20 failing tests on
those old Windows versions.
2006-02-20 11:16:27 +01:00
Peter Beutner
72017cc9ab
msvcrt: Correctly set EOF flag in fread().
...
Setting the EOF flag only if _read() returns zero is not enough as we
could also read something AND hit the end of file.
_read() already sets another internal EOF flag, so just use this too.
Removing todo_wine from the test case.
2006-02-17 17:38:03 +01:00
Peter Beutner
b786ea588c
msvcrt: Add test for fread/feof.
...
When calling fread() with a large enough buffer to reach the end of
the file a subsequent feof() should return true; (marked as todo_wine
because it doesn't work atm).
2006-02-17 17:37:40 +01:00
Peter Beutner
916c4b6b8c
msvcrt: Remove bogus code.
...
We can't just pop a exception record from the exception handler list
which we haven't put there.
2006-02-17 17:37:26 +01:00
Peter Beutner
58d3f14514
msvcrt: Fix use of uninitialized variable.
2006-02-17 17:37:14 +01:00
Mike McCormack
968445ca77
msvcrt: Fix a typo.
2006-02-13 13:24:26 +01:00
Dmitry Timoshkov
ea0e7b3397
msvcrt: localtime should accept any positive time value.
2006-02-11 12:15:21 +01:00
Uwe Bonnes
b53ed5866d
msvcrt: In _mktemp sixth generated charater always starts with 'a'.
2006-02-10 15:52:47 +01:00
Michael Stefaniuc
d815b50756
msvcrt: __unDNameEx is not a stub.
2006-02-08 12:42:33 +01:00
Michael Stefaniuc
0df8b0a020
msvcrt: Handle data types B,R,S in C++ symbol demangling.
2006-02-07 12:27:35 +01:00
Eric Pouech
e66e227dbe
Fixes for missing prototypes warnings.
2006-02-06 13:13:28 +01:00
Alexandre Julliard
28486da991
msvcrt: Make error strings static.
2006-01-24 14:00:46 +01:00
Alexandre Julliard
2a192064e8
ntdll: memcpy should behave like memmove in ntdll too.
2006-01-24 12:28:34 +01:00