OSDN Git Service

* path.h (class path_conv): Convert path from char array to char *.
authorcorinna <corinna>
Thu, 30 Jul 2009 08:56:56 +0000 (08:56 +0000)
committercorinna <corinna>
Thu, 30 Jul 2009 08:56:56 +0000 (08:56 +0000)
commitf6d88b09fdbd592f473aafdc20a8b39dcf423ed3
tree7a7a930c7e9cbc91be93538a7ad10e1e4f4dc15d
parenta10392d19ce9208d6b64cc078422ac2c259365ca
* path.h (class path_conv): Convert path from char array to char *.
Initialize to NULL in constructors.  Drop normalized_path_size member.
(path_conv::size): Remove.
(path_conv::operator =): Always copy with sizeof path_conv.  Always
duplicate path on cygheap.
(path_conv::set_path): Move implementation to spawn.cc.
* path.cc (path_conv::set_normalized_path): Always allocate
normalized_path on cygheap.
(path_conv::check): Don't work on path, rather allocate THIS_path in
TLS and use it throughout.  When finished, allocate path on cygheap
and copy over.  Defer tacking on extension after having copied path.
* spawn.cc (path_conv::set_path): Implement here.
winsup/cygwin/ChangeLog
winsup/cygwin/path.cc
winsup/cygwin/path.h
winsup/cygwin/spawn.cc