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>2008-02-07 01:04:16 +0300
committerCorinna Vinschen <corinna@vinschen.de>2008-02-07 01:04:16 +0300
commit93591f420010b0136ac55789a38b356772a13c17 (patch)
treebe7c77c94b3598e411ed0297bb5248d098dc6c28 /winsup/cygwin/strfuncs.cc
parentfb7331e34c33284b4be9d41a890b8e057a53e812 (diff)
* miscfuncs.cc (next_char): Fix typos in comment.
* strfuncs.cc: Remove cygserver guards.
Diffstat (limited to 'winsup/cygwin/strfuncs.cc')
-rw-r--r--winsup/cygwin/strfuncs.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/winsup/cygwin/strfuncs.cc b/winsup/cygwin/strfuncs.cc
index 23471d258..6b1250c3a 100644
--- a/winsup/cygwin/strfuncs.cc
+++ b/winsup/cygwin/strfuncs.cc
@@ -24,10 +24,6 @@ details. */
codepage_type current_codepage = ansi_cp;
UINT active_codepage = 0;
-#ifdef __OUTSIDE_CYGWIN__
-#define codepage_init(cp) (active_codepage = GetACP ())
-#endif
-
UINT
get_cp ()
{
@@ -73,14 +69,10 @@ sys_wcstombs_alloc (char **tgt_p, int type, const PWCHAR src, int slen)
{
size_t tlen = (slen == -1 ? ret : ret + 1);
-#ifndef __OUTSIDE_CYGWIN__
if (type == HEAP_NOTHEAP)
-#endif
*tgt_p = (char *) calloc (tlen, sizeof (char));
-#ifndef __OUTSIDE_CYGWIN__
else
*tgt_p = (char *) ccalloc ((cygheap_types) type, tlen, sizeof (char));
-#endif
if (!*tgt_p)
return 0;
ret = sys_wcstombs (*tgt_p, tlen, src, slen);
@@ -104,14 +96,10 @@ sys_mbstowcs_alloc (PWCHAR *tgt_p, int type, const char *src)
ret = MultiByteToWideChar (get_cp (), 0, src, -1, NULL, 0);
if (ret)
{
-#ifndef __OUTSIDE_CYGWIN__
if (type == HEAP_NOTHEAP)
-#endif
*tgt_p = (PWCHAR) calloc (ret, sizeof (WCHAR));
-#ifndef __OUTSIDE_CYGWIN__
else
*tgt_p = (PWCHAR) ccalloc ((cygheap_types) type, ret, sizeof (WCHAR));
-#endif
if (!*tgt_p)
return 0;
ret = sys_mbstowcs (*tgt_p, src, ret);