symbian-qemu-0.9.1-12/python-2.6.1/PC/os2emx/config.c
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 /* -*- C -*- ***********************************************
       
     2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
       
     3 The Netherlands.
       
     4 
       
     5                         All Rights Reserved
       
     6 
       
     7 Permission to use, copy, modify, and distribute this software and its
       
     8 documentation for any purpose and without fee is hereby granted,
       
     9 provided that the above copyright notice appear in all copies and that
       
    10 both that copyright notice and this permission notice appear in
       
    11 supporting documentation, and that the names of Stichting Mathematisch
       
    12 Centrum or CWI or Corporation for National Research Initiatives or
       
    13 CNRI not be used in advertising or publicity pertaining to
       
    14 distribution of the software without specific, written prior
       
    15 permission.
       
    16 
       
    17 While CWI is the initial source for this software, a modified version
       
    18 is made available by the Corporation for National Research Initiatives
       
    19 (CNRI) at the Internet address ftp://ftp.python.org.
       
    20 
       
    21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
       
    22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
       
    23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
       
    24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
       
    25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
       
    26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
       
    27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    28 PERFORMANCE OF THIS SOFTWARE.
       
    29 
       
    30 ******************************************************************/
       
    31 
       
    32 /* Module configuration */
       
    33 
       
    34 /* This file contains the table of built-in modules.
       
    35    See init_builtin() in import.c. */
       
    36 
       
    37 #include "Python.h"
       
    38 
       
    39 extern void initos2();
       
    40 extern void initsignal();
       
    41 #ifdef WITH_THREAD
       
    42 extern void initthread();
       
    43 #endif
       
    44 extern void init_codecs();
       
    45 extern void init_csv();
       
    46 extern void init_locale();
       
    47 extern void init_random();
       
    48 extern void init_sre();
       
    49 extern void init_symtable();
       
    50 extern void init_weakref();
       
    51 extern void initarray();
       
    52 extern void initbinascii();
       
    53 extern void initcPickle();
       
    54 extern void initcStringIO();
       
    55 extern void init_collections();
       
    56 extern void initcmath();
       
    57 extern void initdatetime();
       
    58 extern void initdl();
       
    59 extern void initerrno();
       
    60 extern void initfcntl();
       
    61 extern void init_fileio();
       
    62 extern void init_functools();
       
    63 extern void init_heapq();
       
    64 extern void initimageop();
       
    65 extern void inititertools();
       
    66 extern void initmath();
       
    67 extern void init_md5();
       
    68 extern void initoperator();
       
    69 extern void init_sha();
       
    70 extern void init_sha256();
       
    71 extern void init_sha512();
       
    72 extern void initstrop();
       
    73 extern void init_struct();
       
    74 extern void inittermios();
       
    75 extern void inittime();
       
    76 extern void inittiming();
       
    77 extern void initxxsubtype();
       
    78 extern void initzipimport();
       
    79 #if !HAVE_DYNAMIC_LOADING
       
    80 extern void init_curses();
       
    81 extern void init_curses_panel();
       
    82 extern void init_hotshot();
       
    83 extern void init_testcapi();
       
    84 extern void initbsddb185();
       
    85 extern void initbz2();
       
    86 extern void initfpectl();
       
    87 extern void initfpetest();
       
    88 extern void initparser();
       
    89 extern void initpwd();
       
    90 extern void initunicodedata();
       
    91 extern void initzlib();
       
    92 #ifdef USE_SOCKET
       
    93 extern void init_socket();
       
    94 extern void initselect();
       
    95 #endif
       
    96 #endif
       
    97 /* -- ADDMODULE MARKER 1 -- */
       
    98 
       
    99 extern void PyMarshal_Init();
       
   100 extern void initimp();
       
   101 extern void initgc();
       
   102 
       
   103 struct _inittab _PyImport_Inittab[] = {
       
   104 
       
   105 	{"os2", initos2},
       
   106 	{"signal", initsignal},
       
   107 #ifdef WITH_THREAD
       
   108 	{"thread", initthread},
       
   109 #endif
       
   110 	{"_codecs", init_codecs},
       
   111 	{"_csv", init_csv},
       
   112 	{"_locale", init_locale},
       
   113 	{"_random", init_random},
       
   114 	{"_sre", init_sre},
       
   115 	{"_symtable", init_symtable},
       
   116 	{"_weakref", init_weakref},
       
   117 	{"array", initarray},
       
   118 	{"binascii", initbinascii},
       
   119 	{"cPickle", initcPickle},
       
   120 	{"cStringIO", initcStringIO},
       
   121 	{"_collections", init_collections},
       
   122 	{"cmath", initcmath},
       
   123 	{"datetime", initdatetime},
       
   124 	{"dl", initdl},
       
   125 	{"errno", initerrno},
       
   126 	{"fcntl", initfcntl},
       
   127 	{"_fileio", init_fileio},
       
   128 	{"_functools", init_functools},
       
   129 	{"_heapq", init_heapq},
       
   130 	{"imageop", initimageop},
       
   131 	{"itertools", inititertools},
       
   132 	{"math", initmath},
       
   133 	{"_md5", init_md5},
       
   134 	{"operator", initoperator},
       
   135 	{"_sha", init_sha},
       
   136 	{"_sha256", init_sha256},
       
   137 	{"_sha512", init_sha512},
       
   138 	{"strop", initstrop},
       
   139 	{"_struct", init_struct},
       
   140 	{"termios", inittermios},
       
   141 	{"time", inittime},
       
   142 	{"timing", inittiming},
       
   143 	{"xxsubtype", initxxsubtype},
       
   144 	{"zipimport", initzipimport},
       
   145 #if !HAVE_DYNAMIC_LOADING
       
   146 	{"_curses", init_curses},
       
   147 	{"_curses_panel", init_curses_panel},
       
   148 	{"_hotshot", init_hotshot},
       
   149 	{"_testcapi", init_testcapi},
       
   150 	{"bsddb185", initbsddb185},
       
   151 	{"bz2", initbz2},
       
   152 	{"fpectl", initfpectl},
       
   153 	{"fpetest", initfpetest},
       
   154 	{"parser", initparser},
       
   155 	{"pwd", initpwd},
       
   156 	{"unicodedata", initunicodedata},
       
   157 	{"zlib", initzlib},
       
   158 #ifdef USE_SOCKET
       
   159 	{"_socket", init_socket},
       
   160 	{"select", initselect},
       
   161 #endif
       
   162 #endif
       
   163 /* -- ADDMODULE MARKER 2 -- */
       
   164 
       
   165 	/* This module "lives in" with marshal.c */
       
   166 	{"marshal", PyMarshal_Init},
       
   167 
       
   168 	/* This lives it with import.c */
       
   169 	{"imp", initimp},
       
   170 
       
   171 	/* These entries are here for sys.builtin_module_names */
       
   172 	{"__main__", NULL},
       
   173 	{"__builtin__", NULL},
       
   174 	{"sys", NULL},
       
   175 	{"exceptions", NULL},
       
   176 
       
   177 	/* This lives in gcmodule.c */
       
   178 	{"gc", initgc},
       
   179 
       
   180 	/* Sentinel */
       
   181 	{0, 0}
       
   182 };