diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | gobject/pygobject.h | 9 |
2 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2006-09-12 John Ehresman <jpe@wingware.com> + + * gobject/pygobject.h (init_pygobject_check): Declare variables + at start of code block + 2006-09-06 Johan Dahlin <jdahlin@async.com.br> * gobject/pygmainloop.c (pyg_signal_watch_prepare): Increase the timeout diff --git a/gobject/pygobject.h b/gobject/pygobject.h index dadfe76..a8ab6ed 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -294,11 +294,12 @@ struct _PyGObject_Functions *_PyGObject_API; } G_STMT_END #define init_pygobject_check(req_major, req_minor, req_micro) G_STMT_START { \ - init_pygobject(); \ - PyObject *gobject = PyImport_ImportModule("gobject"); \ - PyObject *mdict = PyModule_GetDict(gobject); \ - PyObject *version = PyDict_GetItemString(mdict, "pygobject_version"); \ + PyObject *gobject, *mdict, *version; \ int found_major, found_minor, found_micro; \ + init_pygobject(); \ + gobject = PyImport_ImportModule("gobject"); \ + mdict = PyModule_GetDict(gobject); \ + version = PyDict_GetItemString(mdict, "pygobject_version"); \ if (!version) \ version = PyDict_GetItemString(mdict, "pygtk_version"); \ if (!version) { \ |
