home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / PC / config.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-17  |  3.4 KB  |  114 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 initoperator();
  50. extern void initregex();
  51. extern void initrgbimg();
  52. extern void initrotor();
  53. extern void initsignal();
  54. extern void initselect();
  55. extern void init_socket();
  56. extern void initsoundex();
  57. extern void initstrop();
  58. extern void initstruct();
  59. extern void inittime();
  60. extern void initthread();
  61.  
  62. /* -- ADDMODULE MARKER 1 -- */
  63.  
  64. extern void PyMarshal_Init();
  65. extern void initimp();
  66.  
  67. struct _inittab inittab[] = {
  68.  
  69.         {"array", initarray},
  70. #ifdef M_I386
  71.         {"audioop", initaudioop},
  72. #endif
  73.         {"binascii", initbinascii},
  74.         {"cmath", initcmath},
  75.         {"errno", initerrno},
  76.         {"imageop", initimageop},
  77.         {"math", initmath},
  78.         {"md5", initmd5},
  79.         {"new", initnew},
  80.         {"nt", initnt},    /* Use the NT os functions, not posix */
  81.         {"operator", initoperator},
  82.         {"regex", initregex},
  83.         {"rgbimg", initrgbimg},
  84.         {"rotor", initrotor},
  85.         {"signal", initsignal},
  86. #ifdef USE_SOCKET
  87.     {"_socket", init_socket},
  88.     {"select", initselect},
  89. #endif
  90.         {"soundex", initsoundex},
  91.         {"strop", initstrop},
  92.         {"struct", initstruct},
  93.         {"time", inittime},
  94. #ifdef WITH_THREAD
  95.         {"thread", initthread},
  96. #endif
  97.  
  98. /* -- ADDMODULE MARKER 2 -- */
  99.  
  100.         /* This module "lives in" with marshal.c */
  101.         {"marshal", PyMarshal_Init},
  102.  
  103.         /* This lives it with import.c */
  104.         {"imp", initimp},
  105.  
  106.         /* These entries are here for sys.builtin_module_names */
  107.         {"__main__", NULL},
  108.         {"__builtin__", NULL},
  109.         {"sys", NULL},
  110.  
  111.         /* Sentinel */
  112.         {0, 0}
  113. };
  114.