Added wrappers so that this works as libheapq or libp3heapq

This commit is contained in:
Josh Yelon 2007-02-12 19:42:00 +00:00
parent cea56b4d81
commit c4415bc1de

View File

@ -21,8 +21,10 @@ static int _siftup(PyObject *list, int pos);
#ifdef _WIN32
extern "C" __declspec(dllexport) void initlibheapq(void);
extern "C" __declspec(dllexport) void initlibp3heapq(void);
#else
extern "C" void initlibheapq();
extern "C" void initlibp3heapq();
#endif
static PyObject *
@ -232,4 +234,7 @@ void initlibheapq(void) {
(void) Py_InitModule("libheapq", heapqcMethods);
};
void initlibp3heapq(void) {
(void) Py_InitModule("libp3heapq", heapqcMethods);
};