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>2009-09-21 23:29:16 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-09-21 23:29:16 +0400
commitee42ccd3a2c71ddf73a7b58cdf7ce8afdd0da5dd (patch)
treeae7ba1374266f5e3060a65a0c66a6766de54319a /winsup/cygwin/cygheap.h
parent92763ad9ba0498994c6d466c7e58ba755560183a (diff)
* cygheap.h (cwdstuff::get_posix): Convert to const inline method just
returning pointer to posix path. (cwdstuff::reset_posix): Convert to non-inline method taking a wchar_t pointer. * path.cc (cwdstuff::set): Revert change from 2009-05-13. Set posix to valid incoming path again. (cwdstuff::reset_posix): New implementation setting posix path from incoming wchar_t path. Explain usage. (cwdstuff::get_posix): Drop implementation. (cwdstuff::get): Drop special case to handle empty posix path. * syscalls.cc (internal_setlocale): Store old posix cwd as wide char path. Restore posix cwd using new charset. Explain why.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index 9bba99a65..7a39de627 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -211,8 +211,8 @@ public:
UNICODE_STRING win32;
DWORD drive_length;
static muto cwd_lock;
- char *get_posix ();
- void reset_posix () { if (posix) posix[0] = '\0'; }
+ const char *get_posix () const { return posix; };
+ void reset_posix (wchar_t *);
char *get (char *, int = 1, int = 0, unsigned = NT_MAX_PATH);
HANDLE get_handle () { return dir; }
DWORD get_drive (char * dst)