diff options
Diffstat (limited to 'AppPkg/Applications/Python/Efi/config.c')
-rw-r--r-- | AppPkg/Applications/Python/Efi/config.c | 100 |
1 files changed, 49 insertions, 51 deletions
diff --git a/AppPkg/Applications/Python/Efi/config.c b/AppPkg/Applications/Python/Efi/config.c index 98e7e2a31e..60df9b4dc3 100644 --- a/AppPkg/Applications/Python/Efi/config.c +++ b/AppPkg/Applications/Python/Efi/config.c @@ -30,7 +30,7 @@ extern void initimageop(void); #endif
extern void initmath(void);
extern void init_md5(void);
-extern void initnt(void);
+extern void initedk2(void);
extern void initoperator(void);
extern void initsignal(void);
extern void init_sha(void);
@@ -80,6 +80,9 @@ extern void init_ast(void); extern void init_io(void);
extern void _PyWarnings_Init(void);
+extern void init_socket(void);
+extern void initselect(void);
+
/* tools/freeze/makeconfig.py marker for additional "extern" */
/* -- ADDMODULE MARKER 1 -- */
@@ -90,37 +93,60 @@ struct _inittab _PyImport_Inittab[] = { {"array", initarray},
{"_ast", init_ast},
-#ifdef MS_WINDOWS
-#ifndef MS_WINI64
- {"audioop", initaudioop},
-#endif
-#endif
{"binascii", initbinascii},
- //{"cmath", initcmath},
{"errno", initerrno},
-
+ {"future_builtins", initfuture_builtins},
{"gc", initgc},
{"signal", initsignal},
-
-#if 0
- {"future_builtins", initfuture_builtins},
-#ifndef MS_WINI64
- {"imageop", initimageop},
-#endif
+ {"edk2", initedk2},
+ {"operator", initoperator},
+ {"_weakref", init_weakref},
{"math", initmath},
+ {"time", inittime},
+ {"datetime", initdatetime},
+ {"cStringIO", initcStringIO},
+ {"_codecs", init_codecs},
+
+ /* CJK codecs */
+ {"_multibytecodec", init_multibytecodec},
+ {"_codecs_cn", init_codecs_cn},
+ {"_codecs_hk", init_codecs_hk},
+ {"_codecs_iso2022", init_codecs_iso2022},
+ {"_codecs_jp", init_codecs_jp},
+ {"_codecs_kr", init_codecs_kr},
+ {"_codecs_tw", init_codecs_tw},
+
+ {"_bisect", init_bisect},
{"_md5", init_md5},
- //{"nt", initnt}, /* Use the NT os functions, not posix */
- {"operator", initoperator},
{"_sha", init_sha},
{"_sha256", init_sha256},
{"_sha512", init_sha512},
+ {"_random", init_random},
+ {"_heapq", init_heapq},
+ {"itertools", inititertools},
+ {"_collections", init_collections},
+ {"_sre", init_sre},
+ {"parser", initparser},
+ {"_struct", init_struct},
+ {"cPickle", initcPickle},
+
{"strop", initstrop},
- {"time", inittime},
+ {"_functools", init_functools},
+ {"cmath", initcmath},
+ {"_json", init_json},
+
+ {"_socket", init_socket},
+ {"select", initselect},
+
+ {"xxsubtype", initxxsubtype},
+
+#if 0
+#ifndef MS_WINI64
+ {"imageop", initimageop},
+#endif
#ifdef WITH_THREAD
{"thread", initthread},
#endif
- {"cStringIO", initcStringIO},
- {"cPickle", initcPickle},
#ifdef WIN32
{"msvcrt", initmsvcrt},
{"_locale", init_locale},
@@ -128,42 +154,14 @@ struct _inittab _PyImport_Inittab[] = { /* XXX Should _subprocess go in a WIN32 block? not WIN64? */
//{"_subprocess", init_subprocess},
- {"_codecs", init_codecs},
- //{"_weakref", init_weakref},
//{"_hotshot", init_hotshot},
- {"_random", init_random},
- {"_bisect", init_bisect},
- {"_heapq", init_heapq},
//{"_lsprof", init_lsprof},
- {"itertools", inititertools},
- {"_collections", init_collections},
- {"_symtable", init_symtable},
//{"mmap", initmmap},
- {"_csv", init_csv},
- {"_sre", init_sre},
-#endif
-
- {"parser", initparser},
-
-#if 0
//{"_winreg", init_winreg},
- {"_struct", init_struct},
- {"datetime", initdatetime},
- {"_functools", init_functools},
- {"_json", init_json},
-
- {"xxsubtype", initxxsubtype},
- //{"zipimport", initzipimport},
- //{"zlib", initzlib},
-
- /* CJK codecs */
- {"_multibytecodec", init_multibytecodec},
- {"_codecs_cn", init_codecs_cn},
- {"_codecs_hk", init_codecs_hk},
- {"_codecs_iso2022", init_codecs_iso2022},
- {"_codecs_jp", init_codecs_jp},
- {"_codecs_kr", init_codecs_kr},
- {"_codecs_tw", init_codecs_tw},
+ {"_symtable", init_symtable},
+ {"_csv", init_csv},
+ {"zipimport", initzipimport},
+ {"zlib", initzlib},
#endif
/* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
|