]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Efi/config.c
60df9b4dc30a5bbc4c31bc476507791e24e77070
[mirror_edk2.git] / AppPkg / Applications / Python / Efi / config.c
1 /** @file
2 Python Module configuration.
3
4 Copyright (c) 2011, 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 #ifndef MS_WINI64
21 extern void initaudioop(void);
22 #endif
23 extern void initbinascii(void);
24 extern void initcmath(void);
25 extern void initerrno(void);
26 extern void initfuture_builtins(void);
27 extern void initgc(void);
28 #ifndef MS_WINI64
29 extern void initimageop(void);
30 #endif
31 extern void initmath(void);
32 extern void init_md5(void);
33 extern void initedk2(void);
34 extern void initoperator(void);
35 extern void initsignal(void);
36 extern void init_sha(void);
37 extern void init_sha256(void);
38 extern void init_sha512(void);
39 extern void initstrop(void);
40 extern void inittime(void);
41 extern void initthread(void);
42 extern void initcStringIO(void);
43 extern void initcPickle(void);
44 #ifdef WIN32
45 extern void initmsvcrt(void);
46 extern void init_locale(void);
47 #endif
48 extern void init_codecs(void);
49 extern void init_weakref(void);
50 extern void init_hotshot(void);
51 extern void initxxsubtype(void);
52 extern void initzipimport(void);
53 extern void init_random(void);
54 extern void inititertools(void);
55 extern void init_collections(void);
56 extern void init_heapq(void);
57 extern void init_bisect(void);
58 extern void init_symtable(void);
59 extern void initmmap(void);
60 extern void init_csv(void);
61 extern void init_sre(void);
62 extern void initparser(void);
63 extern void init_winreg(void);
64 extern void init_struct(void);
65 extern void initdatetime(void);
66 extern void init_functools(void);
67 extern void init_json(void);
68 extern void initzlib(void);
69
70 extern void init_multibytecodec(void);
71 extern void init_codecs_cn(void);
72 extern void init_codecs_hk(void);
73 extern void init_codecs_iso2022(void);
74 extern void init_codecs_jp(void);
75 extern void init_codecs_kr(void);
76 extern void init_codecs_tw(void);
77 extern void init_subprocess(void);
78 extern void init_lsprof(void);
79 extern void init_ast(void);
80 extern void init_io(void);
81 extern void _PyWarnings_Init(void);
82
83 extern void init_socket(void);
84 extern void initselect(void);
85
86 /* tools/freeze/makeconfig.py marker for additional "extern" */
87 /* -- ADDMODULE MARKER 1 -- */
88
89 extern void PyMarshal_Init(void);
90 extern void initimp(void);
91
92 struct _inittab _PyImport_Inittab[] = {
93
94 {"array", initarray},
95 {"_ast", init_ast},
96 {"binascii", initbinascii},
97 {"errno", initerrno},
98 {"future_builtins", initfuture_builtins},
99 {"gc", initgc},
100 {"signal", initsignal},
101 {"edk2", initedk2},
102 {"operator", initoperator},
103 {"_weakref", init_weakref},
104 {"math", initmath},
105 {"time", inittime},
106 {"datetime", initdatetime},
107 {"cStringIO", initcStringIO},
108 {"_codecs", init_codecs},
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 {"_bisect", init_bisect},
120 {"_md5", init_md5},
121 {"_sha", init_sha},
122 {"_sha256", init_sha256},
123 {"_sha512", init_sha512},
124 {"_random", init_random},
125 {"_heapq", init_heapq},
126 {"itertools", inititertools},
127 {"_collections", init_collections},
128 {"_sre", init_sre},
129 {"parser", initparser},
130 {"_struct", init_struct},
131 {"cPickle", initcPickle},
132
133 {"strop", initstrop},
134 {"_functools", init_functools},
135 {"cmath", initcmath},
136 {"_json", init_json},
137
138 {"_socket", init_socket},
139 {"select", initselect},
140
141 {"xxsubtype", initxxsubtype},
142
143 #if 0
144 #ifndef MS_WINI64
145 {"imageop", initimageop},
146 #endif
147 #ifdef WITH_THREAD
148 {"thread", initthread},
149 #endif
150 #ifdef WIN32
151 {"msvcrt", initmsvcrt},
152 {"_locale", init_locale},
153 #endif
154 /* XXX Should _subprocess go in a WIN32 block? not WIN64? */
155 //{"_subprocess", init_subprocess},
156
157 //{"_hotshot", init_hotshot},
158 //{"_lsprof", init_lsprof},
159 //{"mmap", initmmap},
160 //{"_winreg", init_winreg},
161 {"_symtable", init_symtable},
162 {"_csv", init_csv},
163 {"zipimport", initzipimport},
164 {"zlib", initzlib},
165 #endif
166
167 /* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
168 /* -- ADDMODULE MARKER 2 -- */
169
170 /* This module "lives in" with marshal.c */
171 {"marshal", PyMarshal_Init},
172
173 /* This lives in with import.c */
174 {"imp", initimp},
175
176 /* These entries are here for sys.builtin_module_names */
177 {"__main__", NULL},
178 {"__builtin__", NULL},
179 {"sys", NULL},
180 {"exceptions", NULL},
181 {"_warnings", _PyWarnings_Init},
182
183 {"_io", init_io},
184
185 /* Sentinel */
186 {0, 0}
187 };