This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Correct argument to __get_current_locale.
- From: Douglas <info at ourairquality dot org>
- To: newlib at sourceware dot org
- Date: Sun, 27 Nov 2016 12:13:31 +1100
- Subject: [PATCH] Correct argument to __get_current_locale.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: hostedmail.net.au; auth=pass smtp.auth=112 dot 140 dot 176 dot 50 at out dot hosting-services dot net dot au
---
newlib/libc/locale/locale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
I noticed a change made to newlib locale.c 2016-08-25 and it seems
to have resulted in the function __get_current_locale not being
inlined which in turn breaks linking for my project because
this function is not defined. The line is
return __get_current_locale (_REENT)->ctype_ptr;
Do you think the _REENT argument needs to be removed
or is __get_current_locale the wrong function?
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index b7ced4d..8572821 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -996,7 +996,7 @@ __locale_ctype_ptr_l (struct __locale_t *locale)
const char *
__locale_ctype_ptr (void)
{
- return __get_current_locale (_REENT)->ctype_ptr;
+ return __get_current_locale ()->ctype_ptr;
}
#ifndef _REENT_ONLY
--
2.5.5