summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-22 22:18:51 (GMT)
committerGuido van Rossum <guido@python.org>2007-10-22 22:18:51 (GMT)
commitb98dd2e5d2133b1c8cebd1dd221cf69eefeb154f (patch)
treec62cf3d069b86746a33b07add05d46f3ae517037
parent4043001f5d84d4919781e34221449047d0690ac8 (diff)
downloadcpython-b98dd2e5d2133b1c8cebd1dd221cf69eefeb154f.zip
cpython-b98dd2e5d2133b1c8cebd1dd221cf69eefeb154f.tar.gz
cpython-b98dd2e5d2133b1c8cebd1dd221cf69eefeb154f.tar.bz2
Patch 1304, by Amaury Forgeot d'Arc.
Add md5module.c and sha1module.c to the project files, and in some cases bytes_methods.c and related .h files.
-rw-r--r--PC/config.c4
-rw-r--r--PCbuild/pythoncore.vcproj12
-rw-r--r--PCbuild8/pythoncore/pythoncore.vcproj20
3 files changed, 33 insertions, 3 deletions
diff --git a/PC/config.c b/PC/config.c
index c74b2e4..63ff2c0 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -14,9 +14,11 @@ extern void initcmath(void);
extern void initerrno(void);
extern void initgc(void);
extern void initmath(void);
+extern void init_md5(void);
extern void initnt(void);
extern void initoperator(void);
extern void initsignal(void);
+extern void init_sha1(void);
extern void init_sha256(void);
extern void init_sha512(void);
extern void inittime(void);
@@ -83,6 +85,8 @@ struct _inittab _PyImport_Inittab[] = {
{"nt", initnt}, /* Use the NT os functions, not posix */
{"operator", initoperator},
{"signal", initsignal},
+ {"_md5", init_md5},
+ {"_sha1", init_sha1},
{"_sha256", init_sha256},
{"_sha512", init_sha512},
{"time", inittime},
diff --git a/PCbuild/pythoncore.vcproj b/PCbuild/pythoncore.vcproj
index 063c0ce..19cd833 100644
--- a/PCbuild/pythoncore.vcproj
+++ b/PCbuild/pythoncore.vcproj
@@ -442,9 +442,9 @@
<File
RelativePath="..\Objects\bytes_methods.c">
</File>
- <File
- RelativePath="..\Objects\bytesobject.c">
- </File>
+ <File
+ RelativePath="..\Objects\bytesobject.c">
+ </File>
<File
RelativePath="..\Objects\cellobject.c">
</File>
@@ -632,6 +632,9 @@
RelativePath="..\Objects\methodobject.c">
</File>
<File
+ RelativePath="..\Modules\md5module.c">
+ </File>
+ <File
RelativePath="..\Modules\mmapmodule.c">
</File>
<File
@@ -716,6 +719,9 @@
RelativePath="..\Objects\setobject.c">
</File>
<File
+ RelativePath="..\Modules\sha1module.c">
+ </File>
+ <File
RelativePath="..\Modules\sha256module.c">
</File>
<File
diff --git a/PCbuild8/pythoncore/pythoncore.vcproj b/PCbuild8/pythoncore/pythoncore.vcproj
index f11f57e..7e36945 100644
--- a/PCbuild8/pythoncore/pythoncore.vcproj
+++ b/PCbuild8/pythoncore/pythoncore.vcproj
@@ -788,6 +788,10 @@
>
</File>
<File
+ RelativePath="..\..\Objects\bytes_methods.c"
+ >
+ </File>
+ <File
RelativePath="..\..\Objects\bytesobject.c"
>
</File>
@@ -974,6 +978,14 @@
>
</File>
<File
+ RelativePath="..\..\Include\bytes_methods.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\Include\bytesobject.h"
+ >
+ </File>
+ <File
RelativePath="..\..\Include\cellobject.h"
>
</File>
@@ -1490,6 +1502,10 @@
>
</File>
<File
+ RelativePath="..\..\Modules\md5module.c"
+ >
+ </File>
+ <File
RelativePath="..\..\Modules\mmapmodule.c"
>
</File>
@@ -1514,6 +1530,10 @@
>
</File>
<File
+ RelativePath="..\..\Modules\sha1module.c"
+ >
+ </File>
+ <File
RelativePath="..\..\Modules\sha256module.c"
>
</File>