Commit graph

72 commits

Author SHA1 Message Date
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
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
Dimitrie O. Paun
adb4cb3890 Fix the _WCTYPE_T_DEFINED sentry for compatibility. 2004-04-26 23:31:39 +00:00
Dimitrie O. Paun
a5686fe589 Added definition for HUGE_VAL. 2004-04-09 19:02:45 +00:00
Felix Nawothnig
5e80d6f5f0 Define all macros described on MSDN. 2004-04-02 23:28:31 +00:00
Felix Nawothnig
518acec60c Define (L)DBL_* and FLT_*. 2004-03-25 23:36:14 +00:00
Felix Nawothnig
4b2edce840 Define stat in msvcrt/wchar.h. 2004-03-25 00:10:06 +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
285ad721f4 The beginnings of math.h and float.h. 2004-03-12 19:47:20 +00:00
Alexandre Julliard
c042e13ef6 Fixed varargs handling in the scanf functions (spotted by Eric
Pouech).
2004-02-19 01:13:12 +00:00
Alexandre Julliard
0b19a6f7bc Better support for div and ldiv in Winelib apps. 2003-11-28 23:17:28 +00:00
Pierre d'Herbemont
d3ab533eb3 Fixed _wfullpath prototype. 2003-10-28 21:13:13 +00:00
Pavel Roskin
9661d05b4e MSVCRT_tmpnam(): complete rewrite. Use the same names as the native
version.  Use the caller-supplied buffer if possible.
2003-10-24 00:23:51 +00:00
Vincent Béron
dc7c2e464e Added msvcrt headers limits.h and math.h. 2003-09-02 00:58:21 +00:00
Dimitrie O. Paun
53f9c21fb7 Use angle brackets (<>) rather than quotes ("") for the include
directives in our .h files. This should avoid some potentially nasty
surprises for Winelib apps.
2003-08-28 21:43:34 +00:00
Dimitrie O. Paun
2703584b15 Alias _vsnprintf as vsnprintf. 2003-08-13 22:01:12 +00:00
Dimitrie O. Paun
2892dbdf5f Add definitions for the S_IS* macros. 2003-08-13 19:35:35 +00:00
Jon Griffiths
5f17550896 Don't redefine __WINE_USE_MSVCRT (msvc warning).
Don't return a void value in swab().
'long long' is not recognised by msvc, use __int64.
2003-07-18 22:57:15 +00:00
Antonio Larrosa Jiménez
8abbc40e51 Added CLOCKS_PER_SEC. 2003-06-04 20:24:16 +00:00
Vincent Béron
5d730664da Terminate the lfind inline function. 2003-04-19 02:48:10 +00:00
Alexandre Julliard
1b41cdf3d1 Fixed alloca handling the way mingw does it (reported by Vincent
Béron).
2003-04-17 02:40:21 +00:00
Dimitrie O. Paun
45247de05b Fix errno linkage when compiling in C++. 2003-03-28 19:31:12 +00:00
Alexandre Julliard
98f020234c Use aliases instead of #defines for the varargs functions when using
gcc.
2003-03-26 01:29:56 +00:00
Madhura Sahasrabudhe
992d1b998a Changed the macros in the msvcrt headers to static inline functions. 2003-03-22 21:15:41 +00:00
Dimitrie O. Paun
76883a8cb6 Define the u_{char,short,int,long} in msvcrt/sys/types.h for Unix
compatibility (needed by winsock.h as well).
2003-03-17 21:22:34 +00:00
Alexandre Julliard
d1e46c5d5b Define __stdcall in msvcrt/process.h if windef.h hasn't been included. 2003-01-15 03:31:49 +00:00
Dimitrie O. Paun
695c2bbde6 Define the (old name) struct stat, it is used by programs using the
old names.
2003-01-13 18:31:53 +00:00
Dimitrie O. Paun
df9537eaef Use inline functions instead of macros to avoid problems in C++.
Inline functions respect scope, whereas macros don't.
Define umask in sys/stat.h, and mode_t in sys/types.h.
2003-01-11 22:49:54 +00:00
Dimitrie O. Paun
3fd4087dde Define qsort and bsearch in stdlib.h. 2003-01-11 20:54:19 +00:00
Dimitrie O. Paun
4d28cc880d Add dirent.h header for Unix/mingw compatibility. 2003-01-11 20:54:06 +00:00
Dimitrie O. Paun
651f32fb50 Add unistd.h files for mingw/Unix compatibility. 2003-01-10 01:47:48 +00:00
Alexandre Julliard
b4a4c05aed Removed a few more #ifdef __WINE__. 2003-01-04 00:19:17 +00:00
Dimitrie O. Paun
36d0e5b73a Define NULL if it's not defined already. 2003-01-03 03:07:06 +00:00
Dimitrie O. Paun
fcb40e8f63 Map strcasecmp to _stricmp. 2002-12-18 20:49:44 +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
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
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
Francois Gouget
6ae2a1f16f Added EDEADLOCK. 2002-12-05 18:59:53 +00:00
Dimitrie O. Paun
2b47a2b8b4 Add a way to tell msvcrt to define wchar_t. 2002-11-30 19:14:23 +00:00
Francois Gouget
79027d16e7 Added constants for _set_error_mode(). 2002-11-30 01:52:30 +00:00
Patrick J. McNerthney
93703772e6 Added casts to all macros to avoid compiler warnings. 2002-09-24 03:04:45 +00:00
Martin Wilck
94638aa276 MSVCRT needs a public errno.h file. 2002-09-17 18:32:53 +00:00
Daniel Gudbjartsson
42c74d6454 Combined the implementation of all the scanf's in a single place.
Added implementations of fwscanf, swscanf, wscanf and sscanf.
Corrected the declaration of swscanf.
Added implementation of the l, h, L and w prefixes.
Added implementation of the c, C, s, S and n types.
2002-08-17 01:22:00 +00:00
Rafael Kitover
ac81d02a58 Portability fixes for Cygwin. 2002-07-31 20:04:20 +00:00
Alexandre Julliard
44b4235af2 Fixed per-thread data handling.
Made terminate and unexpected function pointer per-thread.
Added set_se_translator.
2002-07-19 03:24:50 +00:00
Vincent Béron
9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard
9560e58ac5 FreeBSD compile fix. 2002-04-27 21:14:50 +00:00
Bill Medland
716ffc5bef Connect the msvcrt file byte locking up to ntdll. 2002-03-20 22:50:38 +00:00
Waldek Hebisch
75315fa6d8 Implemented stdio buffering and ungetc. Misc stdio fixes. 2002-03-11 05:03:05 +00:00
Alexandre Julliard
0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00