Home | History | Annotate | Download | only in PC
      1 /* Module configuration */
      2 
      3 /* This file contains the table of built-in modules.
      4    See create_builtin() in import.c. */
      5 
      6 #include "Python.h"
      7 
      8 extern PyObject* PyInit_array(void);
      9 #ifndef MS_WINI64
     10 extern PyObject* PyInit_audioop(void);
     11 #endif
     12 extern PyObject* PyInit_binascii(void);
     13 extern PyObject* PyInit_cmath(void);
     14 extern PyObject* PyInit_errno(void);
     15 extern PyObject* PyInit_faulthandler(void);
     16 extern PyObject* PyInit__tracemalloc(void);
     17 extern PyObject* PyInit_gc(void);
     18 extern PyObject* PyInit_math(void);
     19 extern PyObject* PyInit__md5(void);
     20 extern PyObject* PyInit_nt(void);
     21 extern PyObject* PyInit__operator(void);
     22 extern PyObject* PyInit__signal(void);
     23 extern PyObject* PyInit__sha1(void);
     24 extern PyObject* PyInit__sha256(void);
     25 extern PyObject* PyInit__sha512(void);
     26 extern PyObject* PyInit__sha3(void);
     27 extern PyObject* PyInit__blake2(void);
     28 extern PyObject* PyInit_time(void);
     29 extern PyObject* PyInit__thread(void);
     30 #ifdef WIN32
     31 extern PyObject* PyInit_msvcrt(void);
     32 extern PyObject* PyInit__locale(void);
     33 #endif
     34 extern PyObject* PyInit__codecs(void);
     35 extern PyObject* PyInit__weakref(void);
     36 extern PyObject* PyInit_xxsubtype(void);
     37 extern PyObject* PyInit_zipimport(void);
     38 extern PyObject* PyInit__random(void);
     39 extern PyObject* PyInit_itertools(void);
     40 extern PyObject* PyInit__collections(void);
     41 extern PyObject* PyInit__heapq(void);
     42 extern PyObject* PyInit__bisect(void);
     43 extern PyObject* PyInit__symtable(void);
     44 extern PyObject* PyInit_mmap(void);
     45 extern PyObject* PyInit__csv(void);
     46 extern PyObject* PyInit__sre(void);
     47 extern PyObject* PyInit_parser(void);
     48 extern PyObject* PyInit_winreg(void);
     49 extern PyObject* PyInit__struct(void);
     50 extern PyObject* PyInit__datetime(void);
     51 extern PyObject* PyInit__functools(void);
     52 extern PyObject* PyInit__json(void);
     53 extern PyObject* PyInit_zlib(void);
     54 
     55 extern PyObject* PyInit__multibytecodec(void);
     56 extern PyObject* PyInit__codecs_cn(void);
     57 extern PyObject* PyInit__codecs_hk(void);
     58 extern PyObject* PyInit__codecs_iso2022(void);
     59 extern PyObject* PyInit__codecs_jp(void);
     60 extern PyObject* PyInit__codecs_kr(void);
     61 extern PyObject* PyInit__codecs_tw(void);
     62 extern PyObject* PyInit__winapi(void);
     63 extern PyObject* PyInit__lsprof(void);
     64 extern PyObject* PyInit__ast(void);
     65 extern PyObject* PyInit__io(void);
     66 extern PyObject* PyInit__pickle(void);
     67 extern PyObject* PyInit_atexit(void);
     68 extern PyObject* _PyWarnings_Init(void);
     69 extern PyObject* PyInit__string(void);
     70 extern PyObject* PyInit__stat(void);
     71 extern PyObject* PyInit__opcode(void);
     72 
     73 /* tools/freeze/makeconfig.py marker for additional "extern" */
     74 /* -- ADDMODULE MARKER 1 -- */
     75 
     76 extern PyObject* PyMarshal_Init(void);
     77 extern PyObject* PyInit_imp(void);
     78 
     79 struct _inittab _PyImport_Inittab[] = {
     80 
     81     {"array", PyInit_array},
     82     {"_ast", PyInit__ast},
     83 #ifdef MS_WINDOWS
     84 #ifndef MS_WINI64
     85     {"audioop", PyInit_audioop},
     86 #endif
     87 #endif
     88     {"binascii", PyInit_binascii},
     89     {"cmath", PyInit_cmath},
     90     {"errno", PyInit_errno},
     91     {"faulthandler", PyInit_faulthandler},
     92     {"gc", PyInit_gc},
     93     {"math", PyInit_math},
     94     {"nt", PyInit_nt}, /* Use the NT os functions, not posix */
     95     {"_operator", PyInit__operator},
     96     {"_signal", PyInit__signal},
     97     {"_md5", PyInit__md5},
     98     {"_sha1", PyInit__sha1},
     99     {"_sha256", PyInit__sha256},
    100     {"_sha512", PyInit__sha512},
    101     {"_sha3", PyInit__sha3},
    102     {"_blake2", PyInit__blake2},
    103     {"time", PyInit_time},
    104 #ifdef WITH_THREAD
    105     {"_thread", PyInit__thread},
    106 #endif
    107 #ifdef WIN32
    108     {"msvcrt", PyInit_msvcrt},
    109     {"_locale", PyInit__locale},
    110 #endif
    111     {"_tracemalloc", PyInit__tracemalloc},
    112     /* XXX Should _winapi go in a WIN32 block?  not WIN64? */
    113     {"_winapi", PyInit__winapi},
    114 
    115     {"_codecs", PyInit__codecs},
    116     {"_weakref", PyInit__weakref},
    117     {"_random", PyInit__random},
    118     {"_bisect", PyInit__bisect},
    119     {"_heapq", PyInit__heapq},
    120     {"_lsprof", PyInit__lsprof},
    121     {"itertools", PyInit_itertools},
    122     {"_collections", PyInit__collections},
    123     {"_symtable", PyInit__symtable},
    124     {"mmap", PyInit_mmap},
    125     {"_csv", PyInit__csv},
    126     {"_sre", PyInit__sre},
    127     {"parser", PyInit_parser},
    128     {"winreg", PyInit_winreg},
    129     {"_struct", PyInit__struct},
    130     {"_datetime", PyInit__datetime},
    131     {"_functools", PyInit__functools},
    132     {"_json", PyInit__json},
    133 
    134     {"xxsubtype", PyInit_xxsubtype},
    135     {"zipimport", PyInit_zipimport},
    136     {"zlib", PyInit_zlib},
    137 
    138     /* CJK codecs */
    139     {"_multibytecodec", PyInit__multibytecodec},
    140     {"_codecs_cn", PyInit__codecs_cn},
    141     {"_codecs_hk", PyInit__codecs_hk},
    142     {"_codecs_iso2022", PyInit__codecs_iso2022},
    143     {"_codecs_jp", PyInit__codecs_jp},
    144     {"_codecs_kr", PyInit__codecs_kr},
    145     {"_codecs_tw", PyInit__codecs_tw},
    146 
    147 /* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
    148 /* -- ADDMODULE MARKER 2 -- */
    149 
    150     /* This module "lives in" with marshal.c */
    151     {"marshal", PyMarshal_Init},
    152 
    153     /* This lives it with import.c */
    154     {"_imp", PyInit_imp},
    155 
    156     /* These entries are here for sys.builtin_module_names */
    157     {"builtins", NULL},
    158     {"sys", NULL},
    159     {"_warnings", _PyWarnings_Init},
    160     {"_string", PyInit__string},
    161 
    162     {"_io", PyInit__io},
    163     {"_pickle", PyInit__pickle},
    164     {"atexit", PyInit_atexit},
    165     {"_stat", PyInit__stat},
    166     {"_opcode", PyInit__opcode},
    167 
    168     /* Sentinel */
    169     {0, 0}
    170 };
    171