diff options
author | akuchling <akuchling@rivest.dlitz.net> | 2002-04-03 18:42:53 -0700 |
---|---|---|
committer | akuchling <akuchling@rivest.dlitz.net> | 2002-04-03 18:42:53 -0700 |
commit | 49dd04e92acdf121419c0f69773bb98f37e3540b (patch) | |
tree | 0c6c2e0b00a9d975f4c578472ec2c2c08a7f60a4 /src/hash_template.c | |
parent | 2db250698cb241e6eabff63fcb24748934715dbf (diff) | |
download | pycrypto-49dd04e92acdf121419c0f69773bb98f37e3540b.tar.gz |
[project @ akuchling-20020404014253-9c6258770f7878c8]
[project @ 2002-04-03 17:42:53 by akuchling]
Remove cruft
Diffstat (limited to 'src/hash_template.c')
-rw-r--r-- | src/hash_template.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/hash_template.c b/src/hash_template.c index 875e659..e933925 100644 --- a/src/hash_template.c +++ b/src/hash_template.c @@ -18,34 +18,6 @@ #include <string.h> #endif -/*#include "modsupport.h"*/ - -/* Endianness testing and definitions */ -#define TestEndianness(variable) {int i=1; variable=PCT_BIG_ENDIAN;\ - if (*((char*)&i)==1) variable=PCT_LITTLE_ENDIAN;} - -#define PCT_LITTLE_ENDIAN 1 -#define PCT_BIG_ENDIAN 0 - -/* This is where the actual code for the hash function will go */ - -#define PCTObject_HEAD PyObject_HEAD -#define PCT_Str(x) #x -/* GetKeywordArg has been abandoned for PyArg_ParseTupleAndKeywords */ -#define GetKeywordArg(name, default) {\ - PyObject *arg; \ - if (kwdict==NULL || \ - (( arg=PyDict_GetItemString(kwdict, PCT_Str(name)))==NULL )) {new->name = default;} else { \ - if (!PyInt_Check(arg)) \ - { \ - PyErr_SetString(PyExc_TypeError, "Keyword argument must have integer value"); \ - Py_DECREF(new); \ - return NULL; \ - } \ - new->name = PyInt_AsLong(arg); \ - } \ - } - typedef struct { PyObject_HEAD hash_state st; |