Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7a6c6747
Commit
7a6c6747
authored
Dec 11, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't include msvcrt headers, instead duplicate the definitions in msvcrt.h.
parent
a537aadd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
13 deletions
+52
-13
except.c
dlls/msvcrt/except.c
+9
-10
locale.c
dlls/msvcrt/locale.c
+0
-1
main.c
dlls/msvcrt/main.c
+0
-1
mbcs.c
dlls/msvcrt/mbcs.c
+0
-1
msvcrt.h
dlls/msvcrt/msvcrt.h
+32
-0
headers.c
dlls/msvcrt/tests/headers.c
+11
-0
No files found.
dlls/msvcrt/except.c
View file @
7a6c6747
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "msvcrt.h"
#include "msvcrt.h"
#include "excpt.h"
#include "excpt.h"
#include "wincon.h"
#include "wincon.h"
#include "msvcrt/float.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
...
@@ -433,13 +432,13 @@ static const struct
...
@@ -433,13 +432,13 @@ static const struct
NTSTATUS
status
;
NTSTATUS
status
;
int
signal
;
int
signal
;
}
float_exception_map
[]
=
{
}
float_exception_map
[]
=
{
{
EXCEPTION_FLT_DENORMAL_OPERAND
,
_FPE_DENORMAL
},
{
EXCEPTION_FLT_DENORMAL_OPERAND
,
MSVCRT_
_FPE_DENORMAL
},
{
EXCEPTION_FLT_DIVIDE_BY_ZERO
,
_FPE_ZERODIVIDE
},
{
EXCEPTION_FLT_DIVIDE_BY_ZERO
,
MSVCRT_
_FPE_ZERODIVIDE
},
{
EXCEPTION_FLT_INEXACT_RESULT
,
_FPE_INEXACT
},
{
EXCEPTION_FLT_INEXACT_RESULT
,
MSVCRT_
_FPE_INEXACT
},
{
EXCEPTION_FLT_INVALID_OPERATION
,
_FPE_INVALID
},
{
EXCEPTION_FLT_INVALID_OPERATION
,
MSVCRT_
_FPE_INVALID
},
{
EXCEPTION_FLT_OVERFLOW
,
_FPE_OVERFLOW
},
{
EXCEPTION_FLT_OVERFLOW
,
MSVCRT_
_FPE_OVERFLOW
},
{
EXCEPTION_FLT_STACK_CHECK
,
_FPE_STACKOVERFLOW
},
{
EXCEPTION_FLT_STACK_CHECK
,
MSVCRT_
_FPE_STACKOVERFLOW
},
{
EXCEPTION_FLT_UNDERFLOW
,
_FPE_UNDERFLOW
},
{
EXCEPTION_FLT_UNDERFLOW
,
MSVCRT_
_FPE_UNDERFLOW
},
};
};
static
LONG
WINAPI
msvcrt_exception_filter
(
struct
_EXCEPTION_POINTERS
*
except
)
static
LONG
WINAPI
msvcrt_exception_filter
(
struct
_EXCEPTION_POINTERS
*
except
)
...
@@ -479,7 +478,7 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
...
@@ -479,7 +478,7 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
if
(
handler
!=
MSVCRT_SIG_IGN
)
if
(
handler
!=
MSVCRT_SIG_IGN
)
{
{
unsigned
int
i
;
unsigned
int
i
;
int
float_signal
=
_FPE_INVALID
;
int
float_signal
=
MSVCRT_
_FPE_INVALID
;
sighandlers
[
MSVCRT_SIGFPE
]
=
MSVCRT_SIG_DFL
;
sighandlers
[
MSVCRT_SIGFPE
]
=
MSVCRT_SIG_DFL
;
for
(
i
=
0
;
i
<
sizeof
(
float_exception_map
)
/
for
(
i
=
0
;
i
<
sizeof
(
float_exception_map
)
/
...
@@ -581,7 +580,7 @@ int CDECL MSVCRT_raise(int sig)
...
@@ -581,7 +580,7 @@ int CDECL MSVCRT_raise(int sig)
{
{
sighandlers
[
sig
]
=
MSVCRT_SIG_DFL
;
sighandlers
[
sig
]
=
MSVCRT_SIG_DFL
;
if
(
sig
==
MSVCRT_SIGFPE
)
if
(
sig
==
MSVCRT_SIGFPE
)
((
float_handler
)
handler
)(
sig
,
_FPE_EXPLICITGEN
);
((
float_handler
)
handler
)(
sig
,
MSVCRT_
_FPE_EXPLICITGEN
);
else
else
handler
(
sig
);
handler
(
sig
);
}
}
...
...
dlls/msvcrt/locale.c
View file @
7a6c6747
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "msvcrt.h"
#include "msvcrt.h"
#include "mtdll.h"
#include "mtdll.h"
#include "msvcrt/mbctype.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/msvcrt/main.c
View file @
7a6c6747
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "msvcrt.h"
#include "msvcrt.h"
#include "msvcrt/mbctype.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/msvcrt/mbcs.c
View file @
7a6c6747
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include "msvcrt.h"
#include "msvcrt.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "msvcrt/mbctype.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
...
...
dlls/msvcrt/msvcrt.h
View file @
7a6c6747
...
@@ -598,6 +598,36 @@ typedef void (*MSVCRT___sighandler_t)(int);
...
@@ -598,6 +598,36 @@ typedef void (*MSVCRT___sighandler_t)(int);
#define MSVCRT_SIG_IGN ((MSVCRT___sighandler_t)1)
#define MSVCRT_SIG_IGN ((MSVCRT___sighandler_t)1)
#define MSVCRT_SIG_ERR ((MSVCRT___sighandler_t)-1)
#define MSVCRT_SIG_ERR ((MSVCRT___sighandler_t)-1)
#define MSVCRT__FPE_INVALID 0x81
#define MSVCRT__FPE_DENORMAL 0x82
#define MSVCRT__FPE_ZERODIVIDE 0x83
#define MSVCRT__FPE_OVERFLOW 0x84
#define MSVCRT__FPE_UNDERFLOW 0x85
#define MSVCRT__FPE_INEXACT 0x86
#define MSVCRT__FPE_UNEMULATED 0x87
#define MSVCRT__FPE_SQRTNEG 0x88
#define MSVCRT__FPE_STACKOVERFLOW 0x8a
#define MSVCRT__FPE_STACKUNDERFLOW 0x8b
#define MSVCRT__FPE_EXPLICITGEN 0x8c
#define _MS 0x01
#define _MP 0x02
#define _M1 0x04
#define _M2 0x08
#define _SBUP 0x10
#define _SBLOW 0x20
#define _MBC_SINGLE 0
#define _MBC_LEAD 1
#define _MBC_TRAIL 2
#define _MBC_ILLEGAL -1
#define _MB_CP_SBCS 0
#define _MB_CP_OEM -2
#define _MB_CP_ANSI -3
#define _MB_CP_LOCALE -4
void
__cdecl
MSVCRT_free
(
void
*
);
void
__cdecl
MSVCRT_free
(
void
*
);
void
*
__cdecl
MSVCRT_malloc
(
MSVCRT_size_t
);
void
*
__cdecl
MSVCRT_malloc
(
MSVCRT_size_t
);
void
*
__cdecl
MSVCRT_calloc
(
MSVCRT_size_t
,
MSVCRT_size_t
);
void
*
__cdecl
MSVCRT_calloc
(
MSVCRT_size_t
,
MSVCRT_size_t
);
...
@@ -637,6 +667,7 @@ int __cdecl MSVCRT_raise(int sig);
...
@@ -637,6 +667,7 @@ int __cdecl MSVCRT_raise(int sig);
#ifndef __WINE_MSVCRT_TEST
#ifndef __WINE_MSVCRT_TEST
int
__cdecl
MSVCRT__write
(
int
,
const
void
*
,
unsigned
int
);
int
__cdecl
MSVCRT__write
(
int
,
const
void
*
,
unsigned
int
);
int
__cdecl
_getch
(
void
);
int
__cdecl
_getch
(
void
);
int
__cdecl
_ismbblead
(
unsigned
int
);
int
__cdecl
_ismbstrail
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
);
int
__cdecl
_ismbstrail
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
);
MSVCRT_intptr_t
__cdecl
_spawnve
(
int
,
const
char
*
,
const
char
*
const
*
,
const
char
*
const
*
);
MSVCRT_intptr_t
__cdecl
_spawnve
(
int
,
const
char
*
,
const
char
*
const
*
,
const
char
*
const
*
);
MSVCRT_intptr_t
__cdecl
_spawnvpe
(
int
,
const
char
*
,
const
char
*
const
*
,
const
char
*
const
*
);
MSVCRT_intptr_t
__cdecl
_spawnvpe
(
int
,
const
char
*
,
const
char
*
const
*
,
const
char
*
const
*
);
...
@@ -657,6 +688,7 @@ MSVCRT_wchar_t* __cdecl _wcsdup(const MSVCRT_wchar_t*);
...
@@ -657,6 +688,7 @@ MSVCRT_wchar_t* __cdecl _wcsdup(const MSVCRT_wchar_t*);
MSVCRT_wchar_t
***
__cdecl
__p__wenviron
(
void
);
MSVCRT_wchar_t
***
__cdecl
__p__wenviron
(
void
);
char
*
__cdecl
_strdate
(
char
*
date
);
char
*
__cdecl
_strdate
(
char
*
date
);
char
*
__cdecl
_strtime
(
char
*
date
);
char
*
__cdecl
_strtime
(
char
*
date
);
int
__cdecl
_setmbcp
(
int
);
void
__cdecl
_ftime
(
struct
MSVCRT__timeb
*
buf
);
void
__cdecl
_ftime
(
struct
MSVCRT__timeb
*
buf
);
int
__cdecl
MSVCRT__close
(
int
);
int
__cdecl
MSVCRT__close
(
int
);
int
__cdecl
MSVCRT__dup
(
int
);
int
__cdecl
MSVCRT__dup
(
int
);
...
...
dlls/msvcrt/tests/headers.c
View file @
7a6c6747
...
@@ -462,6 +462,17 @@ static void test_defines(void)
...
@@ -462,6 +462,17 @@ static void test_defines(void)
CHECK_DEF
(
SIGBREAK
);
CHECK_DEF
(
SIGBREAK
);
CHECK_DEF
(
SIGABRT
);
CHECK_DEF
(
SIGABRT
);
CHECK_DEF
(
NSIG
);
CHECK_DEF
(
NSIG
);
CHECK_DEF
(
_FPE_INVALID
);
CHECK_DEF
(
_FPE_DENORMAL
);
CHECK_DEF
(
_FPE_ZERODIVIDE
);
CHECK_DEF
(
_FPE_OVERFLOW
);
CHECK_DEF
(
_FPE_UNDERFLOW
);
CHECK_DEF
(
_FPE_INEXACT
);
CHECK_DEF
(
_FPE_UNEMULATED
);
CHECK_DEF
(
_FPE_SQRTNEG
);
CHECK_DEF
(
_FPE_STACKOVERFLOW
);
CHECK_DEF
(
_FPE_STACKUNDERFLOW
);
CHECK_DEF
(
_FPE_EXPLICITGEN
);
#ifdef __i386__
#ifdef __i386__
CHECK_DEF
(
_EM_INVALID
);
CHECK_DEF
(
_EM_INVALID
);
CHECK_DEF
(
_EM_DENORMAL
);
CHECK_DEF
(
_EM_DENORMAL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment