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
bf585e2e
Commit
bf585e2e
authored
Jul 24, 2015
by
Rudi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dummy function implementations to be able to link _ctypes module.
parent
39b32381
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
src/runtime/int.cpp
src/runtime/int.cpp
+10
-0
src/runtime/util.cpp
src/runtime/util.cpp
+14
-0
No files found.
src/runtime/int.cpp
View file @
bf585e2e
...
...
@@ -184,6 +184,16 @@ extern "C" int _PyInt_AsInt(PyObject* obj) noexcept {
return
(
int
)
result
;
}
#ifdef HAVE_LONG_LONG
extern
"C"
unsigned
PY_LONG_LONG
PyInt_AsUnsignedLongLongMask
(
register
PyObject
*
op
)
noexcept
{
Py_FatalError
(
"unimplemented"
);
unsigned
PY_LONG_LONG
val
=
0
;
return
val
;
}
#endif
extern
"C"
PyObject
*
PyInt_FromString
(
const
char
*
s
,
char
**
pend
,
int
base
)
noexcept
{
char
*
end
;
long
x
;
...
...
src/runtime/util.cpp
View file @
bf585e2e
...
...
@@ -19,6 +19,20 @@
#include "core/types.h"
#include "runtime/objmodel.h"
// Temp hack to get CType sort of importing
PyObject
*
PyDescr_NewMember
(
PyTypeObject
*
x
,
struct
PyMemberDef
*
y
)
PYSTON_NOEXCEPT
{
Py_FatalError
(
"unimplemented"
);
return
NULL
;
}
PyObject
*
PyDescr_NewGetSet
(
PyTypeObject
*
x
,
struct
PyGetSetDef
*
y
)
PYSTON_NOEXCEPT
{
Py_FatalError
(
"unimplemented"
);
return
NULL
;
}
PyObject
*
PyDescr_NewClassMethod
(
PyTypeObject
*
x
,
PyMethodDef
*
y
)
PYSTON_NOEXCEPT
{
Py_FatalError
(
"unimplemented"
);
return
NULL
;
}
namespace
pyston
{
void
parseSlice
(
BoxedSlice
*
slice
,
int
size
,
i64
*
out_start
,
i64
*
out_stop
,
i64
*
out_step
,
i64
*
out_length
)
{
...
...
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