Made all configurable options optional (see Makefile).

This commit is contained in:
Guido van Rossum 1991-01-18 15:32:01 +00:00
parent e8e7cf49c5
commit 28a83ab393
1 changed files with 16 additions and 5 deletions

View File

@ -1,11 +1,10 @@
/* Configuration containing EVERYTHING */ /* Configurable Python configuration file */
/* At CWI, this implies stdwin, audio, Amoeba and the NASA Panel Library */ #ifdef USE_STDWIN
#define USE_AUDIO #include <stdwin.h>
#define USE_AMOEBA
#define USE_PANEL
static int use_stdwin; static int use_stdwin;
#endif
/*ARGSUSED*/ /*ARGSUSED*/
void void
@ -13,6 +12,7 @@ initargs(p_argc, p_argv)
int *p_argc; int *p_argc;
char ***p_argv; char ***p_argv;
{ {
#ifdef USE_STDWIN
extern char *getenv(); extern char *getenv();
char *display; char *display;
@ -44,6 +44,7 @@ initargs(p_argc, p_argv)
if (use_stdwin) if (use_stdwin)
winitargs(p_argc, p_argv); winitargs(p_argc, p_argv);
#endif
} }
void void
@ -53,25 +54,35 @@ initcalls()
initmath(); initmath();
initregexp(); initregexp();
initposix(); initposix();
#ifdef USE_AUDIO #ifdef USE_AUDIO
initaudio(); initaudio();
#endif #endif
#ifdef USE_AMOEBA #ifdef USE_AMOEBA
initamoeba(); initamoeba();
#endif #endif
#ifdef USE_GL
initgl(); initgl();
#ifdef USE_PANEL #ifdef USE_PANEL
initpanel(); initpanel();
#endif #endif
#endif
#ifdef USE_STDWIN
if (use_stdwin) if (use_stdwin)
initstdwin(); initstdwin();
#endif
} }
void void
donecalls() donecalls()
{ {
#ifdef USE_STDWIN
if (use_stdwin) if (use_stdwin)
wdone(); wdone();
#endif
#ifdef USE_AUDIO #ifdef USE_AUDIO
asa_done(); asa_done();
#endif #endif