home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / py2s152.zip / PC / os2vacpp / config.c < prev    next >
C/C++ Source or Header  |  1999-06-27  |  4KB  |  133 lines

  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 initarray();
  40. extern void initaudioop();
  41. extern void initbinascii();
  42. extern void initcmath();
  43. extern void initerrno();
  44. extern void initimageop();
  45. extern void initmath();
  46. extern void initmd5();
  47. extern void initnew();
  48. extern void initnt();
  49. extern void initos2();
  50. extern void initoperator();
  51. extern void initposix();
  52. extern void initregex();
  53. extern void initrgbimg();
  54. extern void initrotor();
  55. extern void initsignal();
  56. extern void initselect();
  57. extern void initsha();
  58. extern void init_socket();
  59. extern void initsoundex();
  60. extern void initstrop();
  61. extern void initstruct();
  62. extern void inittime();
  63. extern void initthread();
  64. extern void initcStringIO();
  65. extern void initcPickle();
  66. extern void initpcre();
  67. extern void initparser();
  68. extern void init_locale();
  69.  
  70. #ifdef WIN32
  71. extern void initmsvcrt();
  72. #endif
  73.  
  74. /* -- ADDMODULE MARKER 1 -- */
  75.  
  76. extern void PyMarshal_Init();
  77. extern void initimp();
  78.  
  79. struct _inittab _PyImport_Inittab[] = {
  80.  
  81.         {"array",      initarray},
  82. #ifdef M_I386
  83.         {"audioop",    initaudioop},
  84. #endif
  85.         {"binascii",   initbinascii},
  86.         {"cmath",      initcmath},
  87.         {"errno",      initerrno},
  88.         {"math",       initmath},
  89.         {"md5",        initmd5},
  90.         {"new",        initnew},
  91.         {"os2",        initos2},
  92.         {"operator",   initoperator},
  93.         {"parser",     initparser},
  94.         {"_locale",    init_locale},
  95.         {"regex",      initregex},
  96.         {"sha",        initsha},
  97.         {"signal",     initsignal},
  98. #ifdef USE_SOCKET
  99.         {"_socket",    init_socket},
  100.         {"select",     initselect},
  101. #endif
  102.         {"soundex",    initsoundex},
  103.         {"strop",      initstrop},
  104.         {"struct",     initstruct},
  105.         {"time",       inittime},
  106. #ifdef WITH_THREAD
  107.         {"thread",     initthread},
  108. #endif
  109.         {"cStringIO",  initcStringIO},
  110.         {"cPickle",    initcPickle},
  111.         {"pcre",       initpcre},
  112.  
  113. //        {"imageop", initimageop},
  114. //        {"rgbimg", initrgbimg},
  115. //        {"rotor", initrotor},
  116.  
  117. /* -- ADDMODULE MARKER 2 -- */
  118.  
  119.         /* This module "lives in" with marshal.c */
  120.         {"marshal", PyMarshal_Init},
  121.  
  122.         /* This lives it with import.c */
  123.         {"imp", initimp},
  124.  
  125.         /* These entries are here for sys.builtin_module_names */
  126.         {"__main__", NULL},
  127.         {"__builtin__", NULL},
  128.         {"sys", NULL},
  129.  
  130.         /* Sentinel */
  131.         {0, 0}
  132. };
  133.