[Xcb] [PATCH 1/3] Rename reply to reply_type.
Julien Danjou
julien at danjou.info
Tue Jan 19 13:04:24 PST 2010
Signed-off-by: Julien Danjou <julien at danjou.info>
---
src/cookie.c | 4 ++--
src/cookie.h | 2 +-
src/ext.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/cookie.c b/src/cookie.c
index d69d76b..db0a20f 100644
--- a/src/cookie.c
+++ b/src/cookie.c
@@ -23,7 +23,7 @@ xpybCookie_new(PyTypeObject *self, PyObject *args, PyObject *kw)
static void
xpybCookie_dealloc(xpybCookie *self)
{
- Py_CLEAR(self->reply);
+ Py_CLEAR(self->reply_type);
Py_CLEAR(self->request);
Py_CLEAR(self->conn);
self->ob_type->tp_free((PyObject *)self);
@@ -88,7 +88,7 @@ xpybCookie_reply(xpybCookie *self, PyObject *args)
goto err1;
/* Call the reply type object to get a new xcb.Reply instance */
- reply = PyObject_CallFunctionObjArgs((PyObject *)self->reply, shim, NULL);
+ reply = PyObject_CallFunctionObjArgs((PyObject *)self->reply_type, shim, NULL);
Py_DECREF(shim);
return reply;
err1:
diff --git a/src/cookie.h b/src/cookie.h
index eae9a84..b00e999 100644
--- a/src/cookie.h
+++ b/src/cookie.h
@@ -9,7 +9,7 @@ typedef struct {
PyObject_HEAD
xpybConn *conn;
xpybRequest *request;
- PyTypeObject *reply;
+ PyTypeObject *reply_type;
xcb_void_cookie_t cookie;
} xpybCookie;
diff --git a/src/ext.c b/src/ext.c
index 0bd7aee..2d622d9 100644
--- a/src/ext.c
+++ b/src/ext.c
@@ -134,7 +134,7 @@ xpybExt_send_request(xpybExt *self, PyObject *args, PyObject *kw)
/* Set up cookie */
Py_INCREF(cookie->conn = self->conn);
Py_INCREF((PyObject *)(cookie->request = request));
- Py_XINCREF(cookie->reply = reply);
+ Py_XINCREF(cookie->reply_type = reply);
cookie->cookie.sequence = seq;
Py_INCREF(cookie);
--
1.6.6
More information about the Xcb
mailing list