]> code.delx.au - gnu-emacs/commit
Add a wrapper for getenv so it also checks the registry on Windows.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 26 Oct 2007 15:39:49 +0000 (15:39 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 26 Oct 2007 15:39:49 +0000 (15:39 +0000)
commit70cd9104ca2f1f7443cda004d9ab576d49503aca
treee8c5ba95394da3d681b902acb4be929a80d770f9
parentb1ac90c50af8342f341b22d532aa3304c99147cf
Add a wrapper for getenv so it also checks the registry on Windows.
Suggestion and algorithm by Eli Zaretskii.
Code partially based on w32_get_resource and init_environment (w32.c).
(xmalloc): New function by Károly Lőrentey (backported from the trunk).
(quote_file_name): Use it.
(egetenv): New wrapper for getenv.
(get_current_dir_name, decode_options, get_server_config, set_local_socket,
set_socket, main): Use egetenv, not getenv.
(w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
lib-src/ChangeLog
lib-src/emacsclient.c