+++ /dev/null
-/** @file\r
- Python Module configuration.\r
-\r
- Copyright (c) 2011-2012, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are licensed and made available under\r
- the terms and conditions of the BSD License that accompanies this distribution.\r
- The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-**/\r
-\r
-/* This file contains the table of built-in modules.\r
- See init_builtin() in import.c. */\r
-\r
-#include "Python.h"\r
-\r
-extern void initarray(void);\r
-extern void init_ast(void);\r
-extern void initbinascii(void);\r
-extern void init_bisect(void);\r
-extern void initcmath(void);\r
-extern void init_codecs(void);\r
-extern void init_collections(void);\r
-extern void initcPickle(void);\r
-extern void initcStringIO(void);\r
-extern void init_csv(void);\r
-extern void init_ctypes(void);\r
-extern void initdatetime(void);\r
-extern void initedk2(void);\r
-extern void initerrno(void);\r
-extern void init_functools(void);\r
-extern void initfuture_builtins(void);\r
-extern void initgc(void);\r
-extern void init_heapq(void);\r
-extern void init_hotshot(void);\r
-extern void initimp(void);\r
-extern void init_io(void);\r
-extern void inititertools(void);\r
-extern void init_json(void);\r
-extern void init_lsprof(void);\r
-extern void initmath(void);\r
-extern void init_md5(void);\r
-extern void initmmap(void);\r
-extern void initoperator(void);\r
-extern void initparser(void);\r
-extern void initpyexpat(void);\r
-extern void init_random(void);\r
-extern void initselect(void);\r
-extern void init_sha(void);\r
-extern void init_sha256(void);\r
-extern void init_sha512(void);\r
-extern void initsignal(void);\r
-extern void init_socket(void);\r
-extern void init_sre(void);\r
-extern void initstrop(void);\r
-extern void init_struct(void);\r
-extern void init_subprocess(void);\r
-extern void init_symtable(void);\r
-extern void initthread(void);\r
-extern void inittime(void);\r
-extern void initunicodedata(void);\r
-extern void init_weakref(void);\r
-extern void init_winreg(void);\r
-extern void initxxsubtype(void);\r
-extern void initzipimport(void);\r
-extern void initzlib(void);\r
-\r
-extern void PyMarshal_Init(void);\r
-extern void _PyWarnings_Init(void);\r
-\r
-extern void init_multibytecodec(void);\r
-extern void init_codecs_cn(void);\r
-extern void init_codecs_hk(void);\r
-extern void init_codecs_iso2022(void);\r
-extern void init_codecs_jp(void);\r
-extern void init_codecs_kr(void);\r
-extern void init_codecs_tw(void);\r
-\r
-struct _inittab _PyImport_Inittab[] = {\r
-\r
- //{"_ast", init_ast},\r
- //{"_bisect", init_bisect}, /* A fast version of bisect.py */\r
- //{"_csv", init_csv},\r
- //{"_heapq", init_heapq}, /* A fast version of heapq.py */\r
- //{"_io", init_io},\r
- //{"_json", init_json},\r
- //{"_md5", init_md5},\r
- //{"_sha", init_sha},\r
- //{"_sha256", init_sha256},\r
- //{"_sha512", init_sha512},\r
- //{"_socket", init_socket},\r
- //{"_symtable", init_symtable},\r
-\r
- //{"array", initarray},\r
- //{"cmath", initcmath},\r
- //{"cPickle", initcPickle},\r
- //{"datetime", initdatetime},\r
- //{"future_builtins", initfuture_builtins},\r
- //{"parser", initparser},\r
- //{"pyexpat", initpyexpat},\r
- //{"select", initselect},\r
- //{"signal", initsignal},\r
- //{"strop", initstrop}, /* redefines some string operations that are 100-1000 times faster */\r
- //{"unicodedata", initunicodedata},\r
- //{"xxsubtype", initxxsubtype},\r
- //{"zipimport", initzipimport},\r
- //{"zlib", initzlib},\r
-\r
- /* CJK codecs */\r
- //{"_multibytecodec", init_multibytecodec},\r
- //{"_codecs_cn", init_codecs_cn},\r
- //{"_codecs_hk", init_codecs_hk},\r
- //{"_codecs_iso2022", init_codecs_iso2022},\r
- //{"_codecs_jp", init_codecs_jp},\r
- //{"_codecs_kr", init_codecs_kr},\r
- //{"_codecs_tw", init_codecs_tw},\r
-\r
-#ifdef WITH_THREAD\r
- {"thread", initthread},\r
-#endif\r
-\r
- /* These modules are required for the full built-in help() facility provided by pydoc. */\r
- {"_codecs", init_codecs},\r
- {"_collections", init_collections},\r
- {"_functools", init_functools},\r
- {"_random", init_random},\r
- {"_sre", init_sre},\r
- {"_struct", init_struct}, /* Required by the logging package. */\r
- {"_weakref", init_weakref},\r
- {"binascii", initbinascii},\r
- {"cStringIO", initcStringIO}, /* Required by several modules, such as logging. */\r
- {"gc", initgc},\r
- {"itertools", inititertools},\r
- {"math", initmath},\r
- {"operator", initoperator},\r
- {"time", inittime},\r
-\r
- /* These four modules should always be built in. */\r
- {"edk2", initedk2},\r
- {"errno", initerrno},\r
- {"imp", initimp}, /* We get this for free from Python/import.c */\r
- {"marshal", PyMarshal_Init}, /* We get this for free from Python/marshal.c */\r
-\r
- /* These entries are here for sys.builtin_module_names */\r
- {"__main__", NULL},\r
- {"__builtin__", NULL},\r
- {"sys", NULL},\r
- {"exceptions", NULL},\r
- {"_warnings", _PyWarnings_Init},\r
-\r
- /* Sentinel */\r
- {0, 0}\r
-};\r