Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
92e4dd86
Commit
92e4dd86
authored
Oct 05, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
__STDC__ is defined (or something like that ...).
parent
0f345567
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Modules/posixmodule.c
Modules/posixmodule.c
+3
-3
Python/pythonrun.c
Python/pythonrun.c
+2
-2
No files found.
Modules/posixmodule.c
View file @
92e4dd86
...
...
@@ -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
...
...
Python/pythonrun.c
View file @
92e4dd86
...
...
@@ -1450,9 +1450,9 @@ int
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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment