Mercurial > emacs
view src/s/isc4-0.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 | 695cf19ef79e |
children | 375f2633d815 |
line wrap: on
line source
#include "isc3-0.h" #undef LIBS_SYSTEM #define LIBS_SYSTEM -linet -lcposix #define ISC4_0 /* fmcphers@csugrad.cs.vt.edu reported this was necessary. He used GCC. I don't know what is needed with other compilers. */ #ifdef __GNUC__ #undef LIBX11_SYSTEM #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lcposix -lc #endif /* Tobias Herbert <herbert@clipper.ikp.physik.th-darmstadt.de> says this is needed. */ #ifndef POSIX_SIGNALS #ifndef sigblock #ifndef SIG_BLOCK #define SIG_BLOCK 0 #endif #define sigblock(sig) \ (sigprocmask_set = SIGEMPTYMASK | (sig), \ sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL)) #define sigunblock(sig) \ (sigprocmask_set = SIGFULLMASK & ~(sig), \ sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL)) #endif #endif /* not POSIX_SIGNALS */ /* arch-tag: 1278f86f-17f2-462d-88c9-85e4b5faa5c3 (do not change this comment) */