diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 +0000 |
| commit | 1117ad5b1849b0fe151357058bf6f240c120039a (patch) | |
| tree | 51e09bbb8f5a11454f6b00a9852194d1387da812 /Modules/shamodule.c | |
| parent | 81296767f2959685324436bfe756dd941428cb91 (diff) | |
| download | cpython-1117ad5b1849b0fe151357058bf6f240c120039a.tar.gz | |
Patch #568124: Add doc string macros.
Diffstat (limited to 'Modules/shamodule.c')
| -rw-r--r-- | Modules/shamodule.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Modules/shamodule.c b/Modules/shamodule.c index bb9d37a485..94b1eff484 100644 --- a/Modules/shamodule.c +++ b/Modules/shamodule.c @@ -350,8 +350,7 @@ SHA_dealloc(PyObject *ptr) /* External methods for a hashing object */ -static char SHA_copy__doc__[] = -"Return a copy of the hashing object."; +PyDoc_STRVAR(SHA_copy__doc__, "Return a copy of the hashing object."); static PyObject * SHA_copy(SHAobject *self, PyObject *args) @@ -368,8 +367,8 @@ SHA_copy(SHAobject *self, PyObject *args) return (PyObject *)newobj; } -static char SHA_digest__doc__[] = -"Return the digest value as a string of binary data."; +PyDoc_STRVAR(SHA_digest__doc__, +"Return the digest value as a string of binary data."); static PyObject * SHA_digest(SHAobject *self, PyObject *args) @@ -385,8 +384,8 @@ SHA_digest(SHAobject *self, PyObject *args) return PyString_FromStringAndSize((const char *)digest, sizeof(digest)); } -static char SHA_hexdigest__doc__[] = -"Return the digest value as a string of hexadecimal digits."; +PyDoc_STRVAR(SHA_hexdigest__doc__, +"Return the digest value as a string of hexadecimal digits."); static PyObject * SHA_hexdigest(SHAobject *self, PyObject *args) @@ -427,8 +426,8 @@ SHA_hexdigest(SHAobject *self, PyObject *args) return retval; } -static char SHA_update__doc__[] = -"Update this hashing object's state with the provided string."; +PyDoc_STRVAR(SHA_update__doc__, +"Update this hashing object's state with the provided string."); static PyObject * SHA_update(SHAobject *self, PyObject *args) @@ -479,10 +478,10 @@ static PyTypeObject SHAtype = { /* The single module-level function: new() */ -static char SHA_new__doc__[] = - "Return a new SHA hashing object. An optional string " - "argument may be provided; if present, this string will be " - " automatically hashed."; +PyDoc_STRVAR(SHA_new__doc__, +"Return a new SHA hashing object. An optional string argument\n\ +may be provided; if present, this string will be automatically\n\ +hashed."); static PyObject * SHA_new(PyObject *self, PyObject *args, PyObject *kwdict) |
