1997-01-31 12:15:11 -04:00
|
|
|
/***********************************************************
|
|
|
|
Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
|
1995-01-08 10:33:34 -04:00
|
|
|
The Netherlands.
|
1994-01-05 12:17:15 -04:00
|
|
|
|
|
|
|
All Rights Reserved
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
|
|
documentation for any purpose and without fee is hereby granted,
|
|
|
|
provided that the above copyright notice appear in all copies and that
|
|
|
|
both that copyright notice and this permission notice appear in
|
|
|
|
supporting documentation, and that the names of Stichting Mathematisch
|
|
|
|
Centrum or CWI not be used in advertising or publicity pertaining to
|
|
|
|
distribution of the software without specific, written prior permission.
|
|
|
|
|
|
|
|
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
|
|
|
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
|
|
|
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
|
|
|
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
|
|
******************************************************************/
|
|
|
|
|
1994-08-23 10:28:34 -03:00
|
|
|
/* Macintosh Python configuration file */
|
1994-01-05 12:17:15 -04:00
|
|
|
|
1995-08-14 09:33:48 -03:00
|
|
|
#include "Python.h"
|
1994-01-05 12:17:15 -04:00
|
|
|
/* Table of built-in modules.
|
|
|
|
These are initialized when first imported.
|
|
|
|
Note: selection of optional extensions is now generally done by the
|
|
|
|
makesetup script. */
|
|
|
|
|
|
|
|
extern void initarray();
|
|
|
|
extern void initmath();
|
1996-01-29 11:47:19 -04:00
|
|
|
#ifndef WITHOUT_COMPLEX
|
|
|
|
extern void initcmath();
|
|
|
|
#endif
|
1994-01-05 12:17:15 -04:00
|
|
|
extern void initparser();
|
|
|
|
extern void initmac();
|
1998-07-01 12:48:54 -03:00
|
|
|
extern void initMacOS();
|
1994-01-05 12:17:15 -04:00
|
|
|
extern void initregex();
|
|
|
|
extern void initstrop();
|
|
|
|
extern void initstruct();
|
|
|
|
extern void inittime();
|
|
|
|
extern void initdbm();
|
|
|
|
extern void initfcntl();
|
|
|
|
extern void initnis();
|
|
|
|
extern void initpwd();
|
|
|
|
extern void initgrp();
|
1994-08-19 07:51:31 -03:00
|
|
|
extern void initcrypt();
|
1994-01-05 12:17:15 -04:00
|
|
|
extern void initselect();
|
2000-08-25 19:03:34 -03:00
|
|
|
extern void init_socket();
|
1994-01-05 12:17:15 -04:00
|
|
|
extern void initaudioop();
|
|
|
|
extern void initimageop();
|
|
|
|
extern void initrgbimg();
|
|
|
|
extern void initmd5();
|
|
|
|
extern void initmpz();
|
|
|
|
extern void initrotor();
|
|
|
|
extern void inital();
|
|
|
|
extern void initcd();
|
|
|
|
extern void initcl();
|
|
|
|
extern void initfm();
|
|
|
|
extern void initgl();
|
|
|
|
extern void initimgfile();
|
1994-08-23 10:28:34 -03:00
|
|
|
extern void initimgformat();
|
1994-01-05 12:17:15 -04:00
|
|
|
extern void initsgi();
|
|
|
|
extern void initsv();
|
|
|
|
extern void initfl();
|
|
|
|
extern void initthread();
|
|
|
|
extern void inittiming();
|
1994-08-19 07:51:31 -03:00
|
|
|
extern void initsignal();
|
|
|
|
extern void initdl();
|
|
|
|
extern void initsyslog();
|
1994-08-23 10:28:34 -03:00
|
|
|
extern void initgestalt();
|
1995-06-14 11:47:21 -03:00
|
|
|
extern void initmacfs();
|
1995-08-07 11:35:24 -03:00
|
|
|
extern void initbinascii();
|
1997-02-20 11:20:46 -04:00
|
|
|
extern void initoperator();
|
|
|
|
extern void initerrno();
|
1997-10-08 12:34:03 -03:00
|
|
|
extern void initpcre();
|
2000-05-12 18:36:06 -03:00
|
|
|
extern void initunicodedata();
|
|
|
|
extern void init_codecs();
|
2001-08-07 10:53:25 -03:00
|
|
|
extern void initNav();
|
2001-11-06 11:56:56 -04:00
|
|
|
extern void inithfsplus();
|
1995-06-14 11:47:21 -03:00
|
|
|
#ifdef USE_MACCTB
|
1994-12-14 09:45:11 -04:00
|
|
|
extern void initctb();
|
1995-06-14 11:47:21 -03:00
|
|
|
#endif
|
|
|
|
#ifdef USE_MACSPEECH
|
1994-12-14 09:45:11 -04:00
|
|
|
extern void initmacspeech();
|
1995-06-14 11:47:21 -03:00
|
|
|
#endif
|
2000-09-14 10:34:20 -03:00
|
|
|
#ifdef USE_IC
|
|
|
|
extern void initicglue();
|
|
|
|
#endif
|
1996-08-20 13:20:31 -03:00
|
|
|
#ifdef USE_TOOLBOX
|
1999-02-07 10:00:50 -04:00
|
|
|
#ifndef USE_CORE_TOOLBOX
|
|
|
|
#define USE_CORE_TOOLBOX
|
|
|
|
#endif
|
2002-09-06 20:33:40 -03:00
|
|
|
extern void init_AH();
|
2001-08-23 10:51:46 -03:00
|
|
|
extern void init_App();
|
|
|
|
extern void init_Fm();
|
|
|
|
extern void init_Help();
|
2002-08-05 11:12:24 -03:00
|
|
|
extern void init_IBCarbon();
|
2001-08-23 10:51:46 -03:00
|
|
|
extern void init_Icn();
|
|
|
|
extern void init_List();
|
|
|
|
extern void init_Mlte();
|
|
|
|
extern void init_Qdoffs();
|
|
|
|
extern void init_Snd();
|
|
|
|
extern void init_Sndihooks();
|
|
|
|
extern void init_Scrap();
|
|
|
|
extern void init_TE();
|
1998-04-21 12:23:02 -03:00
|
|
|
extern void initColorPicker();
|
|
|
|
extern void initPrinting();
|
2001-08-23 10:51:46 -03:00
|
|
|
extern void init_CF();
|
1995-06-14 11:47:21 -03:00
|
|
|
#endif
|
1999-02-07 10:00:50 -04:00
|
|
|
#ifdef USE_CORE_TOOLBOX
|
2001-08-23 10:51:46 -03:00
|
|
|
extern void init_AE();
|
|
|
|
extern void init_Ctl();
|
|
|
|
extern void init_Dlg();
|
|
|
|
extern void init_Drag();
|
|
|
|
extern void init_Evt();
|
|
|
|
extern void init_Menu();
|
|
|
|
extern void init_Qd();
|
|
|
|
extern void init_Res();
|
|
|
|
extern void init_Win();
|
1999-02-07 10:00:50 -04:00
|
|
|
#endif
|
1996-08-20 13:20:31 -03:00
|
|
|
#ifdef USE_QT
|
2001-08-23 10:51:46 -03:00
|
|
|
extern void init_Cm();
|
|
|
|
extern void init_Qt();
|
1996-08-20 13:20:31 -03:00
|
|
|
#endif
|
1994-01-05 12:17:15 -04:00
|
|
|
|
1995-06-14 11:47:21 -03:00
|
|
|
#ifdef USE_IMG
|
1995-06-03 18:16:40 -03:00
|
|
|
extern void initimgcolormap();
|
|
|
|
extern void initimgformat();
|
|
|
|
extern void initimggif();
|
|
|
|
extern void initimgjpeg();
|
1995-10-12 07:23:27 -03:00
|
|
|
extern void initimgpbm();
|
1995-06-03 18:16:40 -03:00
|
|
|
extern void initimgppm();
|
|
|
|
extern void initimgpgm();
|
|
|
|
extern void initimgtiff();
|
1995-10-12 07:23:27 -03:00
|
|
|
extern void initimgsgi();
|
1997-01-30 11:47:08 -04:00
|
|
|
extern void initimgpng();
|
1995-06-03 18:16:40 -03:00
|
|
|
extern void initimgop();
|
|
|
|
#endif
|
1995-11-10 10:54:53 -04:00
|
|
|
#ifdef USE_TK
|
|
|
|
extern void init_tkinter();
|
|
|
|
#endif
|
1996-02-14 12:02:30 -04:00
|
|
|
#ifdef USE_GUSI
|
2000-08-25 19:03:34 -03:00
|
|
|
extern void init_socket();
|
1996-02-14 12:02:30 -04:00
|
|
|
extern void initselect();
|
|
|
|
#endif
|
1996-05-20 08:31:13 -03:00
|
|
|
#ifdef USE_WASTE
|
|
|
|
extern void initwaste();
|
|
|
|
#endif
|
1996-12-23 13:21:20 -04:00
|
|
|
#ifdef USE_GDBM
|
|
|
|
extern void initgdbm();
|
|
|
|
#endif
|
1997-06-03 12:28:52 -03:00
|
|
|
#ifdef USE_ZLIB
|
|
|
|
extern void initzlib();
|
|
|
|
#endif
|
2000-04-07 06:24:53 -03:00
|
|
|
#ifdef WITH_THREAD
|
|
|
|
extern void initthread();
|
|
|
|
#endif
|
2001-11-30 10:16:36 -04:00
|
|
|
#ifdef WITH_HOTSHOT
|
|
|
|
extern void init_hotshot();
|
|
|
|
#endif
|
2000-08-25 19:03:34 -03:00
|
|
|
#ifdef USE_PYEXPAT
|
|
|
|
extern void initpyexpat();
|
|
|
|
#endif
|
2001-06-21 11:50:03 -03:00
|
|
|
extern void initgc();
|
1998-01-06 08:08:49 -04:00
|
|
|
|
|
|
|
extern void initcPickle();
|
|
|
|
extern void initcStringIO();
|
2000-04-07 06:24:53 -03:00
|
|
|
extern void init_codecs();
|
2000-10-12 18:24:24 -03:00
|
|
|
extern void initsha();
|
2000-06-20 04:42:23 -03:00
|
|
|
extern void init_locale();
|
2000-07-07 10:09:35 -03:00
|
|
|
extern void init_sre();
|
2001-01-25 12:28:00 -04:00
|
|
|
extern void initxreadlines();
|
1994-01-05 12:17:15 -04:00
|
|
|
/* -- ADDMODULE MARKER 1 -- */
|
|
|
|
|
1995-08-14 09:33:48 -03:00
|
|
|
extern void PyMarshal_Init();
|
1995-02-18 10:58:54 -04:00
|
|
|
extern void initimp();
|
1994-01-05 12:17:15 -04:00
|
|
|
|
1997-05-23 12:36:53 -03:00
|
|
|
struct _inittab _PyImport_Inittab[] = {
|
1994-01-05 12:17:15 -04:00
|
|
|
|
|
|
|
{"array", initarray},
|
2000-06-28 18:59:35 -03:00
|
|
|
{"math", initmath},
|
1996-01-29 11:47:19 -04:00
|
|
|
#ifndef WITHOUT_COMPLEX
|
|
|
|
{"cmath", initcmath},
|
1995-02-18 10:58:54 -04:00
|
|
|
#endif
|
1994-01-05 12:17:15 -04:00
|
|
|
{"parser", initparser},
|
|
|
|
{"mac", initmac},
|
1998-07-01 12:48:54 -03:00
|
|
|
{"MacOS", initMacOS},
|
1994-01-05 12:17:15 -04:00
|
|
|
{"regex", initregex},
|
|
|
|
{"strop", initstrop},
|
|
|
|
{"struct", initstruct},
|
|
|
|
{"time", inittime},
|
|
|
|
{"audioop", initaudioop},
|
|
|
|
{"imageop", initimageop},
|
|
|
|
{"rgbimg", initrgbimg},
|
|
|
|
{"md5", initmd5},
|
|
|
|
{"rotor", initrotor},
|
1994-08-23 10:28:34 -03:00
|
|
|
{"gestalt", initgestalt},
|
1995-06-14 11:47:21 -03:00
|
|
|
{"macfs", initmacfs},
|
1995-08-07 11:35:24 -03:00
|
|
|
{"binascii", initbinascii},
|
1997-02-20 11:20:46 -04:00
|
|
|
{"operator", initoperator},
|
|
|
|
{"errno", initerrno},
|
1997-10-08 12:34:03 -03:00
|
|
|
{"pcre", initpcre},
|
2000-05-12 18:36:06 -03:00
|
|
|
{"unicodedata", initunicodedata},
|
|
|
|
{"_codecs", init_codecs},
|
2000-10-12 18:24:24 -03:00
|
|
|
{"sha", initsha},
|
2001-08-07 10:53:25 -03:00
|
|
|
{"Nav", initNav},
|
1995-06-14 11:47:21 -03:00
|
|
|
#ifdef USE_MACCTB
|
1994-12-14 09:45:11 -04:00
|
|
|
{"ctb", initctb},
|
1995-02-18 10:58:54 -04:00
|
|
|
#endif
|
1995-02-21 17:01:47 -04:00
|
|
|
/* This could probably be made to work on other compilers... */
|
1995-06-14 11:47:21 -03:00
|
|
|
#ifdef USE_MACSPEECH
|
1994-12-14 09:45:11 -04:00
|
|
|
{"macspeech", initmacspeech},
|
1995-06-14 11:47:21 -03:00
|
|
|
#endif
|
2000-09-14 10:34:20 -03:00
|
|
|
#ifdef USE_IC
|
|
|
|
{"icglue", initicglue},
|
|
|
|
#endif
|
1999-02-07 10:00:50 -04:00
|
|
|
#ifdef USE_CORE_TOOLBOX
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_AE", init_AE},
|
|
|
|
{"_Ctl", init_Ctl},
|
|
|
|
{"_Dlg", init_Dlg},
|
|
|
|
{"_Drag", init_Drag},
|
|
|
|
{"_Evt", init_Evt},
|
|
|
|
{"_Menu", init_Menu},
|
|
|
|
{"_Qd", init_Qd},
|
|
|
|
{"_Win", init_Win},
|
|
|
|
{"_Res", init_Res},
|
1999-02-07 10:00:50 -04:00
|
|
|
#endif
|
|
|
|
#ifdef USE_TOOLBOX
|
2002-09-06 20:33:40 -03:00
|
|
|
{"_AH", init_AH},
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_App", init_App},
|
|
|
|
{"_Fm", init_Fm},
|
2002-08-05 11:12:24 -03:00
|
|
|
{"_IBCarbon", init_IBCarbon},
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_Icn", init_Icn},
|
|
|
|
{"_List", init_List},
|
|
|
|
{"_Mlte", init_Mlte},
|
|
|
|
{"_Qdoffs", init_Qdoffs},
|
|
|
|
{"_Snd", init_Snd},
|
|
|
|
{"_Sndihooks", init_Sndihooks},
|
2000-06-21 19:07:06 -03:00
|
|
|
/* Carbon scrap manager is completely different */
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_Scrap", init_Scrap},
|
|
|
|
{"_TE", init_TE},
|
1998-04-21 12:23:02 -03:00
|
|
|
{"ColorPicker", initColorPicker},
|
2000-07-14 19:37:27 -03:00
|
|
|
#if !TARGET_API_MAC_CARBON
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_Help", init_Help},
|
1998-04-21 12:23:02 -03:00
|
|
|
{"Printing", initPrinting},
|
2000-06-02 18:35:07 -03:00
|
|
|
#endif
|
2001-08-07 12:29:17 -03:00
|
|
|
#if TARGET_API_MAC_CARBON
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_CF", init_CF},
|
2001-08-07 12:29:17 -03:00
|
|
|
#endif
|
2001-11-06 11:56:56 -04:00
|
|
|
#if TARGET_API_MAC_CARBON
|
|
|
|
{"hfsplus", inithfsplus},
|
1995-06-14 11:47:21 -03:00
|
|
|
#endif
|
2001-11-06 11:56:56 -04:00
|
|
|
#endif /* USE_TOOLBOX */
|
1996-08-20 13:20:31 -03:00
|
|
|
#ifdef USE_QT
|
2001-08-23 10:51:46 -03:00
|
|
|
{"_Cm", init_Cm},
|
|
|
|
{"_Qt", init_Qt},
|
1996-08-20 13:20:31 -03:00
|
|
|
#endif
|
1995-06-14 11:47:21 -03:00
|
|
|
#ifdef USE_IMG
|
1995-06-03 18:16:40 -03:00
|
|
|
{"imgcolormap", initimgcolormap},
|
|
|
|
{"imgformat", initimgformat},
|
|
|
|
{"imggif", initimggif},
|
|
|
|
{"imgjpeg", initimgjpeg},
|
1995-10-12 07:23:27 -03:00
|
|
|
{"imgpbm", initimgpbm},
|
1995-06-03 18:16:40 -03:00
|
|
|
{"imgppm", initimgppm},
|
|
|
|
{"imgpgm", initimgpgm},
|
|
|
|
{"imgtiff", initimgtiff},
|
1995-10-12 07:23:27 -03:00
|
|
|
{"imgsgi", initimgsgi},
|
1997-01-30 11:47:08 -04:00
|
|
|
{"imgpng", initimgpng},
|
1995-06-03 18:16:40 -03:00
|
|
|
{"imgop", initimgop},
|
|
|
|
#endif
|
1995-11-10 10:54:53 -04:00
|
|
|
#ifdef USE_TK
|
|
|
|
{"_tkinter", init_tkinter},
|
|
|
|
#endif
|
1996-02-14 12:02:30 -04:00
|
|
|
#ifdef USE_GUSI
|
2000-08-25 19:03:34 -03:00
|
|
|
{"_socket", init_socket},
|
1996-02-14 12:02:30 -04:00
|
|
|
{"select", initselect},
|
|
|
|
#endif
|
1996-05-20 08:31:13 -03:00
|
|
|
#ifdef USE_WASTE
|
|
|
|
{"waste", initwaste},
|
|
|
|
#endif
|
1996-12-23 13:21:20 -04:00
|
|
|
#ifdef USE_GDBM
|
|
|
|
{"gdbm", initgdbm},
|
1997-02-20 11:20:46 -04:00
|
|
|
#endif /* USE_GDBM */
|
1997-06-03 12:28:52 -03:00
|
|
|
#ifdef USE_ZLIB
|
|
|
|
{"zlib", initzlib},
|
|
|
|
#endif
|
2000-04-07 06:24:53 -03:00
|
|
|
#ifdef WITH_THREAD
|
|
|
|
{"thread", initthread},
|
2000-08-25 19:03:34 -03:00
|
|
|
#endif
|
2001-11-30 10:16:36 -04:00
|
|
|
#ifdef WITH_HOTSHOT
|
|
|
|
{"_hotshot", init_hotshot},
|
|
|
|
#endif
|
2000-08-25 19:03:34 -03:00
|
|
|
#ifdef USE_PYEXPAT
|
|
|
|
{"pyexpat", initpyexpat},
|
2001-06-21 11:50:03 -03:00
|
|
|
#endif
|
|
|
|
{"gc", initgc},
|
1998-01-06 08:08:49 -04:00
|
|
|
{"cPickle", initcPickle},
|
|
|
|
{"cStringIO", initcStringIO},
|
2000-06-20 04:42:23 -03:00
|
|
|
{"_locale", init_locale},
|
2000-07-07 10:09:35 -03:00
|
|
|
{"_sre", init_sre},
|
2001-01-25 12:28:00 -04:00
|
|
|
{"xreadlines", initxreadlines},
|
1994-01-05 12:17:15 -04:00
|
|
|
/* -- ADDMODULE MARKER 2 -- */
|
|
|
|
|
|
|
|
/* This module "lives in" with marshal.c */
|
1995-08-14 09:33:48 -03:00
|
|
|
{"marshal", PyMarshal_Init},
|
1995-02-18 10:58:54 -04:00
|
|
|
|
|
|
|
/* This module "lives in" with import.c */
|
|
|
|
{"imp", initimp},
|
1994-01-05 12:17:15 -04:00
|
|
|
|
|
|
|
/* These entries are here for sys.builtin_module_names */
|
|
|
|
{"__main__", NULL},
|
|
|
|
{"__builtin__", NULL},
|
2001-08-27 19:50:41 -03:00
|
|
|
{"exceptions", NULL},
|
1994-01-05 12:17:15 -04:00
|
|
|
{"sys", NULL},
|
|
|
|
|
|
|
|
/* Sentinel */
|
|
|
|
{0, 0}
|
|
|
|
};
|