summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralsaan <alsaan@gmail.com>2011-11-29 09:59:28 +0100
committeralsaan <alsaan@gmail.com>2011-11-29 09:59:28 +0100
commitded6dede628117d2c14524b01ad3436045f4cb13 (patch)
treed83efe9d877e1df7ebeeb2d1c7fd3c87cdd1c663
parent3b5e3e152a24c1a184cdb94023e37cbcbe5c7da4 (diff)
downloadpycrypto-ded6dede628117d2c14524b01ad3436045f4cb13.tar.gz
Fixed compilation error in MSVC.
-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)