Mercurial > emacs
annotate src/s/sol2-6.h @ 79232:7970215aa6e5
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 Kroly Lrentey (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.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 26 Oct 2007 15:39:06 +0000 |
parents | 9a68f1087040 |
children | ed20cbe62401 |
rev | line source |
---|---|
47342
5bdc7af4b905
Fix typo. Add comment.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
47336
diff
changeset
|
1 /* Handle Solaris 2.6. */ |
5bdc7af4b905
Fix typo. Add comment.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
47336
diff
changeset
|
2 |
5bdc7af4b905
Fix typo. Add comment.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
47336
diff
changeset
|
3 #include "sol2-5.h" |
47336 | 4 |
47473
3897ddfbb1f5
(UNEXEC): Comment out definition.
Richard M. Stallman <rms@gnu.org>
parents:
47342
diff
changeset
|
5 #if 0 /* dldump does not handle all the extensions used by GNU ld. */ |
47336 | 6 #undef UNEXEC |
7 #define UNEXEC unexsol.o | |
47473
3897ddfbb1f5
(UNEXEC): Comment out definition.
Richard M. Stallman <rms@gnu.org>
parents:
47342
diff
changeset
|
8 #endif |
52401 | 9 |
10 /* arch-tag: 71ea3857-89dc-4395-9623-77964e6ed3ca | |
11 (do not change this comment) */ |