-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Description
From a glance I think the uv_os_* methods are adequate to replace our conditional switches in the RealEnvStore methods.
I think this is a good first issue if you are familiar with C++ and has some idea on how to use libuv methods, but you may need to read into the libuv implementation to make sure the refactor does not change the functionality.
Pointers:
Line 71 in dfd7e99
const char* val = getenv(*key); |
Line 107 in dfd7e99
setenv(*key, *val, 1); |
Line 123 in dfd7e99
if (getenv(*key)) return 0; |
Line 146 in dfd7e99
unsetenv(*key); |
docs:
http://docs.libuv.org/en/v1.x/misc.html?highlight=uv_os_getenv#c.uv_os_getenv
http://docs.libuv.org/en/v1.x/misc.html?highlight=uv_os_getenv#c.uv_os_setenv
http://docs.libuv.org/en/v1.x/misc.html?highlight=uv_os_getenv#c.uv_os_unsetenv