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
93d69a79
Commit
93d69a79
authored
Dec 18, 2005
by
Fredrik Lundh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation with an ordinary C89 compiler
parent
0149e3a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Python/compile.c
Python/compile.c
+1
-2
Python/pyarena.c
Python/pyarena.c
+2
-2
No files found.
Python/compile.c
View file @
93d69a79
...
@@ -296,8 +296,7 @@ PyCodeObject *
...
@@ -296,8 +296,7 @@ PyCodeObject *
PyNode_Compile
(
struct
_node
*
n
,
const
char
*
filename
)
PyNode_Compile
(
struct
_node
*
n
,
const
char
*
filename
)
{
{
PyCodeObject
*
co
=
NULL
;
PyCodeObject
*
co
=
NULL
;
PyArena
*
arena
;
PyArena
*
arena
=
PyArena_New
();
arena
=
PyArena_New
();
mod_ty
mod
=
PyAST_FromNode
(
n
,
NULL
,
filename
,
arena
);
mod_ty
mod
=
PyAST_FromNode
(
n
,
NULL
,
filename
,
arena
);
if
(
mod
)
if
(
mod
)
co
=
PyAST_Compile
(
mod
,
filename
,
NULL
,
arena
);
co
=
PyAST_Compile
(
mod
,
filename
,
NULL
,
arena
);
...
...
Python/pyarena.c
View file @
93d69a79
...
@@ -107,8 +107,8 @@ PyArena_Malloc(PyArena *arena, size_t size)
...
@@ -107,8 +107,8 @@ PyArena_Malloc(PyArena *arena, size_t size)
int
int
PyArena_AddMallocPointer
(
PyArena
*
arena
,
void
*
pointer
)
PyArena_AddMallocPointer
(
PyArena
*
arena
,
void
*
pointer
)
{
{
assert
(
pointer
);
PyArenaList
*
tail
=
arena
->
a_malloc_tail
;
PyArenaList
*
tail
=
arena
->
a_malloc_tail
;
assert
(
pointer
);
assert
(
tail
->
al_pointer
!=
pointer
);
assert
(
tail
->
al_pointer
!=
pointer
);
tail
->
al_next
=
PyArenaList_New
();
tail
->
al_next
=
PyArenaList_New
();
tail
->
al_pointer
=
pointer
;
tail
->
al_pointer
=
pointer
;
...
@@ -119,8 +119,8 @@ PyArena_AddMallocPointer(PyArena *arena, void *pointer)
...
@@ -119,8 +119,8 @@ PyArena_AddMallocPointer(PyArena *arena, void *pointer)
int
int
PyArena_AddPyObject
(
PyArena
*
arena
,
PyObject
*
pointer
)
PyArena_AddPyObject
(
PyArena
*
arena
,
PyObject
*
pointer
)
{
{
assert
(
pointer
);
PyArenaList
*
tail
=
arena
->
a_object_tail
;
PyArenaList
*
tail
=
arena
->
a_object_tail
;
assert
(
pointer
);
tail
->
al_next
=
PyArenaList_New
();
tail
->
al_next
=
PyArenaList_New
();
tail
->
al_pointer
=
pointer
;
tail
->
al_pointer
=
pointer
;
arena
->
a_object_tail
=
tail
->
al_next
;
arena
->
a_object_tail
=
tail
->
al_next
;
...
...
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