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
ec5e7aa6
Commit
ec5e7aa6
authored
Mar 10, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix annotations
parent
80ae7847
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
7 deletions
+4
-7
from_cpython/Include/Python.h
from_cpython/Include/Python.h
+0
-2
from_cpython/Include/object.h
from_cpython/Include/object.h
+0
-1
src/core/stringpool.h
src/core/stringpool.h
+1
-1
src/runtime/types.cpp
src/runtime/types.cpp
+1
-1
src/runtime/types.h
src/runtime/types.h
+2
-2
No files found.
from_cpython/Include/Python.h
View file @
ec5e7aa6
...
...
@@ -184,8 +184,6 @@ PyAPI_FUNC(void) PyGC_Disable() PYSTON_NOEXCEPT;
extern
"C"
{
#endif
PyObject
*
PyModule_GetDict
(
PyObject
*
)
PYSTON_NOEXCEPT
;
// Pyston change : expose these type objects
extern
PyTypeObject
Pattern_Type
;
extern
PyTypeObject
Match_Type
;
...
...
from_cpython/Include/object.h
View file @
ec5e7aa6
...
...
@@ -10,7 +10,6 @@ extern "C" {
// Pyston addition: refcounting annotations:
#define BORROWED(T) T
#define STOLEN(T) T
#define WEAK(T) T
/* Object and type object interface */
...
...
src/core/stringpool.h
View file @
ec5e7aa6
...
...
@@ -81,7 +81,7 @@ public:
llvm
::
StringRef
s
()
const
;
operator
llvm
::
StringRef
()
const
{
return
s
();
}
operator
B
oxedString
*
()
const
{
return
getBox
();
}
operator
B
ORROWED
(
BoxedString
*
)
()
const
{
return
getBox
();
}
bool
isCompilerCreatedName
()
const
;
...
...
src/runtime/types.cpp
View file @
ec5e7aa6
...
...
@@ -2127,7 +2127,7 @@ public:
// or PyModule_GetDict to return real dicts.
class
AttrWrapper
:
public
Box
{
private:
WEAK
(
Box
*
)
b
;
// The parent object ('b') will keep the attrwrapper alive (forever)
BORROWED
(
Box
*
)
b
;
// The parent object ('b') will keep the attrwrapper alive (forever)
void
convertToDictBacked
()
{
HCAttrs
*
attrs
=
this
->
b
->
getHCAttrsPtr
();
...
...
src/runtime/types.h
View file @
ec5e7aa6
...
...
@@ -1317,7 +1317,7 @@ inline BoxedString* getStaticString(llvm::StringRef s) {
extern
"C"
volatile
int
_pendingcalls_to_do
;
inline
B
ox
*
Box
::
getattrString
(
const
char
*
attr
)
{
inline
B
ORROWED
(
Box
*
)
Box
::
getattrString
(
const
char
*
attr
)
{
// XXX need to auto-decref
BoxedString
*
s
=
internStringMortal
(
attr
);
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