diff options
author | Peter Schneider-Kamp <nowonder@nowonder.de> | 2000-07-10 12:43:58 (GMT) |
---|---|---|
committer | Peter Schneider-Kamp <nowonder@nowonder.de> | 2000-07-10 12:43:58 (GMT) |
commit | 286da3b46a3647db07c422058381ac65e74e47a2 (patch) | |
tree | 42402b809cb6e956c2ee3a35ead93add033aaa55 /Modules/md5module.c | |
parent | 41c36ffe83d22e84cc072130b3914d66d9d722f0 (diff) | |
download | cpython-286da3b46a3647db07c422058381ac65e74e47a2.zip cpython-286da3b46a3647db07c422058381ac65e74e47a2.tar.gz cpython-286da3b46a3647db07c422058381ac65e74e47a2.tar.bz2 |
ANSI-fying
added excplicit node * parameter to termvalid argument in
validate_two_chain_ops of parsermodule.c (as proposed by fred)
Diffstat (limited to 'Modules/md5module.c')
-rw-r--r-- | Modules/md5module.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/Modules/md5module.c b/Modules/md5module.c index 53f987a..545df2b 100644 --- a/Modules/md5module.c +++ b/Modules/md5module.c @@ -47,8 +47,7 @@ newmd5object() /* MD5 methods */ static void -md5_dealloc(md5p) - md5object *md5p; +md5_dealloc(md5object *md5p) { PyObject_Del(md5p); } @@ -57,9 +56,7 @@ md5_dealloc(md5p) /* MD5 methods-as-attributes */ static PyObject * -md5_update(self, args) - md5object *self; - PyObject *args; +md5_update(md5object *self, PyObject *args) { unsigned char *cp; int len; @@ -82,9 +79,7 @@ arguments."; static PyObject * -md5_digest(self, args) - md5object *self; - PyObject *args; +md5_digest(md5object *self, PyObject *args) { MD5_CTX mdContext; @@ -109,9 +104,7 @@ including null bytes."; static PyObject * -md5_copy(self, args) - md5object *self; - PyObject *args; +md5_copy(md5object *self, PyObject *args) { md5object *md5p; @@ -140,9 +133,7 @@ static PyMethodDef md5_methods[] = { }; static PyObject * -md5_getattr(self, name) - md5object *self; - char *name; +md5_getattr(md5object *self, char *name) { return Py_FindMethod(md5_methods, (PyObject *)self, name); } @@ -208,9 +199,7 @@ statichere PyTypeObject MD5type = { /* MD5 functions */ static PyObject * -MD5_new(self, args) - PyObject *self; - PyObject *args; +MD5_new(PyObject *self, PyObject *args) { md5object *md5p; unsigned char *cp = NULL; |