win32, size);
}
-#define ENVMALLOC \
- (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) \
- <= CYGWIN_VERSION_DLL_MALLOC_ENV)
-
#define NL(x) x, (sizeof (x) - 1)
/* List of names which are converted from dos to unix
on the way in and back again on the way out.
char *envhere;
if (!issetenv)
/* Not setenv. Just overwrite existing. */
- envhere = environ[offset] = (char *) (ENVMALLOC ? strdup (name) : name);
+ envhere = environ[offset] = (char *) name;
else
{ /* setenv */
/* Look for an '=' in the name and ignore anything after that if found. */
/* Older applications relied on the fact that cygwin malloced elements of the
environment list. */
envp = newenv;
- if (ENVMALLOC)
- for (char **e = newenv; *e; e++)
- {
- char *p = *e;
- *e = strdup (p);
- cfree (p);
- }
envp_passed_in = 1;
goto out;
}
#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data)
-#define CYGWIN_VERSION_DLL_MALLOC_ENV 28
-
/* Old APIs had getc/putc macros that conflict with new CR/LF handling in the
stdio buffers */
#define CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING \