Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-07-10 11:29:33 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-07-10 11:29:33 +0300
commit462fcdb67f21c4806641c1cbbe0bc01a11d5ce44 (patch)
tree83bde431c882906ca1e82c0e3775f4afaa3ed995 /winsup/cygwin/nlsfuncs.cc
parentb3af1d5aa30c093aa96e1a4e61e05c3e984e635f (diff)
Cygwin: convert sys_wcstombs/sys_mbstowcs wrapper to inline functions
This should slightly speed up especially path conversions, given there's one less function call rearranging all function arguments in registers/stack (and less stack pressure). For clarity, rename overloaded sys_wcstombs to _sys_wcstombs and sys_cp_mbstowcs to _sys_mbstowcs. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/nlsfuncs.cc')
-rw-r--r--winsup/cygwin/nlsfuncs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc
index 0099a967f..668d7eb9e 100644
--- a/winsup/cygwin/nlsfuncs.cc
+++ b/winsup/cygwin/nlsfuncs.cc
@@ -1542,11 +1542,11 @@ internal_setlocale ()
if (path && *path) /* $PATH can be potentially unset. */
{
w_path = tp.w_get ();
- sys_cp_mbstowcs (cygheap->locale.mbtowc, w_path, 32768, path);
+ _sys_mbstowcs (cygheap->locale.mbtowc, w_path, 32768, path);
}
w_cwd = tp.w_get ();
cwdstuff::cwd_lock.acquire ();
- sys_cp_mbstowcs (cygheap->locale.mbtowc, w_cwd, 32768,
+ _sys_mbstowcs (cygheap->locale.mbtowc, w_cwd, 32768,
cygheap->cwd.get_posix ());
/* Set charset for internal conversion functions. */
cygheap->locale.mbtowc = __get_global_locale ()->mbtowc;