if (i = GetEnvironmentVariable("COMSPEC",NULL,0)) {
char *comshell;
- s1 = (char *)_alloca(i);
+ s1 = (char *)alloca(i);
if (!(x = GetEnvironmentVariable("COMSPEC", s1, i)))
return x;
_stricmp(comshell, "command.com") != 0) {
/* NT/2000 and not using command.com. */
x = i + strlen(s3) + strlen(cmdstring) + 1;
- s2 = (char *)_alloca(x);
+ s2 = (char *)alloca(x);
ZeroMemory(s2, x);
PyOS_snprintf(s2, x, "%s%s%s", s1, s3, cmdstring);
}
strlen(modulepath) +
strlen(szConsoleSpawn) + 1;
- s2 = (char *)_alloca(x);
+ s2 = (char *)alloca(x);
ZeroMemory(s2, x);
/* To maintain correct argument passing semantics,
we pass the command-line as it stands, and allow
PyOS_CheckStack(void)
{
__try {
- /* _alloca throws a stack overflow exception if there's
+ /* alloca throws a stack overflow exception if there's
not enough space left on the stack */
- _alloca(PYOS_STACK_MARGIN * sizeof(void*));
+ alloca(PYOS_STACK_MARGIN * sizeof(void*));
return 0;
} __except (EXCEPTION_EXECUTE_HANDLER) {
/* just ignore all errors */