Commit 86a5d09f authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add these missing functions

I'm only seeing "undefined reference to ..." errors in the CMake
build on a specific machine; I'm not sure why they're only cropping
up in that scenario.

I think these functions are only referenced from dead functions,
and in other environments the chains get dead-stripped.
parent 356fdc3b
......@@ -63,4 +63,8 @@ extern "C" PyObject* PyObject_Str(PyObject* v) {
assert(PyString_Check(res));
return res;
}
extern "C" PyObject* PyObject_SelfIter(PyObject* obj) {
Py_FatalError("unimplemented");
}
}
......@@ -199,6 +199,10 @@ extern "C" int _PyFile_SanitizeMode(char* mode) {
Py_FatalError("unimplemented");
}
extern "C" int PyObject_AsFileDescriptor(PyObject* o) {
Py_FatalError("unimplemented");
}
void setupFile() {
file_cls->giveAttr("__name__", boxStrConstant("file"));
......
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