diff options
author | John Ehresman <jpe@wingware.com> | 2010-04-15 17:53:45 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2010-04-16 13:02:42 -0400 |
commit | 626f66f7dac93e53b8cab75cc63b5283c628c490 (patch) | |
tree | 28cfc7dafdb7dacc8fa759c72bf741f23ac1afa0 /glib/pyglib-python-compat.h | |
parent | 8c0e1634ff4546a94101cd3965e94c81d04649c2 (diff) | |
download | pygobject-626f66f7dac93e53b8cab75cc63b5283c628c490.tar.gz pygobject-626f66f7dac93e53b8cab75cc63b5283c628c490.tar.xz pygobject-626f66f7dac93e53b8cab75cc63b5283c628c490.zip |
Use bytes rather than bytearray and use PYGLIB_ macro prefix
Diffstat (limited to 'glib/pyglib-python-compat.h')
-rw-r--r-- | glib/pyglib-python-compat.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/glib/pyglib-python-compat.h b/glib/pyglib-python-compat.h index a422893..bea7d6b 100644 --- a/glib/pyglib-python-compat.h +++ b/glib/pyglib-python-compat.h @@ -95,11 +95,11 @@ static int _pyglib_init_##modname(PyObject *module) #define _PyUnicode_GET_SIZE PyString_GET_SIZE #define _PyUnicode_Type PyString_Type -#define _PyByteArray_FromStringAndSize PyString_FromStringAndSize -#define _PyByteArray_Resize _PyString_Resize -#define _PyByteArray_AsString PyString_AsString -#define _PyByteArray_Size PyString_Size -#define _PyByteArray_Check PyString_Check +#define PYGLIB_PyBytes_FromStringAndSize PyString_FromStringAndSize +#define PYGLIB_PyBytes_Resize _PyString_Resize +#define PYGLIB_PyBytes_AsString PyString_AsString +#define PYGLIB_PyBytes_Size PyString_Size +#define PYGLIB_PyBytes_Check PyString_Check #define _PyLong_Check PyInt_Check #define _PyLong_FromLong PyInt_FromLong @@ -190,11 +190,11 @@ PyTypeObject symbol = { \ #define _PyLongObject PyLongObject #define _PyLong_Type PyLong_Type -#define _PyByteArray_FromStringAndSize PyByteArray_FromStringAndSize -#define _PyByteArray_Resize(o, len) PyByteArray_Resize(*o, len) -#define _PyByteArray_AsString PyByteArray_AsString -#define _PyByteArray_Size PyByteArray_Size -#define _PyByteArray_Check PyByteArray_Check +#define PYGLIB_PyBytes_FromStringAndSize PyBytes_FromStringAndSize +#define PYGLIB_PyBytes_Resize(o, len) _PyBytes_Resize(o, len) +#define PYGLIB_PyBytes_AsString PyBytes_AsString +#define PYGLIB_PyBytes_Size PyBytes_Size +#define PYGLIB_PyBytes_Check PyBytes_Check #endif |