}
static PyObject *
-signaldict_copy(PyObject *self)
+signaldict_copy(PyObject *self, PyObject *args UNUSED)
{
return flags_as_dict(SdFlags(self));
}
#endif
static PyObject *
-context_copy(PyObject *self)
+context_copy(PyObject *self, PyObject *args UNUSED)
{
PyObject *copy;
/* Return a new reference to the current context */
static PyObject *
-PyDec_GetCurrentContext(void)
+PyDec_GetCurrentContext(PyObject *self UNUSED, PyObject *args UNUSED)
{
PyObject *context;
if (v == default_context_template ||
v == basic_context_template ||
v == extended_context_template) {
- v = context_copy(v);
+ v = context_copy(v, NULL);
if (v == NULL) {
return NULL;
}
}
/* Set up a new thread local context. */
- tl_context = context_copy(default_context_template);
+ tl_context = context_copy(default_context_template, NULL);
if (tl_context == NULL) {
return NULL;
}
/* Return a new reference to the current context */
static PyObject *
-PyDec_GetCurrentContext(void)
+PyDec_GetCurrentContext(PyObject *self UNUSED, PyObject *args UNUSED)
{
PyObject *context;
if (v == default_context_template ||
v == basic_context_template ||
v == extended_context_template) {
- v = context_copy(v);
+ v = context_copy(v, NULL);
if (v == NULL) {
return NULL;
}
return NULL;
}
- self->local = context_copy(local);
+ self->local = context_copy(local, NULL);
if (self->local == NULL) {
self->global = NULL;
Py_DECREF(self);