summaryrefslogtreecommitdiff
path: root/Modules/dlmodule.c
diff options
context:
space:
mode:
authorPeter Schneider-Kamp <nowonder@nowonder.de>2000-07-10 11:56:03 +0000
committerPeter Schneider-Kamp <nowonder@nowonder.de>2000-07-10 11:56:03 +0000
commitc4bc0e0895ef4407f7d4239a107a0324ae545bbb (patch)
tree5dd65a1ffe3c8cb32a29c47b835eed20dc93b088 /Modules/dlmodule.c
parent0659b4af469c4f21a34378946b0ee7510a8047ff (diff)
downloadcpython-git-c4bc0e0895ef4407f7d4239a107a0324ae545bbb.tar.gz
ANSI-fication
Diffstat (limited to 'Modules/dlmodule.c')
-rw-r--r--Modules/dlmodule.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c
index 6a0a113b61..169f49c413 100644
--- a/Modules/dlmodule.c
+++ b/Modules/dlmodule.c
@@ -29,8 +29,7 @@ staticforward PyTypeObject Dltype;
static PyObject *Dlerror;
static PyObject *
-newdlobject(handle)
- PyUnivPtr *handle;
+newdlobject(PyUnivPtr *handle)
{
dlobject *xp;
xp = PyObject_New(dlobject, &Dltype);
@@ -41,8 +40,7 @@ newdlobject(handle)
}
static void
-dl_dealloc(xp)
- dlobject *xp;
+dl_dealloc(dlobject *xp)
{
if (xp->dl_handle != NULL)
dlclose(xp->dl_handle);
@@ -50,9 +48,7 @@ dl_dealloc(xp)
}
static PyObject *
-dl_close(xp, args)
- dlobject *xp;
- PyObject *args;
+dl_close(dlobject *xp, PyObject *args)
{
if (!PyArg_Parse(args, ""))
return NULL;
@@ -65,9 +61,7 @@ dl_close(xp, args)
}
static PyObject *
-dl_sym(xp, args)
- dlobject *xp;
- PyObject *args;
+dl_sym(dlobject *xp, PyObject *args)
{
char *name;
PyUnivPtr *func;
@@ -82,9 +76,7 @@ dl_sym(xp, args)
}
static PyObject *
-dl_call(xp, args)
- dlobject *xp;
- PyObject *args; /* (varargs) */
+dl_call(dlobject *xp, PyObject *args)
{
PyObject *name;
long (*func)();
@@ -141,9 +133,7 @@ static PyMethodDef dlobject_methods[] = {
};
static PyObject *
-dl_getattr(xp, name)
- dlobject *xp;
- char *name;
+dl_getattr(dlobject *xp, char *name)
{
return Py_FindMethod(dlobject_methods, (PyObject *)xp, name);
}
@@ -169,9 +159,7 @@ static PyTypeObject Dltype = {
};
static PyObject *
-dl_open(self, args)
- PyObject *self;
- PyObject *args;
+dl_open(PyObject *self, PyObject *args)
{
char *name;
int mode;