diff options
author | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 (GMT) |
---|---|---|
committer | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 (GMT) |
commit | 8ae62b60940ae0f33b1792703f3255e9c6a6a88a (patch) | |
tree | a7046041eb8d6943b159827500114aa855f69678 /Modules/_hashopenssl.c | |
parent | 3f993c3b52f9799a010b889d20f1bc129eb89704 (diff) | |
download | cpython-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.zip cpython-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.tar.gz cpython-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.tar.bz2 |
Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index ad38cfd..252a2ae 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -176,7 +176,7 @@ static PyObject * EVP_update(EVPobject *self, PyObject *args) { PyObject *obj; - PyBuffer view; + Py_buffer view; if (!PyArg_ParseTuple(args, "O:update", &obj)) return NULL; @@ -252,7 +252,7 @@ EVP_tp_init(EVPobject *self, PyObject *args, PyObject *kwds) static char *kwlist[] = {"name", "string", NULL}; PyObject *name_obj = NULL; PyObject *data_obj = NULL; - PyBuffer view; + Py_buffer view; char *nameStr; const EVP_MD *digest; @@ -397,7 +397,7 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict) static char *kwlist[] = {"name", "string", NULL}; PyObject *name_obj = NULL; PyObject *data_obj = NULL; - PyBuffer view = { 0 }; + Py_buffer view = { 0 }; PyObject *ret_obj; char *name; const EVP_MD *digest; @@ -437,7 +437,7 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict) EVP_new_ ## NAME (PyObject *self, PyObject *args) \ { \ PyObject *data_obj = NULL; \ - PyBuffer view = { 0 }; \ + Py_buffer view = { 0 }; \ PyObject *ret_obj; \ \ if (!PyArg_ParseTuple(args, "|O:" #NAME , &data_obj)) { \ |