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
70c06601
Commit
70c06601
authored
Nov 26, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Remove MSVCRT_lconv type.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1f5930af
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
36 deletions
+18
-36
locale.c
dlls/msvcrt/locale.c
+4
-4
math.c
dlls/msvcrt/math.c
+1
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-32
string.c
dlls/msvcrt/string.c
+1
-0
wcs.c
dlls/msvcrt/wcs.c
+1
-0
locale.h
include/msvcrt/locale.h
+10
-0
No files found.
dlls/msvcrt/locale.c
View file @
70c06601
...
...
@@ -199,7 +199,7 @@ static char cloc_dec_point[] = ".";
static
MSVCRT_wchar_t
emptyW
[]
=
{
0
};
static
MSVCRT_wchar_t
cloc_dec_pointW
[]
=
{
'.'
,
0
};
#endif
static
struct
MSVCRT_
lconv
cloc_lconv
=
static
struct
lconv
cloc_lconv
=
{
cloc_dec_point
,
empty
,
empty
,
empty
,
empty
,
empty
,
empty
,
empty
,
empty
,
empty
,
CHAR_MAX
,
CHAR_MAX
,
CHAR_MAX
,
CHAR_MAX
,
CHAR_MAX
,
CHAR_MAX
,
CHAR_MAX
,
CHAR_MAX
,
...
...
@@ -1006,7 +1006,7 @@ BOOL CDECL __crtGetStringTypeW(DWORD unk, DWORD type,
/*********************************************************************
* localeconv (MSVCRT.@)
*/
struct
MSVCRT_lconv
*
CDECL
MSVCRT_localeconv
(
void
)
struct
lconv
*
CDECL
MSVCRT_localeconv
(
void
)
{
return
get_locinfo
()
->
lconv
;
}
...
...
@@ -1511,7 +1511,7 @@ static MSVCRT_pthreadlocinfo create_locinfo(int category,
if
(
locinfo
->
lconv_intl_refcount
)
InterlockedIncrement
(
locinfo
->
lconv_intl_refcount
);
}
else
if
(
lcid
[
MSVCRT_LC_MONETARY
]
||
lcid
[
MSVCRT_LC_NUMERIC
])
{
locinfo
->
lconv
=
MSVCRT_malloc
(
sizeof
(
struct
MSVCRT_
lconv
));
locinfo
->
lconv
=
MSVCRT_malloc
(
sizeof
(
struct
lconv
));
locinfo
->
lconv_intl_refcount
=
MSVCRT_malloc
(
sizeof
(
int
));
if
(
!
locinfo
->
lconv
||
!
locinfo
->
lconv_intl_refcount
)
{
MSVCRT_free
(
locinfo
->
lconv
);
...
...
@@ -1521,7 +1521,7 @@ static MSVCRT_pthreadlocinfo create_locinfo(int category,
free_locinfo
(
locinfo
);
return
NULL
;
}
memset
(
locinfo
->
lconv
,
0
,
sizeof
(
struct
MSVCRT_
lconv
));
memset
(
locinfo
->
lconv
,
0
,
sizeof
(
struct
lconv
));
*
locinfo
->
lconv_intl_refcount
=
1
;
}
else
{
locinfo
->
lconv
=
&
cloc_lconv
;
...
...
dlls/msvcrt/math.c
View file @
70c06601
...
...
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <fenv.h>
#include <fpieee.h>
#include <locale.h>
#include <math.h>
#include "msvcrt.h"
...
...
dlls/msvcrt/msvcrt.h
View file @
70c06601
...
...
@@ -148,7 +148,7 @@ typedef struct MSVCRT_threadlocaleinfostruct {
int
*
lconv_intl_refcount
;
int
*
lconv_num_refcount
;
int
*
lconv_mon_refcount
;
struct
MSVCRT_
lconv
*
lconv
;
struct
lconv
*
lconv
;
int
*
ctype1_refcount
;
unsigned
short
*
ctype1
;
#if _MSVCR_VER < 140
...
...
@@ -382,37 +382,6 @@ typedef struct _iobuf MSVCRT_FILE;
extern
MSVCRT_FILE
MSVCRT__iob
[];
struct
MSVCRT_lconv
{
char
*
decimal_point
;
char
*
thousands_sep
;
char
*
grouping
;
char
*
int_curr_symbol
;
char
*
currency_symbol
;
char
*
mon_decimal_point
;
char
*
mon_thousands_sep
;
char
*
mon_grouping
;
char
*
positive_sign
;
char
*
negative_sign
;
char
int_frac_digits
;
char
frac_digits
;
char
p_cs_precedes
;
char
p_sep_by_space
;
char
n_cs_precedes
;
char
n_sep_by_space
;
char
p_sign_posn
;
char
n_sign_posn
;
#if _MSVCR_VER >= 100
MSVCRT_wchar_t
*
_W_decimal_point
;
MSVCRT_wchar_t
*
_W_thousands_sep
;
MSVCRT_wchar_t
*
_W_int_curr_symbol
;
MSVCRT_wchar_t
*
_W_currency_symbol
;
MSVCRT_wchar_t
*
_W_mon_decimal_point
;
MSVCRT_wchar_t
*
_W_mon_thousands_sep
;
MSVCRT_wchar_t
*
_W_positive_sign
;
MSVCRT_wchar_t
*
_W_negative_sign
;
#endif
};
struct
MSVCRT__exception
{
int
type
;
char
*
name
;
...
...
dlls/msvcrt/string.c
View file @
70c06601
...
...
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <math.h>
#include <limits.h>
#include <locale.h>
#include <errno.h>
#include "msvcrt.h"
#include "bnum.h"
...
...
dlls/msvcrt/wcs.c
View file @
70c06601
...
...
@@ -20,6 +20,7 @@
*/
#include <limits.h>
#include <locale.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
...
...
include/msvcrt/locale.h
View file @
70c06601
...
...
@@ -53,6 +53,16 @@ struct lconv
char
n_sep_by_space
;
char
p_sign_posn
;
char
n_sign_posn
;
#if _MSVCR_VER >= 100
wchar_t
*
_W_decimal_point
;
wchar_t
*
_W_thousands_sep
;
wchar_t
*
_W_int_curr_symbol
;
wchar_t
*
_W_currency_symbol
;
wchar_t
*
_W_mon_decimal_point
;
wchar_t
*
_W_mon_thousands_sep
;
wchar_t
*
_W_positive_sign
;
wchar_t
*
_W_negative_sign
;
#endif
};
#endif
/* _LCONV_DEFINED */
...
...
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