summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-10-05 01:47:34 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-10-05 01:47:34 (GMT)
commit92e4dd865709f4a4be2b11453ef4de954b8d7b14 (patch)
tree365dac55fb0f21a8768fc3c02160ca12e98fa5f3 /Modules
parent0f345567fe90a65b3e2c04f1e6c484a25c299ed7 (diff)
downloadcpython-92e4dd865709f4a4be2b11453ef4de954b8d7b14.zip
cpython-92e4dd865709f4a4be2b11453ef4de954b8d7b14.tar.gz
cpython-92e4dd865709f4a4be2b11453ef4de954b8d7b14.tar.bz2
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
__STDC__ is defined (or something like that ...).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ab18cbb..09680c8 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3606,7 +3606,7 @@ _PyPopenCreateProcess(char *cmdstring,
if (i = GetEnvironmentVariable("COMSPEC",NULL,0)) {
char *comshell;
- s1 = (char *)_alloca(i);
+ s1 = (char *)alloca(i);
if (!(x = GetEnvironmentVariable("COMSPEC", s1, i)))
return x;
@@ -3622,7 +3622,7 @@ _PyPopenCreateProcess(char *cmdstring,
_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);
}
@@ -3675,7 +3675,7 @@ _PyPopenCreateProcess(char *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