home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Mac / config.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-17  |  5.1 KB  |  207 lines  |  [TEXT/R*ch]

  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 not be used in advertising or publicity pertaining to
  13. distribution of the software without specific, written prior permission.
  14.  
  15. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  16. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17. FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
  18. FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  20. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  21. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  
  23. ******************************************************************/
  24.  
  25. /* Macintosh Python configuration file */
  26.  
  27. #include "Python.h"
  28. /* Table of built-in modules.
  29.    These are initialized when first imported.
  30.    Note: selection of optional extensions is now generally done by the
  31.    makesetup script. */
  32.  
  33. extern void initarray();
  34. extern void initmath();
  35. extern void initparser();
  36. extern void initmac();
  37. extern void MacOS_Init();
  38. extern void initregex();
  39. extern void initstrop();
  40. extern void initstruct();
  41. extern void inittime();
  42. extern void initdbm();
  43. extern void initfcntl();
  44. extern void initnis();
  45. extern void initpwd();
  46. extern void initgrp();
  47. extern void initcrypt();
  48. extern void initselect();
  49. extern void initsocket();
  50. extern void initaudioop();
  51. extern void initimageop();
  52. extern void initrgbimg();
  53. #ifdef USE_STDWIN
  54. extern void initstdwin();
  55. #endif
  56. extern void initmd5();
  57. extern void initmpz();
  58. extern void initrotor();
  59. extern void inital();
  60. extern void initcd();
  61. extern void initcl();
  62. extern void initfm();
  63. extern void initgl();
  64. extern void initimgfile();
  65. extern void initimgformat();
  66. extern void initsgi();
  67. extern void initsv();
  68. extern void initfl();
  69. extern void initthread();
  70. extern void inittiming();
  71. extern void initsignal();
  72. extern void initnew();
  73. extern void initdl();
  74. extern void initsyslog();
  75. extern void initgestalt();
  76. extern void initmacfs();
  77. extern void initbinascii();
  78. #ifdef THINK
  79. extern void initmacconsole();
  80. #endif
  81. #ifdef USE_MACCTB
  82. extern void initctb();
  83. #endif
  84. #ifdef USE_MACSPEECH
  85. extern void initmacspeech();
  86. #endif
  87. #ifdef USE_MACTCP
  88. extern void initmacdnr();
  89. extern void initmactcp();
  90. #endif
  91. #ifdef USE_BGEN
  92. extern void initAE();
  93. extern void initCtl();
  94. extern void initDlg();
  95. extern void initEvt();
  96. extern void initList();
  97. extern void initMenu();
  98. extern void initQd();
  99. extern void initRes();
  100. extern void initSnd();
  101. extern void initWin();
  102. #endif
  103.  
  104. #ifdef USE_IMG
  105. extern void initimgcolormap();
  106. extern void initimgformat();
  107. extern void initimggif();
  108. extern void initimgjpeg();
  109. extern void initimgpbm();
  110. extern void initimgppm();
  111. extern void initimgpgm();
  112. extern void initimgtiff();
  113. extern void initimgsgi();
  114. extern void initimgop();
  115. #endif
  116.  
  117. /* -- ADDMODULE MARKER 1 -- */
  118.  
  119. extern void PyMarshal_Init();
  120. extern void initimp();
  121.  
  122. struct {
  123.     char *name;
  124.     void (*initfunc)();
  125. } inittab[] = {
  126.  
  127.     {"array", initarray},
  128. #ifndef SYMANTEC__CFM68K__
  129. /* The math library seems mostly broken... */
  130.     {"math", initmath},
  131. #endif
  132.     {"parser", initparser},
  133.     {"mac", initmac},
  134.     {"MacOS", MacOS_Init},
  135.     {"regex", initregex},
  136.     {"strop", initstrop},
  137.     {"struct", initstruct},
  138.     {"time", inittime},
  139.     {"audioop", initaudioop},
  140.     {"imageop", initimageop},
  141.     {"rgbimg", initrgbimg},
  142. #ifdef USE_STDWIN
  143.     {"stdwin", initstdwin},
  144. #endif
  145.     {"md5", initmd5},
  146.     {"rotor", initrotor},
  147.     {"new", initnew},
  148.     {"gestalt", initgestalt},
  149.     {"macfs", initmacfs},
  150.     {"binascii", initbinascii},
  151. #ifdef THINK_C
  152. /* This is an interface to the Think runtime */
  153.     {"macconsole", initmacconsole},
  154. #endif
  155. #ifdef USE_MACCTB
  156.     {"ctb", initctb},
  157. #endif
  158. /* This could probably be made to work on other compilers... */
  159. #ifdef USE_MACSPEECH
  160.     {"macspeech", initmacspeech},
  161. #endif
  162. #ifdef USE_MACTCP
  163.     {"macdnr", initmacdnr},
  164.     {"mactcp", initmactcp},
  165. #endif
  166. #ifdef USE_BGEN
  167.     {"AE", initAE},
  168.     {"Ctl", initCtl},
  169.     {"Dlg", initDlg},
  170.     {"Evt", initEvt},
  171.     {"Menu", initMenu},
  172.     {"List", initList},
  173.     {"Qd", initQd},
  174.     {"Snd", initSnd},
  175.     {"Win", initWin},
  176.     {"Res", initRes},
  177. #endif
  178. #ifdef USE_IMG
  179.     {"imgcolormap",    initimgcolormap},
  180.     {"imgformat",    initimgformat},
  181.     {"imggif",    initimggif},
  182.     {"imgjpeg",    initimgjpeg},
  183.     {"imgpbm",    initimgpbm},
  184.     {"imgppm",    initimgppm},
  185.     {"imgpgm",    initimgpgm},
  186.     {"imgtiff",    initimgtiff},
  187.     {"imgsgi",    initimgsgi},
  188.     {"imgop",    initimgop},
  189. #endif
  190.  
  191. /* -- ADDMODULE MARKER 2 -- */
  192.  
  193.     /* This module "lives in" with marshal.c */
  194.     {"marshal", PyMarshal_Init},
  195.     
  196.     /* This module "lives in" with import.c */
  197.     {"imp", initimp},
  198.  
  199.     /* These entries are here for sys.builtin_module_names */
  200.     {"__main__", NULL},
  201.     {"__builtin__", NULL},
  202.     {"sys", NULL},
  203.  
  204.     /* Sentinel */
  205.     {0, 0}
  206. };
  207.