static PyObject *Dlerror;
static PyObject *
-newdlobject(handle)
- PyUnivPtr *handle;
+newdlobject(PyUnivPtr *handle)
{
dlobject *xp;
xp = PyObject_New(dlobject, &Dltype);
}
static void
-dl_dealloc(xp)
- dlobject *xp;
+dl_dealloc(dlobject *xp)
{
if (xp->dl_handle != NULL)
dlclose(xp->dl_handle);
}
static PyObject *
-dl_close(xp, args)
- dlobject *xp;
- PyObject *args;
+dl_close(dlobject *xp, PyObject *args)
{
if (!PyArg_Parse(args, ""))
return NULL;
}
static PyObject *
-dl_sym(xp, args)
- dlobject *xp;
- PyObject *args;
+dl_sym(dlobject *xp, PyObject *args)
{
char *name;
PyUnivPtr *func;
}
static PyObject *
-dl_call(xp, args)
- dlobject *xp;
- PyObject *args; /* (varargs) */
+dl_call(dlobject *xp, PyObject *args)
{
PyObject *name;
long (*func)();
};
static PyObject *
-dl_getattr(xp, name)
- dlobject *xp;
- char *name;
+dl_getattr(dlobject *xp, char *name)
{
return Py_FindMethod(dlobject_methods, (PyObject *)xp, name);
}
};
static PyObject *
-dl_open(self, args)
- PyObject *self;
- PyObject *args;
+dl_open(PyObject *self, PyObject *args)
{
char *name;
int mode;
"Create an instance object from (CLASS, DICT) without calling its __init__().";
static PyObject *
-new_instance(unused, args)
- PyObject* unused;
- PyObject* args;
+new_instance(PyObject* unused, PyObject* args)
{
PyObject* klass;
PyObject *dict;
"Create a instance method object from (FUNCTION, INSTANCE, CLASS).";
static PyObject *
-new_instancemethod(unused, args)
- PyObject* unused;
- PyObject* args;
+new_instancemethod(PyObject* unused, PyObject* args)
{
PyObject* func;
PyObject* self;
"Create a function object from (CODE, GLOBALS, [NAME, ARGDEFS]).";
static PyObject *
-new_function(unused, args)
- PyObject* unused;
- PyObject* args;
+new_function(PyObject* unused, PyObject* args)
{
PyObject* code;
PyObject* globals;
"Create a code object from (ARGCOUNT, NLOCALS, STACKSIZE, FLAGS, CODESTRING, CONSTANTS, NAMES, VARNAMES, FILENAME, NAME, FIRSTLINENO, LNOTAB).";
static PyObject *
-new_code(unused, args)
- PyObject* unused;
- PyObject* args;
+new_code(PyObject* unused, PyObject* args)
{
int argcount;
int nlocals;
"Create a module object from (NAME).";
static PyObject *
-new_module(unused, args)
- PyObject* unused;
- PyObject* args;
+new_module(PyObject* unused, PyObject* args)
{
char *name;
"Create a class object from (NAME, BASE_CLASSES, DICT).";
static PyObject *
-new_class(unused, args)
- PyObject* unused;
- PyObject* args;
+new_class(PyObject* unused, PyObject* args)
{
PyObject * name;
PyObject * classes;
#define XxoObject_Check(v) ((v)->ob_type == &Xxo_Type)
static XxoObject *
-newXxoObject(arg)
- PyObject *arg;
+newXxoObject(PyObject *arg)
{
XxoObject *self;
self = PyObject_New(XxoObject, &Xxo_Type);
/* Xxo methods */
static void
-Xxo_dealloc(self)
- XxoObject *self;
+Xxo_dealloc(XxoObject *self)
{
Py_XDECREF(self->x_attr);
PyObject_Del(self);
}
static PyObject *
-Xxo_demo(self, args)
- XxoObject *self;
- PyObject *args;
+Xxo_demo(XxoObject *self, PyObject *args)
{
if (!PyArg_ParseTuple(args, ":demo"))
return NULL;
};
static PyObject *
-Xxo_getattr(self, name)
- XxoObject *self;
- char *name;
+Xxo_getattr(XxoObject *self, char *name)
{
if (self->x_attr != NULL) {
PyObject *v = PyDict_GetItemString(self->x_attr, name);
}
static int
-Xxo_setattr(self, name, v)
- XxoObject *self;
- char *name;
- PyObject *v;
+Xxo_setattr(XxoObject *self, char *name, PyObject *v)
{
if (self->x_attr == NULL) {
self->x_attr = PyDict_New();
/* Function of two integers returning integer */
static PyObject *
-xx_foo(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+xx_foo(PyObject *self, PyObject *args)
{
long i, j;
long res;
/* Function of no arguments returning new Xxo object */
static PyObject *
-xx_new(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+xx_new(PyObject *self, PyObject *args)
{
XxoObject *rv;
/* Example with subtle bug from extensions manual ("Thin Ice"). */
static PyObject *
-xx_bug(self, args)
- PyObject *self;
- PyObject *args;
+xx_bug(PyObject *self, PyObject *args)
{
PyObject *list, *item;
/* Test bad format character */
static PyObject *
-xx_roj(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+xx_roj(PyObject *self, PyObject *args)
{
PyObject *a;
long b;