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
9a364c1a
Commit
9a364c1a
authored
Apr 05, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't export _matherr().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
35d202fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
19 deletions
+22
-19
math.c
dlls/msvcrt/math.c
+11
-17
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+0
-1
msvcrt20.c
dlls/msvcrt20/msvcrt20.c
+10
-0
msvcrt20.spec
dlls/msvcrt20/msvcrt20.spec
+1
-1
No files found.
dlls/msvcrt/math.c
View file @
9a364c1a
...
...
@@ -62,24 +62,26 @@ void msvcrt_init_math(void)
}
/*********************************************************************
* _matherr (
MSVCRT
.@)
* _matherr (
CRTDLL
.@)
*/
int
CDECL
MSVCRT__matherr
(
struct
MSVCRT__exception
*
e
)
{
int
ret
;
return
0
;
}
if
(
e
)
TRACE
(
"(%p = {%d,
\"
%s
\"
, %g, %g, %g})
\n
"
,
e
,
e
->
type
,
e
->
name
,
e
->
arg1
,
e
->
arg2
,
e
->
retval
);
else
TRACE
(
"(null)
\n
"
);
static
void
math_error
(
int
type
,
const
char
*
name
,
double
arg1
,
double
arg2
,
double
retval
)
{
TRACE
(
"(%d, %s, %g, %g, %g)
\n
"
,
type
,
debugstr_a
(
name
),
arg1
,
arg2
,
retval
);
if
(
MSVCRT_default_matherr_func
)
{
ret
=
MSVCRT_default_matherr_func
(
e
);
if
(
ret
)
return
ret
;
struct
MSVCRT__exception
exception
=
{
type
,
(
char
*
)
name
,
arg1
,
arg2
,
retval
};
if
(
MSVCRT_default_matherr_func
(
&
exception
))
return
;
}
switch
(
e
->
type
)
switch
(
type
)
{
case
_DOMAIN
:
*
MSVCRT__errno
()
=
MSVCRT_EDOM
;
...
...
@@ -94,8 +96,6 @@ int CDECL MSVCRT__matherr(struct MSVCRT__exception *e)
default:
ERR
(
"Unhandled math error!
\n
"
);
}
return
0
;
}
/*********************************************************************
...
...
@@ -107,12 +107,6 @@ void CDECL MSVCRT___setusermatherr(MSVCRT_matherr_func func)
TRACE
(
"new matherr handler %p
\n
"
,
func
);
}
static
inline
void
math_error
(
int
type
,
const
char
*
name
,
double
arg1
,
double
arg2
,
double
retval
)
{
struct
MSVCRT__exception
exception
=
{
type
,
(
char
*
)
name
,
arg1
,
arg2
,
retval
};
MSVCRT__matherr
(
&
exception
);
}
/*********************************************************************
* _set_SSE2_enable (MSVCRT.@)
*/
...
...
dlls/msvcrt/msvcrt.spec
View file @
9a364c1a
...
...
@@ -683,7 +683,6 @@
@ cdecl _makepath(ptr str str str str) MSVCRT__makepath
@ cdecl _makepath_s(ptr long str str str str) MSVCRT__makepath_s
# stub _malloc_dbg(long long str long)
@ cdecl _matherr(ptr) MSVCRT__matherr
@ cdecl _mbbtombc(long)
# stub _mbbtombc_l(long ptr)
@ cdecl _mbbtype(long long)
...
...
dlls/msvcrt20/msvcrt20.c
View file @
9a364c1a
...
...
@@ -19,6 +19,7 @@
*/
#include <stdarg.h>
#include <math.h>
#include "windef.h"
...
...
@@ -48,3 +49,12 @@ void CDECL MSVCRT20__wgetmainargs( int *argc, WCHAR** *wargv, WCHAR** *wenvp,
{
__wgetmainargs
(
argc
,
wargv
,
wenvp
,
expand_wildcards
,
&
new_mode
);
}
/*********************************************************************
* _matherr (MSVCRT20.@)
*/
int
CDECL
MSVCRT20__matherr
(
struct
_exception
*
e
)
{
return
0
;
}
dlls/msvcrt20/msvcrt20.spec
View file @
9a364c1a
...
...
@@ -1012,7 +1012,7 @@
@ cdecl _ltoa(long ptr long) msvcrt._ltoa
@ cdecl _ltow(long ptr long) msvcrt._ltow
@ cdecl _makepath(ptr str str str str) msvcrt._makepath
@ cdecl _matherr(ptr)
msvcrt.
_matherr
@ cdecl _matherr(ptr)
MSVCRT20_
_matherr
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbccpy(ptr ptr) msvcrt._mbccpy
...
...
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