diff options
author | Fred Drake <fdrake@acm.org> | 2000-02-04 20:33:49 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-02-04 20:33:49 (GMT) |
commit | 0d40ba4cdf6899b126297848f27f07a9cc76acb9 (patch) | |
tree | 4bc282696edbf934303c7db230540a2c4638a5c0 /Modules/pcremodule.c | |
parent | 0fdffcf9163c7d5dd18f74f7fad50d42fec60c3d (diff) | |
download | cpython-0d40ba4cdf6899b126297848f27f07a9cc76acb9.zip cpython-0d40ba4cdf6899b126297848f27f07a9cc76acb9.tar.gz cpython-0d40ba4cdf6899b126297848f27f07a9cc76acb9.tar.bz2 |
Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>:
Attached is patch (against 1.5.2 release) to allow some modules
to be buildable as pyd's (usual &PyType_Type stuff).
Diffstat (limited to 'Modules/pcremodule.c')
-rw-r--r-- | Modules/pcremodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/pcremodule.c b/Modules/pcremodule.c index 3b61697..9ae9226 100644 --- a/Modules/pcremodule.c +++ b/Modules/pcremodule.c @@ -165,7 +165,7 @@ PyPcre_getattr(self, name) staticforward PyTypeObject Pcre_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "Pcre", /*tp_name*/ sizeof(PcreObject), /*tp_basicsize*/ @@ -664,6 +664,8 @@ initpcre() { PyObject *m, *d; + Pcre_Type.ob_type = &PyType_Type; + /* Create the module and add the functions */ m = Py_InitModule("pcre", pcre_methods); |