* environ.cc: Use new definition of "environ" throughout.
(environ_init): Explicitly initialize __cygwin_environ. (cur_environ): New function. Detects when user has updated their environment. * exec.cc: Use 'environ' define throughout rather than __cygwin_environ. * spawn.cc: Ditto. * winsup.h: Declare cur_environ, main_environ, environ.
This commit is contained in:
@@ -477,7 +477,9 @@ win_env * __stdcall getwinenv (const char *name, const char *posix = NULL);
|
||||
|
||||
void __stdcall update_envptrs ();
|
||||
char * __stdcall winenv (const char * const *, int);
|
||||
extern char **__cygwin_environ;
|
||||
extern char **__cygwin_environ, ***main_environ;
|
||||
extern char __stdcall **cur_environ ();
|
||||
#define environ (cur_environ ())
|
||||
|
||||
/* The title on program start. */
|
||||
extern char *old_title;
|
||||
|
Reference in New Issue
Block a user