* path.h (cwdstuff): Move class.
* cygheap.h (cwdstuff): To here. (init_cygheap): Add cwd field. * child_info.h (cygheap_exec_info): Eliminate cwd stuff. (child_info_spawn): Ditto. * dcrt0.cc (dll_crt0_1): Remove cygcwd.fixup_after_exec call. Convert cygcwd reference to cygheap->cwd. * path.cc: Ditto, throughout. (cwdstuff::copy): Eliminate. (cwdstuff::fixup_after_exec): Ditto. * spawn.cc (spawn_guts): Eliminate call to cygcwd.copy. * fhandler.h (FH_OSS_DSP): Move into "fast" device category.
This commit is contained in:
@@ -68,9 +68,6 @@ public:
|
||||
int envc;
|
||||
char **envp;
|
||||
HANDLE myself_pinfo;
|
||||
char *cwd_posix;
|
||||
char *cwd_win32;
|
||||
DWORD cwd_hash;
|
||||
};
|
||||
|
||||
class child_info_spawn: public child_info
|
||||
@@ -88,10 +85,6 @@ public:
|
||||
{
|
||||
if (moreinfo->old_title)
|
||||
cfree (moreinfo->old_title);
|
||||
if (moreinfo->cwd_posix)
|
||||
cfree (moreinfo->cwd_posix);
|
||||
if (moreinfo->cwd_win32)
|
||||
cfree (moreinfo->cwd_win32);
|
||||
if (moreinfo->envp)
|
||||
{
|
||||
for (char **e = moreinfo->envp; *e; e++)
|
||||
|
Reference in New Issue
Block a user