Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Boxiang Sun
Pyston
Commits
58b4dd04
Commit
58b4dd04
authored
Apr 12, 2016
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Apr 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get the sharedmods (ctypes, etc) building
parent
0e67e50f
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8 additions
and
13 deletions
+8
-13
from_cpython/Include/Python.h
from_cpython/Include/Python.h
+2
-2
from_cpython/Modules/pyexpat.c
from_cpython/Modules/pyexpat.c
+2
-2
from_cpython/Modules/readline.c
from_cpython/Modules/readline.c
+3
-2
src/runtime/types.cpp
src/runtime/types.cpp
+1
-1
test/tests/builtins_future.py
test/tests/builtins_future.py
+0
-1
test/tests/bz2_test.py
test/tests/bz2_test.py
+0
-1
test/tests/curses_test.py
test/tests/curses_test.py
+0
-1
test/tests/grp_test.py
test/tests/grp_test.py
+0
-1
test/tests/multiline_repl.py
test/tests/multiline_repl.py
+0
-1
test/tests/termios_test.py
test/tests/termios_test.py
+0
-1
No files found.
from_cpython/Include/Python.h
View file @
58b4dd04
...
...
@@ -141,8 +141,8 @@ PyAPI_FUNC(void) PyGC_RegisterStaticConstantLocation(PyObject**) PYSTON_NOEXCEPT
PyAPI_FUNC
(
PyObject
*
)
_PyGC_GetGarbage
(
void
)
PYSTON_NOEXCEPT
;
// Pyston addition:
PyAPI_FUNC
(
void
)
PyGC_Enable
()
PYSTON_NOEXCEPT
;
PyAPI_FUNC
(
void
)
PyGC_Disable
()
PYSTON_NOEXCEPT
;
PyAPI_FUNC
(
void
)
PyGC_Enable
(
void
)
PYSTON_NOEXCEPT
;
PyAPI_FUNC
(
void
)
PyGC_Disable
(
void
)
PYSTON_NOEXCEPT
;
#ifdef __cplusplus
}
...
...
from_cpython/Modules/pyexpat.c
View file @
58b4dd04
...
...
@@ -159,7 +159,7 @@ get_handler_name(struct HandlerInfo *hinfo)
{
PyObject
*
name
=
hinfo
->
nameobj
;
if
(
name
==
NULL
)
{
name
=
Py
GC_AddRoot
(
PyString_FromString
(
hinfo
->
name
)
);
name
=
Py
String_FromString
(
hinfo
->
name
);
hinfo
->
nameobj
=
name
;
}
Py_XINCREF
(
name
);
...
...
@@ -1891,7 +1891,7 @@ MODULE_INITFUNC(void)
/* Add some symbolic constants to the module */
if
(
ErrorObject
==
NULL
)
{
ErrorObject
=
PyGC_
AddRoo
t
(
PyErr_NewException
(
"xml.parsers.expat.ExpatError"
,
ErrorObject
=
PyGC_
RegisterStaticConstan
t
(
PyErr_NewException
(
"xml.parsers.expat.ExpatError"
,
NULL
,
NULL
));
if
(
ErrorObject
==
NULL
)
return
;
...
...
from_cpython/Modules/readline.c
View file @
58b4dd04
...
...
@@ -930,8 +930,9 @@ setup_readline(void)
strdup
(
"
\t\n
`~!@#$%^&*()-=+[{]}
\\
|;:'
\"
,<>/?"
);
/* All nonalphanums except '.' */
begidx
=
PyInt_FromLong
(
0L
);
endidx
=
PyInt_FromLong
(
0L
);
begidx
=
PyGC_RegisterStaticConstant
(
PyInt_FromLong
(
0L
));
endidx
=
PyGC_RegisterStaticConstant
(
PyInt_FromLong
(
0L
));
PyGC_RegisterStaticConstantLocation
(
&
completer
);
/* Initialize (allows .inputrc to override)
*
* XXX: A bug in the readline-2.2 library causes a memory leak
...
...
src/runtime/types.cpp
View file @
58b4dd04
...
...
@@ -4827,7 +4827,7 @@ extern "C" void Py_Finalize() noexcept {
}
for
(
auto
p
:
constant_locations
)
{
Py_DECREF
(
*
p
);
Py_
X
DECREF
(
*
p
);
}
constant_locations
.
clear
();
...
...
test/tests/builtins_future.py
View file @
58b4dd04
# expected: reffail
from
future_builtins
import
hex
,
oct
,
map
,
zip
,
filter
from
itertools
import
imap
,
izip
,
ifilter
...
...
test/tests/bz2_test.py
View file @
58b4dd04
# expected: reffail
import
bz2
print
bz2
.
decompress
(
bz2
.
compress
(
"hello world"
))
test/tests/curses_test.py
View file @
58b4dd04
# expected: reffail
import
curses
,
sys
try
:
...
...
test/tests/grp_test.py
View file @
58b4dd04
# expected: reffail
import
grp
print
grp
.
getgrnam
(
"root"
)
test/tests/multiline_repl.py
View file @
58b4dd04
# expected: reffail
import
os
import
pty
import
subprocess
...
...
test/tests/termios_test.py
View file @
58b4dd04
# expected: reffail
import
termios
,
sys
fd
=
sys
.
stdout
.
fileno
()
try
:
...
...
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