Skip to content

Commit b98dd2e

Browse files
committed
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.
1 parent 4043001 commit b98dd2e

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

PC/config.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ extern void initcmath(void);
1414
extern void initerrno(void);
1515
extern void initgc(void);
1616
extern void initmath(void);
17+
extern void init_md5(void);
1718
extern void initnt(void);
1819
extern void initoperator(void);
1920
extern void initsignal(void);
21+
extern void init_sha1(void);
2022
extern void init_sha256(void);
2123
extern void init_sha512(void);
2224
extern void inittime(void);
@@ -83,6 +85,8 @@ struct _inittab _PyImport_Inittab[] = {
8385
{"nt", initnt}, /* Use the NT os functions, not posix */
8486
{"operator", initoperator},
8587
{"signal", initsignal},
88+
{"_md5", init_md5},
89+
{"_sha1", init_sha1},
8690
{"_sha256", init_sha256},
8791
{"_sha512", init_sha512},
8892
{"time", inittime},

PCbuild/pythoncore.vcproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@
442442
<File
443443
RelativePath="..\Objects\bytes_methods.c">
444444
</File>
445-
<File
446-
RelativePath="..\Objects\bytesobject.c">
447-
</File>
445+
<File
446+
RelativePath="..\Objects\bytesobject.c">
447+
</File>
448448
<File
449449
RelativePath="..\Objects\cellobject.c">
450450
</File>
@@ -631,6 +631,9 @@
631631
<File
632632
RelativePath="..\Objects\methodobject.c">
633633
</File>
634+
<File
635+
RelativePath="..\Modules\md5module.c">
636+
</File>
634637
<File
635638
RelativePath="..\Modules\mmapmodule.c">
636639
</File>
@@ -715,6 +718,9 @@
715718
<File
716719
RelativePath="..\Objects\setobject.c">
717720
</File>
721+
<File
722+
RelativePath="..\Modules\sha1module.c">
723+
</File>
718724
<File
719725
RelativePath="..\Modules\sha256module.c">
720726
</File>

PCbuild8/pythoncore/pythoncore.vcproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@
787787
RelativePath="..\..\Objects\boolobject.c"
788788
>
789789
</File>
790+
<File
791+
RelativePath="..\..\Objects\bytes_methods.c"
792+
>
793+
</File>
790794
<File
791795
RelativePath="..\..\Objects\bytesobject.c"
792796
>
@@ -973,6 +977,14 @@
973977
RelativePath="..\..\Include\boolobject.h"
974978
>
975979
</File>
980+
<File
981+
RelativePath="..\..\Include\bytes_methods.h"
982+
>
983+
</File>
984+
<File
985+
RelativePath="..\..\Include\bytesobject.h"
986+
>
987+
</File>
976988
<File
977989
RelativePath="..\..\Include\cellobject.h"
978990
>
@@ -1489,6 +1501,10 @@
14891501
RelativePath="..\..\Modules\mathmodule.c"
14901502
>
14911503
</File>
1504+
<File
1505+
RelativePath="..\..\Modules\md5module.c"
1506+
>
1507+
</File>
14921508
<File
14931509
RelativePath="..\..\Modules\mmapmodule.c"
14941510
>
@@ -1513,6 +1529,10 @@
15131529
RelativePath="..\..\Modules\rotatingtree.h"
15141530
>
15151531
</File>
1532+
<File
1533+
RelativePath="..\..\Modules\sha1module.c"
1534+
>
1535+
</File>
15161536
<File
15171537
RelativePath="..\..\Modules\sha256module.c"
15181538
>

0 commit comments

Comments
 (0)