]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Efi/config.c
7ae26319bd09c40a24e649cc0160dee3fb273851
[mirror_edk2.git] / AppPkg / Applications / Python / Efi / config.c
1 /** @file
2 Python Module configuration.
3
4 Copyright (c) 2011-2012, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 **/
13
14 /* This file contains the table of built-in modules.
15 See init_builtin() in import.c. */
16
17 #include "Python.h"
18
19 extern void initarray(void);
20 extern void initbinascii(void);
21 extern void initcmath(void);
22 extern void initerrno(void);
23 extern void initfuture_builtins(void);
24 extern void initgc(void);
25 extern void initmath(void);
26 extern void init_md5(void);
27 extern void initedk2(void);
28 extern void initoperator(void);
29 extern void initsignal(void);
30 extern void init_sha(void);
31 extern void init_sha256(void);
32 extern void init_sha512(void);
33 extern void initstrop(void);
34 extern void inittime(void);
35 extern void initthread(void);
36 extern void initcStringIO(void);
37 extern void initcPickle(void);
38 extern void init_codecs(void);
39 extern void init_weakref(void);
40 extern void init_hotshot(void);
41 extern void initxxsubtype(void);
42 extern void initzipimport(void);
43 extern void init_random(void);
44 extern void inititertools(void);
45 extern void init_collections(void);
46 extern void init_heapq(void);
47 extern void init_bisect(void);
48 extern void init_symtable(void);
49 extern void initmmap(void);
50 extern void init_csv(void);
51 extern void init_sre(void);
52 extern void initparser(void);
53 extern void init_winreg(void);
54 extern void init_struct(void);
55 extern void initdatetime(void);
56 extern void init_functools(void);
57 extern void init_json(void);
58 extern void initzlib(void);
59
60 extern void init_multibytecodec(void);
61 extern void init_codecs_cn(void);
62 extern void init_codecs_hk(void);
63 extern void init_codecs_iso2022(void);
64 extern void init_codecs_jp(void);
65 extern void init_codecs_kr(void);
66 extern void init_codecs_tw(void);
67 extern void init_subprocess(void);
68 extern void init_lsprof(void);
69 extern void init_ast(void);
70 extern void init_io(void);
71 extern void _PyWarnings_Init(void);
72
73 extern void init_socket(void);
74 extern void initselect(void);
75
76 extern void PyMarshal_Init(void);
77 extern void initimp(void);
78 extern void initunicodedata(void);
79 extern void init_ctypes(void);
80
81 struct _inittab _PyImport_Inittab[] = {
82
83 //{"_ast", init_ast},
84 //{"_bisect", init_bisect}, /* A fast version of bisect.py */
85 //{"_csv", init_csv},
86 //{"_heapq", init_heapq}, /* A fast version of heapq.py */
87 //{"_io", init_io},
88 //{"_json", init_json},
89 //{"_md5", init_md5},
90 //{"_sha", init_sha},
91 //{"_sha256", init_sha256},
92 //{"_sha512", init_sha512},
93 //{"_socket", init_socket},
94 //{"_symtable", init_symtable},
95
96 //{"array", initarray},
97 //{"cmath", initcmath},
98 //{"cPickle", initcPickle},
99 //{"datetime", initdatetime},
100 //{"future_builtins", initfuture_builtins},
101 //{"parser", initparser},
102 //{"select", initselect},
103 //{"signal", initsignal},
104 //{"strop", initstrop}, /* redefines some string operations that are 100-1000 times faster */
105 //{"unicodedata", initunicodedata},
106 //{"xxsubtype", initxxsubtype},
107 //{"zipimport", initzipimport},
108 //{"zlib", initzlib},
109
110 /* CJK codecs */
111 //{"_multibytecodec", init_multibytecodec},
112 //{"_codecs_cn", init_codecs_cn},
113 //{"_codecs_hk", init_codecs_hk},
114 //{"_codecs_iso2022", init_codecs_iso2022},
115 //{"_codecs_jp", init_codecs_jp},
116 //{"_codecs_kr", init_codecs_kr},
117 //{"_codecs_tw", init_codecs_tw},
118
119 #ifdef WITH_THREAD
120 {"thread", initthread},
121 #endif
122
123 /* These modules are required for the full built-in help() facility provided by pydoc. */
124 {"_codecs", init_codecs},
125 {"_collections", init_collections},
126 {"_functools", init_functools},
127 {"_random", init_random},
128 {"_sre", init_sre},
129 {"_struct", init_struct}, /* Required by the logging package. */
130 {"_weakref", init_weakref},
131 {"binascii", initbinascii},
132 {"cStringIO", initcStringIO}, /* Required by several modules, such as logging. */
133 {"gc", initgc},
134 {"itertools", inititertools},
135 {"math", initmath},
136 {"operator", initoperator},
137 {"time", inittime},
138
139 /* These four modules should always be built in. */
140 {"edk2", initedk2},
141 {"errno", initerrno},
142 {"imp", initimp}, /* We get this for free from Python/import.c */
143 {"marshal", PyMarshal_Init}, /* We get this for free from Python/marshal.c */
144
145 /* These entries are here for sys.builtin_module_names */
146 {"__main__", NULL},
147 {"__builtin__", NULL},
148 {"sys", NULL},
149 {"exceptions", NULL},
150 {"_warnings", _PyWarnings_Init},
151
152 /* Sentinel */
153 {0, 0}
154 };