1994-08-19 10:51:31 +00:00
|
|
|
/* -*- C -*- ***********************************************
|
1995-01-08 14:33:34 +00:00
|
|
|
Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
|
|
|
|
The Netherlands.
|
1994-01-05 16:17:15 +00: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 13:28:34 +00:00
|
|
|
/* Macintosh Python configuration file */
|
1994-01-05 16:17:15 +00:00
|
|
|
|
1995-08-14 12:33:48 +00:00
|
|
|
#include "Python.h"
|
1994-01-05 16:17:15 +00: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 15:47:19 +00:00
|
|
|
#ifndef WITHOUT_COMPLEX
|
|
|
|
extern void initcmath();
|
|
|
|
#endif
|
1994-01-05 16:17:15 +00:00
|
|
|
extern void initparser();
|
|
|
|
extern void initmac();
|
1994-09-29 10:02:56 +00:00
|
|
|
extern void MacOS_Init();
|
1994-01-05 16:17:15 +00: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 10:51:31 +00:00
|
|
|
extern void initcrypt();
|
1994-01-05 16:17:15 +00:00
|
|
|
extern void initselect();
|
|
|
|
extern void initsocket();
|
|
|
|
extern void initaudioop();
|
|
|
|
extern void initimageop();
|
|
|
|
extern void initrgbimg();
|
1995-06-14 14:47:21 +00:00
|
|
|
#ifdef USE_STDWIN
|
1994-01-05 16:17:15 +00:00
|
|
|
extern void initstdwin();
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
1994-01-05 16:17:15 +00:00
|
|
|
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 13:28:34 +00:00
|
|
|
extern void initimgformat();
|
1994-01-05 16:17:15 +00:00
|
|
|
extern void initsgi();
|
|
|
|
extern void initsv();
|
|
|
|
extern void initfl();
|
|
|
|
extern void initthread();
|
|
|
|
extern void inittiming();
|
1994-08-19 10:51:31 +00:00
|
|
|
extern void initsignal();
|
|
|
|
extern void initnew();
|
|
|
|
extern void initdl();
|
|
|
|
extern void initsyslog();
|
1994-08-23 13:28:34 +00:00
|
|
|
extern void initgestalt();
|
1995-06-14 14:47:21 +00:00
|
|
|
extern void initmacfs();
|
1995-08-07 14:35:24 +00:00
|
|
|
extern void initbinascii();
|
1995-06-14 14:47:21 +00:00
|
|
|
#ifdef THINK
|
1994-12-14 13:45:11 +00:00
|
|
|
extern void initmacconsole();
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
|
|
|
#ifdef USE_MACCTB
|
1994-12-14 13:45:11 +00:00
|
|
|
extern void initctb();
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
|
|
|
#ifdef USE_MACSPEECH
|
1994-12-14 13:45:11 +00:00
|
|
|
extern void initmacspeech();
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
|
|
|
#ifdef USE_MACTCP
|
1994-12-14 13:45:11 +00:00
|
|
|
extern void initmacdnr();
|
|
|
|
extern void initmactcp();
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
1996-08-20 16:20:31 +00:00
|
|
|
#ifdef USE_TOOLBOX
|
1995-01-18 23:59:06 +00:00
|
|
|
extern void initAE();
|
1995-01-25 23:10:10 +00:00
|
|
|
extern void initCtl();
|
|
|
|
extern void initDlg();
|
|
|
|
extern void initEvt();
|
1996-01-15 14:39:11 +00:00
|
|
|
extern void initFm();
|
1995-08-31 13:58:28 +00:00
|
|
|
extern void initList();
|
1995-01-25 23:10:10 +00:00
|
|
|
extern void initMenu();
|
1995-02-13 16:16:22 +00:00
|
|
|
extern void initQd();
|
1995-01-22 18:37:45 +00:00
|
|
|
extern void initRes();
|
1995-01-25 23:10:10 +00:00
|
|
|
extern void initSnd();
|
1996-04-12 16:27:54 +00:00
|
|
|
extern void initScrap();
|
|
|
|
extern void initTE();
|
1995-01-25 23:10:10 +00:00
|
|
|
extern void initWin();
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
1996-08-20 16:20:31 +00:00
|
|
|
#ifdef USE_QT
|
|
|
|
extern void initCm();
|
|
|
|
extern void initQt();
|
|
|
|
#endif
|
1994-01-05 16:17:15 +00:00
|
|
|
|
1995-06-14 14:47:21 +00:00
|
|
|
#ifdef USE_IMG
|
1995-06-03 21:16:40 +00:00
|
|
|
extern void initimgcolormap();
|
|
|
|
extern void initimgformat();
|
|
|
|
extern void initimggif();
|
|
|
|
extern void initimgjpeg();
|
1995-10-12 10:23:27 +00:00
|
|
|
extern void initimgpbm();
|
1995-06-03 21:16:40 +00:00
|
|
|
extern void initimgppm();
|
|
|
|
extern void initimgpgm();
|
|
|
|
extern void initimgtiff();
|
1995-10-12 10:23:27 +00:00
|
|
|
extern void initimgsgi();
|
1995-06-03 21:16:40 +00:00
|
|
|
extern void initimgop();
|
|
|
|
#endif
|
1995-11-10 14:54:53 +00:00
|
|
|
#ifdef USE_TK
|
|
|
|
extern void init_tkinter();
|
|
|
|
#endif
|
1996-02-14 16:02:30 +00:00
|
|
|
#ifdef USE_GUSI
|
|
|
|
extern void initsocket();
|
|
|
|
extern void initselect();
|
|
|
|
#endif
|
1996-05-20 11:31:13 +00:00
|
|
|
#ifdef USE_WASTE
|
|
|
|
extern void initwaste();
|
|
|
|
#endif
|
1994-01-05 16:17:15 +00:00
|
|
|
/* -- ADDMODULE MARKER 1 -- */
|
|
|
|
|
1995-08-14 12:33:48 +00:00
|
|
|
extern void PyMarshal_Init();
|
1995-02-18 14:58:54 +00:00
|
|
|
extern void initimp();
|
1994-01-05 16:17:15 +00:00
|
|
|
|
1996-07-10 15:47:19 +00:00
|
|
|
struct _inittab inittab[] = {
|
1994-01-05 16:17:15 +00:00
|
|
|
|
|
|
|
{"array", initarray},
|
1995-06-27 13:18:14 +00:00
|
|
|
#ifndef SYMANTEC__CFM68K__
|
1995-02-21 21:01:47 +00:00
|
|
|
/* The math library seems mostly broken... */
|
1994-01-05 16:17:15 +00:00
|
|
|
{"math", initmath},
|
1996-01-29 15:47:19 +00:00
|
|
|
#endif
|
|
|
|
#ifndef WITHOUT_COMPLEX
|
|
|
|
{"cmath", initcmath},
|
1995-02-18 14:58:54 +00:00
|
|
|
#endif
|
1994-01-05 16:17:15 +00:00
|
|
|
{"parser", initparser},
|
|
|
|
{"mac", initmac},
|
1994-09-29 10:02:56 +00:00
|
|
|
{"MacOS", MacOS_Init},
|
1994-01-05 16:17:15 +00:00
|
|
|
{"regex", initregex},
|
|
|
|
{"strop", initstrop},
|
|
|
|
{"struct", initstruct},
|
|
|
|
{"time", inittime},
|
|
|
|
{"audioop", initaudioop},
|
|
|
|
{"imageop", initimageop},
|
|
|
|
{"rgbimg", initrgbimg},
|
1994-08-23 13:28:34 +00:00
|
|
|
#ifdef USE_STDWIN
|
|
|
|
{"stdwin", initstdwin},
|
|
|
|
#endif
|
1994-01-05 16:17:15 +00:00
|
|
|
{"md5", initmd5},
|
|
|
|
{"rotor", initrotor},
|
1994-08-19 10:51:31 +00:00
|
|
|
{"new", initnew},
|
1994-08-23 13:28:34 +00:00
|
|
|
{"gestalt", initgestalt},
|
1995-06-14 14:47:21 +00:00
|
|
|
{"macfs", initmacfs},
|
1995-08-07 14:35:24 +00:00
|
|
|
{"binascii", initbinascii},
|
1995-01-18 23:59:06 +00:00
|
|
|
#ifdef THINK_C
|
1995-02-21 21:01:47 +00:00
|
|
|
/* This is an interface to the Think runtime */
|
1994-12-14 13:45:11 +00:00
|
|
|
{"macconsole", initmacconsole},
|
|
|
|
#endif
|
1995-06-14 14:47:21 +00:00
|
|
|
#ifdef USE_MACCTB
|
1994-12-14 13:45:11 +00:00
|
|
|
{"ctb", initctb},
|
1995-02-18 14:58:54 +00:00
|
|
|
#endif
|
1995-02-21 21:01:47 +00:00
|
|
|
/* This could probably be made to work on other compilers... */
|
1995-06-14 14:47:21 +00:00
|
|
|
#ifdef USE_MACSPEECH
|
1994-12-14 13:45:11 +00:00
|
|
|
{"macspeech", initmacspeech},
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
|
|
|
#ifdef USE_MACTCP
|
1994-12-14 13:45:11 +00:00
|
|
|
{"macdnr", initmacdnr},
|
|
|
|
{"mactcp", initmactcp},
|
1995-01-18 23:59:06 +00:00
|
|
|
#endif
|
1996-08-20 16:20:31 +00:00
|
|
|
#ifdef USE_TOOLBOX
|
1995-01-18 23:59:06 +00:00
|
|
|
{"AE", initAE},
|
1995-01-25 23:10:10 +00:00
|
|
|
{"Ctl", initCtl},
|
|
|
|
{"Dlg", initDlg},
|
|
|
|
{"Evt", initEvt},
|
1996-01-15 14:39:11 +00:00
|
|
|
{"Fm", initFm},
|
1995-01-25 23:10:10 +00:00
|
|
|
{"Menu", initMenu},
|
1995-08-31 13:58:28 +00:00
|
|
|
{"List", initList},
|
1995-02-13 16:16:22 +00:00
|
|
|
{"Qd", initQd},
|
1995-01-25 23:10:10 +00:00
|
|
|
{"Snd", initSnd},
|
1996-04-12 16:27:54 +00:00
|
|
|
{"Scrap", initScrap},
|
|
|
|
{"TE", initTE},
|
1995-01-25 23:10:10 +00:00
|
|
|
{"Win", initWin},
|
1995-02-18 14:58:54 +00:00
|
|
|
{"Res", initRes},
|
1995-06-14 14:47:21 +00:00
|
|
|
#endif
|
1996-08-20 16:20:31 +00:00
|
|
|
#ifdef USE_QT
|
|
|
|
{"Cm", initCm},
|
|
|
|
{"Qt", initQt},
|
|
|
|
#endif
|
1995-06-14 14:47:21 +00:00
|
|
|
#ifdef USE_IMG
|
1995-06-03 21:16:40 +00:00
|
|
|
{"imgcolormap", initimgcolormap},
|
|
|
|
{"imgformat", initimgformat},
|
|
|
|
{"imggif", initimggif},
|
|
|
|
{"imgjpeg", initimgjpeg},
|
1995-10-12 10:23:27 +00:00
|
|
|
{"imgpbm", initimgpbm},
|
1995-06-03 21:16:40 +00:00
|
|
|
{"imgppm", initimgppm},
|
|
|
|
{"imgpgm", initimgpgm},
|
|
|
|
{"imgtiff", initimgtiff},
|
1995-10-12 10:23:27 +00:00
|
|
|
{"imgsgi", initimgsgi},
|
1995-06-03 21:16:40 +00:00
|
|
|
{"imgop", initimgop},
|
|
|
|
#endif
|
1995-11-10 14:54:53 +00:00
|
|
|
#ifdef USE_TK
|
|
|
|
{"_tkinter", init_tkinter},
|
|
|
|
#endif
|
1996-02-14 16:02:30 +00:00
|
|
|
#ifdef USE_GUSI
|
|
|
|
{"socket", initsocket},
|
|
|
|
{"select", initselect},
|
|
|
|
#endif
|
1996-05-20 11:31:13 +00:00
|
|
|
#ifdef USE_WASTE
|
|
|
|
{"waste", initwaste},
|
|
|
|
#endif
|
1995-06-03 21:16:40 +00:00
|
|
|
|
1994-01-05 16:17:15 +00:00
|
|
|
/* -- ADDMODULE MARKER 2 -- */
|
|
|
|
|
|
|
|
/* This module "lives in" with marshal.c */
|
1995-08-14 12:33:48 +00:00
|
|
|
{"marshal", PyMarshal_Init},
|
1995-02-18 14:58:54 +00:00
|
|
|
|
|
|
|
/* This module "lives in" with import.c */
|
|
|
|
{"imp", initimp},
|
1994-01-05 16:17:15 +00:00
|
|
|
|
|
|
|
/* These entries are here for sys.builtin_module_names */
|
|
|
|
{"__main__", NULL},
|
|
|
|
{"__builtin__", NULL},
|
|
|
|
{"sys", NULL},
|
|
|
|
|
|
|
|
/* Sentinel */
|
|
|
|
{0, 0}
|
|
|
|
};
|
1995-12-09 14:00:39 +00:00
|
|
|
|