Commit bf585e2e authored by Rudi Chen's avatar Rudi Chen

Add dummy function implementations to be able to link _ctypes module.

parent 39b32381
......@@ -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;
......
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment