Danny Smith
608d5d8f36
* include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
...
* include/wchar.h (swprintf, vswprintf): Likewise.
2008-07-04 03:55:50 +00:00
Danny Smith
e161debaba
Committed as obvious.
...
[mingw-Bugs-1801641]
* include/wchar.h (_wfdopen): Const-ify second arg.
* include/stdio.h (_wfdopen): Likewise.
Thanks to <tdragon at users dot sourceforge net>
2008-06-14 09:13:38 +00:00
Chris Sutcliffe
1d198686da
2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/process.h: Include stdint.h for intptr_t definition.
(_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
_spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
_spawnvpe): Return intptr_t.
(execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
intptr_t.
[!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
(_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
_wspawnvp, _wspawnvpe): Return intptr_t.
2008-04-26 00:24:19 +00:00
Chris Sutcliffe
6382a9e785
2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/wchar.h (fwide): Return success code rather than failure in inline
definition.
* mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
code rather than failure.
2008-04-26 00:16:37 +00:00
Chris Sutcliffe
cc4d68ec01
2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
...
* inclue/wchar.h (fwide): Add prototype and guard inline definition.
(mbsinit): Likewise.
2008-03-21 12:45:27 +00:00
Chris Sutcliffe
08a0c88da5
2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
...
* include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
from '_fsize_t' to '__int64' to be consistent with the other ...64
structures and the value set there is 8 bytes not 4. Add guard for both
as the are only used by functions available from 6.1 on.
* include/malloc.h (_HEAP_MAXREQ): Define.
(_aligned_offset_recalloc): Define.
(_aligned_recalloc()): Define.
* include/math.h: fixed a typo in a comment.
(atanhf): Fixed declaration.
* include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
to '__int64' to be consistent with the other ...64 structures and the value
set there is 8 bytes not 4. Added guard as this function is only used by
functions available from 6.1 on.
* include/sys/stat.h: some members of 'stat' were declared with types with
a prefixed underscore, while the ones without the underscore should have
been used. Added guard to '__stat64' as it is only used by functions
available from 6.1 on. Added the wide character versions of the
exec()/spawn() family for completion
(_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
'_mode_t'
* include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
from 'long' to 'time_t'
(__timeb64): moved declaration of structure directly before the declaration
of the function '_ftime64()', so it is guarded as well
* include/sys/utime.h (__utimbuf64): moved declaration of structure directly
before the declaration of the functions using it, so it is guarded as well
2007-10-03 18:55:56 +00:00
Danny Smith
f2a9580699
* incude/wchar.h (_wsystem) Declare.
...
(_wputenv) Declare.
(_wgetenv): Declare.
(_wsearchenv): Declare.
(_wmakepath): Declare.
(_wsplitpath): Declare.
(_wfullpath): Declare.
* incude/stdlib.h (_wsystem) Declare.
(_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath, _wfullpath):
Move into _WSTDLIB_DEFINED guard.
* include/tchar.h (_tsystem): New UNICODE mapping define.
2007-07-12 09:38:17 +00:00
Danny Smith
25b4cace74
*include/assert.h: Qualify all functions with __MINGW_NOTHROW.
...
*include/conio.h: Likewise.
*include/ctype.h: Likewise.
*include/direct.h: Likewise.
*include/dos.h: Likewise.
*include/errno.h: Likewise.
*include/fenv.h: Likewise.
*include/float.h: Likewise.
*include/inttypes.h: Likewise.
*include/io.h: Likewise.
*include/libgen.h: Likewise.
*include/locale.h: Likewise.
*include/malloc.h: Likewise.
*include/mbctype.h: Likewise.
*include/mbstring.h: Likewise.
*include/process.h: Likewise.
*include/search.h: Likewise.
*include/setjmp.h: Likewise.
*include/signal.h: Likewise.
*include/stdio.h: Likewise.
*include/stdlib.h: Likewise.
*include/string.h: Likewise.
*include/time.h: Likewise.
*include/wchar.h: Likewise.
*include/sys/stat.h: Likewise.
*include/sys/time.h: Likewise.
*include/sys/timeb.h: Likewise.
*include/sys/utime.h: Likewise.
2007-06-23 07:34:16 +00:00
Danny Smith
e635b30956
Import David Gay's gdtoa library.
...
* mingwex/gdtoa: New directory.
* mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
ulp.c): New files.
* mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
* mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
* mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
* mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
* mingwex/wcstold.c: Avoid using strtold internals.
* mingwex/wcstof.c: Rewrite.
* mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
(GDTOA_OBJS): Add to library.
(DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
(STDLIB_OBJS): Remove.
(STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
(Q8_OBJS): Add wcstof.o wcstold.o.
* include/stdlib.h (strtof): Remove inline definition.
(wcstof): Likewise.
* include/wchar.h (wcstof): Remove inline definition.
2006-08-31 23:48:56 +00:00
Danny Smith
f3b0036304
* include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
...
#if (WCHAR_MAX <= WCHAR_MIN) is false.
* include/stdint.h (WCHAR_MAX): Likwise.
(WINT_MAX): Likewise.
2005-05-04 09:29:09 +00:00
Danny Smith
6fbeb6a3f0
* mingwex/mbrtowc.c: New file.
...
* mingwex/wcrtomb.c: New file.
* mingwex/btowc.c: New file.
* mingwex/wctob.c: New file.
* mingwex/mb_wc_common.h: New file.
* mingwex/Makefile.in (DISTFILES): Add new files.
(Q8_OBJS): Add new objects.
* include/wchar.h: Adjust comment about mbrtowc() and related
funcions. Add __restrict__ to pointer params in prototypes.
(wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
arg names from protototypes.
2005-04-24 11:30:27 +00:00
Danny Smith
e693472b16
2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
* include/wchar.h (struct stat): Likwwise.
Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
* include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2005-02-07 20:18:08 +00:00
Danny Smith
4c9f0d3547
* include/sys/stat.h (struct __stat64): Change st_size type to
...
__int64.
* include/wchar.h (struct __stat64): Change st_size type to __int64.
2005-01-17 05:03:17 +00:00
Danny Smith
7ffd6c6f17
* include/wchar.h (wcsdup): Correct prototype.
...
* include/string.h (wcsdup): Correct prototype.
2004-12-20 00:03:06 +00:00
Danny Smith
889a573ad8
* include/wchar.h: Reorganize, avoid including other headers.
2004-08-07 07:51:14 +00:00
Earnie Boyd
4d6c899474
* CONTRIBUTORS: New file.
...
* DISCLAIMER: Ditto.
* CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
section CONTRIBUTORS file. Remove RCS tags.
* CRTFmode.c: Ditto.
* CRTglob.c: Ditto.
* CRTinit.c: Ditto.
* crt1.c: Ditto.
* crtdll.dev: Ditto.
* dllcrt1.c: Ditto.
* dllmain.c: Ditto.
* gccmain.c: Ditto.
* init.c: Ditto.
* isascii.c: Ditto.
* iscsym.c: Ditto.
* iscsymf.c: Ditto.
* jamfile: Ditto.
* main.c: Ditto.
* msvcrt.def.in: Ditto.
* strcasecmp.c: Ditto.
* toascii.c: Ditto.
* wcscmpi.c: Ditto.
* include/assert.h: Ditto.
* include/conio.h: Ditto.
* include/ctype.h: Ditto.
* include/direct.h: Ditto.
* include/dirent.h: Ditto.
* include/dos.h: Ditto.
* include/errno.h: Ditto.
* include/excpt.h: Ditto.
* include/fcntl.h: Ditto.
* include/float.h: Ditto.
* include/io.h: Ditto.
* include/locale.h: Ditto.
* include/malloc.h: Ditto.
* include/math.h: Ditto.
* include/process.h: Ditto.
* include/setjmp.h: Ditto.
* include/share.h: Ditto.
* include/signal.h: Ditto.
* include/stdio.h: Ditto.
* include/stdlib.h: Ditto.
* include/string.h: Ditto.
* include/tchar.h: Ditto.
* include/time.h: Ditto.
* include/wchar.h: Ditto.
* include/sys/locking.h: Ditto.
* include/sys/param.h: Ditto.
* include/sys/stat.h: Ditto.
* include/sys/timeb.h: Ditto.
* include/sys/types.h: Ditto.
* include/sys/utime.h: Ditto.
* mingwex/dirent.c: Ditto.
2004-04-20 22:49:32 +00:00
Danny Smith
ff9f5c8330
Add prototypes for new msvcrt.dll versions
...
* include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
* include/time.h (__time64_t): Add typedef.
(_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
(_ctime64): Likewise.
(_wctime64): Likewise.
(_gmtime64): Likewise.
(_localtime64): Likewise.
(wcsftime): Move into _WTIME_DEFINED block.
Regroup non-ANSI prototypes.
* include/io.h: Include <stdint.h>.
(__finddata64_t): Add struct definition.
(__wfinddata64_t): Likewise.
(_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
(_findnext64): Likewise.
(_wfindfirst64): Likewise.
(_wfindnext64): Likewise.
* include/sys/timeb.h (__timeb64): Add struct definition.
(_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
* include/sys/utime.h (__utimbuf64): Add struct definition.
(_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
(_futime64): Likewise.
(_wutime64): Likewise.
* include/sys/stat.h (__stat64): Add struct definition.
(_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
(_stat64): Likewise.
(_wstat64): Likwise.
* include/sys/types.h (__time64_t): Add typedef.
* include/wchar.h (__wfinddata64_t): Add structure definition.
(__stat64): Likewise.
(_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
(_wfindfirst64): Likewise.
(_wfindnext64): Likewise.
(_wutime64): Likewise.
(_wstat64): Likwise.
* include/malloc.h (_aligned_free): Add prototype for
__MSVCRT_VERSION__ >= 0x0700.
(_aligned_malloc): Likewise.
(_aligned_offset_malloc): Likewise.
(_aligned_offset_realloc): Likewise.
(_aligned_realloc): Likewise.
* include/string.h (_wcserror): Add prototype for
__MSVCRT_VERSION__ >= 0x0700.
(__wcserror): Likewise.
* include/math.h (_set_SSE2_enable): Add prototype for
__MSVCRT_VERSION__ >= 0x0701.
2004-03-26 11:30:24 +00:00
Danny Smith
53a207edfa
* include/_mingw.h (__UNUSED_PARAM): Define macro.
...
* include/wchar.h (fwide): Use it.
(mbsinit): Ditto.
2004-02-21 07:21:36 +00:00
Danny Smith
8852e9c5f1
* include/_mingw.h (__CRT_INLINE): Define.
...
* include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
throughout
* include/inttypes.h: Likewise.
* include/math.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
2003-09-24 00:41:01 +00:00
Danny Smith
4aa3feb899
2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/stdio.h (vscanf): Add prototype.
(vfscanf): Ditto.
(vsscanf): Ditto.
(vwscanf): Ditto.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* include/wchar.h (vwscanf): Add prototype.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* mingwex/snprintf.c: Move to mingwex/stdio.
* mingwex/vsnprintf.c: Ditto.
* mingwex/snwprintf.c: Ditto.
* mingwex/vsnwprintf.c: Ditto.
* mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
(STDIO_DISTFILES): Add.
(DISTFILES): Adjust.
(STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
(LIB_OBJS): Adjust.
(dist): Adjust.
2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
* mingwex/stdio: New directory
* mingwex/stdio/vfscanf.c: New file.
* mingwex/stdio/vfwscanf.c: New file.
* mingwex/stdio/vscanf.c: New file.
* mingwex/stdio/vsscanf.c: New file.
* mingwex/stdio/vswscanf.c: New file.
* mingwex/stdio/vwscanf.c: New file.
2003-03-02 07:00:48 +00:00
Danny Smith
14e54d7c97
* include/_mingw.h (_CRTIMP): Define for __GNUC__ if
...
__declspec(dllimport) supported.
(__cdecl): Define if not already defined.
(__stdcall): Likewise.
* include/dirent.h: Qualify fuctions with __cdecl.
* include/fenv.h: Likewise.
* include/inttypes.h: Likewise.
* include/assert.h: Qualify fuctions with __cdecl. Qualify
CRT dll imports with _CRTIMP.
* include/conio.h: Likewise.
* include/ctype.h: Likewise.
* include/direct.h: Likewise.
* include/dos.h: Likewise.
* include/errno.h: Likewise.
* include/float.h: Likewise.
* include/io.h: Likewise.
* include/locale.h: Likewise.
* include/malloc.h: Likewise.
* include/math.h: Likewise.
* include/mbctype.h: Likewise.
* include/mbstring.h: Likewise.
* include/process.h: Likewise.
* include/setjmp.h: Likewise.
* include/signal.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/time.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
* include/sys/stat.h: Likewise.
* include/sys/timeb.h: Likewise.
* include/sys/utime.h: Likewise.
* include/ctype.h: Guard ctype inlines with __NO_INLINE__.
* include/wctype.h: Guard wctype inlines with __NO_INLINE__.
* include/stdio.h (__VALIST): Guard against prior definition.
2003-02-10 21:13:34 +00:00
Danny Smith
5362be5926
Add strtold and wcstold to libmingwex.a
...
* mingwex/strtold.c: New file.
* mingwex/wcstold.c: New file.
* mingwex/ldtoa.c: New file.
* mingwex/math/cephes_emath.h: New file.
* mingwex/math/cephes_emath.c: New file.
* mingwex/Makefile.in (DISTFILES): Add new files.
(MATH_DISTFILES): Ditto.
(STDLIB_OBJS): New. Define as strtold.c wcstold.c.
(MATH_OBJS): Add cephes_emath.o.
(LIB_OBJS): Add $(STDLIB_OBJS).
* include/stdlib.h (strtold, wcstold): Add prototypes.
* include/wchar.h (wcstold): Add prototype.
Add missing ChangeLog entry for 2002-11-09.
2002-11-26 00:11:06 +00:00
Danny Smith
9fe2a2157b
2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
defining.
* include/excpt.h (): Include windef.h not windows.h.
* include/fcntl.h (_O_SHORT_LIVED): Add define.
(_chmod): Add prototype.
(_creat): Correct prototype.
(SH_DENY*): Rename defines to _SH_DENY*.
(SH_DENY*): Add Non-ANSI names for _SH_DENY*.
include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
_IOAPPEND): Add defines.
(_wfindfirst): Correct prototype.
(_wfdopen): Add prototype.
* include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
prototypes.
* include/string.h (_mbschr, _mbstok, _mbsncat): Remove
prototypes.
(_wcsdup): Correct prototype.
* include/mbstring.h: Remove comments about _mbschr, _mbstok,
_mbsncat being in string.h.
* include/wchar.h (_wfindfirst): Correct prototype.
* include/tchar.h (_tfdopen): Add _UNICODE mappings.
2002-06-18 04:13:18 +00:00
Danny Smith
dc8971488e
* include/_mingw.h: Increment version to 2.0.
...
* Makefile.in: Ditto.
Merge in mingwex branch.
2002-06-13 10:20:48 +00:00
Danny Smith
06bdee1cf6
* include/stdio.h (_snwprintf): Correct spelling.
...
(_vsnwprintf): Likewise.
* include/wchar.h (_snwprintf): Correct spelling.
(_vsnwprintf): Likewise.
2002-03-30 01:38:27 +00:00
Danny Smith
eba631d6a9
* moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL).
...
(wpopen): Add if !(__CRTDLL).
* Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
preserve comments.
(moldname-crtdll.def rule): Likewise.
* moldname-msvcrt.def: Regenerate.
* moldname-crtdll.def: Regenerate.
* include/stdio.h (wpopen):Use prototype, not a define.
(_swnprintf): Add prototype.
(_vswnprintf): Likewise.
Tidy up whitespace.
* include/wchar.h (_swnprintf): Add prototype.
(_vswnprintf): Likewise.
Tidy up whitespace.
2002-03-26 22:23:25 +00:00
Earnie Boyd
98a05abd05
Merge MinGW CVS differences
2001-12-05 15:01:06 +00:00
Earnie Boyd
37fb7a2ccb
* include/stdio.h (swscanf): Make first arugument const.
...
* include/wchar.h (swscanf): Ditto.
* include/tchar.h (_tfopen): New _UNICODE define.
(_tgetenv): Ditto.
(_tsetlocale): Ditto.
2001-06-11 18:13:15 +00:00
Earnie Boyd
39d871d66d
* include/wchar.h: The 2001.01.18 Change was incorrect. The functions
...
are actually C functions. These functions are resolved via the
-lmsvcp60 library and comments were placed in the header.
2001-01-28 18:06:17 +00:00
Earnie Boyd
74a3cd0a4f
* include/wchar.h: Protect prototypes only declared in the C++ STL
...
from being declared unless __cplusplus is defined.
2001-01-18 15:40:50 +00:00
Earnie Boyd
6126c12345
* include/direct.h: add guard around MSVCRT-only prototytpes
...
* include/io.h: add __int64 struct definitions and function prototypes;
add guard for MSVCRT-only prototypes
* include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
* include/stdio.h: add wchar function prototypes (__MSVCRT__);
put wchar functions together to make sync with wchar.h easier
* include/stdlib.h: add wide char functions (__MSVCRT__)
* include/string.h: add string collation functions ( __MSVCRT__)
* include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
* include/tchar.h: add macros and macro function definitions
* include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
enclose more functions in __MSVCRT__ guard;
some oldname wide char function prototypes #if (0)'d
* profile/gmon.h: add guard around BSD-ish typedefs
2000-11-21 02:50:03 +00:00
Christopher Faylor
1fd5e000ac
import winsup-2000-02-17 snapshot
2000-02-17 19:38:33 +00:00