diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-09-21 19:29:16 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-09-21 19:29:16 +0000 |
commit | ee42ccd3a2c71ddf73a7b58cdf7ce8afdd0da5dd (patch) | |
tree | ae7ba1374266f5e3060a65a0c66a6766de54319a /winsup/cygwin/cygheap.h | |
parent | 92763ad9ba0498994c6d466c7e58ba755560183a (diff) | |
download | cygnal-ee42ccd3a2c71ddf73a7b58cdf7ce8afdd0da5dd.tar.gz cygnal-ee42ccd3a2c71ddf73a7b58cdf7ce8afdd0da5dd.tar.bz2 cygnal-ee42ccd3a2c71ddf73a7b58cdf7ce8afdd0da5dd.zip |
* 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.h | 4 |
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) |