* fhandler.h (fhandler_cygdrive:DRVSZ): New enum.

(pdrive_buf): New place to hold information about cygdrive.
* fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Store drive info in
pdrive_buf since get_win32_name() could now be too small to hold everything.
(fhandler_cygdrive::rewinddir): Reset pdrive to pdrive_buf.
(fhandler_cygdrive::closedir): Ditto.
* pipe.cc (fhandler_pipe::init): Be more defensive when referencing
get_win32_name().  Rework logic which made a copy of the POSIX path and then
never used it.
This commit is contained in:
Christopher Faylor
2009-08-04 04:20:36 +00:00
parent ff7b364c12
commit 824d851859
8 changed files with 35 additions and 18 deletions

View File

@ -76,13 +76,13 @@ operator new[](std::size_t sz, const std::nothrow_t &nt) throw()
return (*user_data->cxx_malloc->oper_new___nt) (sz, nt);
}
extern void
extern void
operator delete(void *p, const std::nothrow_t &nt) throw()
{
(*user_data->cxx_malloc->oper_delete_nt) (p, nt);
}
extern void
extern void
operator delete[](void *p, const std::nothrow_t &nt) throw()
{
(*user_data->cxx_malloc->oper_delete___nt) (p, nt);