Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
rockchip_bionic
Commits
0d4ccee3
Commit
0d4ccee3
authored
10 years ago
by
Dan Albert
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Download
Plain Diff
Merge "Change name of MB_CUR_MAX implementation function."
parents
104a4729
224ff048
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libc/bionic/locale.cpp
libc/bionic/locale.cpp
+1
-1
libc/include/stdlib.h
libc/include/stdlib.h
+2
-2
No files found.
libc/bionic/locale.cpp
View file @
0d4ccee3
...
...
@@ -92,7 +92,7 @@ static void __locale_init() {
g_locale
.
int_n_sign_posn
=
CHAR_MAX
;
}
size_t
__mb_cur_max
()
{
size_t
__
ctype_get_
mb_cur_max
()
{
locale_t
l
=
reinterpret_cast
<
locale_t
>
(
pthread_getspecific
(
g_uselocale_key
));
if
(
l
==
nullptr
||
l
==
LC_GLOBAL_LOCALE
)
{
return
__bionic_current_locale_is_utf8
?
4
:
1
;
...
...
This diff is collapsed.
Click to expand it.
libc/include/stdlib.h
View file @
0d4ccee3
...
...
@@ -161,8 +161,8 @@ extern int mbtowc(wchar_t *, const char *, size_t);
extern
int
wctomb
(
char
*
,
wchar_t
);
extern
size_t
wcstombs
(
char
*
,
const
wchar_t
*
,
size_t
);
extern
size_t
__mb_cur_max
(
void
);
#define MB_CUR_MAX __mb_cur_max()
extern
size_t
__
ctype_get_
mb_cur_max
(
void
);
#define MB_CUR_MAX __
ctype_get_
mb_cur_max()
__END_DECLS
...
...
This diff is collapsed.
Click to expand it.
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