getargs_s_hash(PyObject *self, PyObject *args)
{
const char *str;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "s#", &str, &size))
return NULL;
return PyBytes_FromStringAndSize(str, size);
getargs_t_hash(PyObject *self, PyObject *args)
{
const char *str;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "t#", &str, &size))
return NULL;
return PyBytes_FromStringAndSize(str, size);
getargs_z_hash(PyObject *self, PyObject *args)
{
const char *str;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "z#", &str, &size))
return NULL;
if (str != NULL)
getargs_w_hash(PyObject *self, PyObject *args)
{
char *str;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "w#", &str, &size))
return NULL;
getargs_u(PyObject *self, PyObject *args)
{
const Py_UNICODE *str;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "u", &str))
return NULL;
size = _ustrlen(str);
getargs_u_hash(PyObject *self, PyObject *args)
{
const Py_UNICODE *str;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "u#", &str, &size))
return NULL;
return PyUnicode_FromUnicode(str, size);
const char *encoding = NULL;
PyByteArrayObject *buffer = NULL;
char *str = NULL;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "O|sO!",
&arg, &encoding, &PyByteArray_Type, &buffer))
const char *encoding = NULL;
PyByteArrayObject *buffer = NULL;
char *str = NULL;
- Py_ssize_t size;
+ int size;
if (!PyArg_ParseTuple(args, "O|sO!",
&arg, &encoding, &PyByteArray_Type, &buffer))