summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLegrandin <e.bened@gmail.com>2011-12-17 20:37:52 -0800
committerLegrandin <e.bened@gmail.com>2011-12-17 20:37:52 -0800
commitdb6f4555e60b48a3b9ffa232061d460c3c18a06f (patch)
treed83efe9d877e1df7ebeeb2d1c7fd3c87cdd1c663
parent3b5e3e152a24c1a184cdb94023e37cbcbe5c7da4 (diff)
parentded6dede628117d2c14524b01ad3436045f4cb13 (diff)
downloadpycrypto-db6f4555e60b48a3b9ffa232061d460c3c18a06f.tar.gz
Merge pull request #1 from alsaan/master
MSVC Fix
-rw-r--r--src/hash_template.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/hash_template.c b/src/hash_template.c
index 0f71c3e..eb27e9f 100644
--- a/src/hash_template.c
+++ b/src/hash_template.c
@@ -179,7 +179,12 @@ ALG_update(ALGobject *self, PyObject *args)
}
/** Forward declaration for this module's new() method **/
-static char ALG_new__doc__[];
+static char ALG_new__doc__[] =
+"new([string]): Return a new " _MODULE_STRING
+" hashing object. An optional string "
+"argument may be provided; if present, this string will be "
+"automatically hashed into the initial state of the object.";
+
static PyObject *ALG_new(PyObject*, PyObject*);
static PyMethodDef ALG_methods[] = {
@@ -262,12 +267,6 @@ static PyTypeObject ALGtype = {
/* The single module-level function: new() */
-static char ALG_new__doc__[] =
-"new([string]): Return a new " _MODULE_STRING
-" hashing object. An optional string "
-"argument may be provided; if present, this string will be "
-"automatically hashed into the initial state of the object.";
-
/** This method belong to both the module and the hash object **/
static PyObject *
ALG_new(PyObject *self, PyObject *args)