Mailing List Archive

python/dist/src/Modules posixmodule.c,2.262,2.263
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv11587/python/Modules

Modified Files:
posixmodule.c
Log Message:
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
__STDC__ is defined (or something like that ...).


Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.262
retrieving revision 2.263
diff -C2 -d -r2.262 -r2.263
*** posixmodule.c 3 Oct 2002 07:24:48 -0000 2.262
--- posixmodule.c 5 Oct 2002 01:47:34 -0000 2.263
***************
*** 3607,3611 ****
char *comshell;

! s1 = (char *)_alloca(i);
if (!(x = GetEnvironmentVariable("COMSPEC", s1, i)))
return x;
--- 3607,3611 ----
char *comshell;

! s1 = (char *)alloca(i);
if (!(x = GetEnvironmentVariable("COMSPEC", s1, i)))
return x;
***************
*** 3623,3627 ****
/* NT/2000 and not using command.com. */
x = i + strlen(s3) + strlen(cmdstring) + 1;
! s2 = (char *)_alloca(x);
ZeroMemory(s2, x);
PyOS_snprintf(s2, x, "%s%s%s", s1, s3, cmdstring);
--- 3623,3627 ----
/* NT/2000 and not using command.com. */
x = i + strlen(s3) + strlen(cmdstring) + 1;
! s2 = (char *)alloca(x);
ZeroMemory(s2, x);
PyOS_snprintf(s2, x, "%s%s%s", s1, s3, cmdstring);
***************
*** 3676,3680 ****
strlen(szConsoleSpawn) + 1;

! s2 = (char *)_alloca(x);
ZeroMemory(s2, x);
/* To maintain correct argument passing semantics,
--- 3676,3680 ----
strlen(szConsoleSpawn) + 1;

! s2 = (char *)alloca(x);
ZeroMemory(s2, x);
/* To maintain correct argument passing semantics,