File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /* Configuration containing EVERYTHING */
1+ /* Configurable Python configuration file */
22
3- /* At CWI, this implies stdwin, audio, Amoeba and the NASA Panel Library */
4- #define USE_AUDIO
5- #define USE_AMOEBA
6- #define USE_PANEL
3+ #ifdef USE_STDWIN
4+ #include <stdwin.h>
75
86static int use_stdwin;
7+ #endif
98
109/*ARGSUSED*/
1110void
1211initargs(p_argc, p_argv)
1312 int *p_argc;
1413 char ***p_argv;
1514{
15+ #ifdef USE_STDWIN
1616 extern char *getenv();
1717 char *display;
1818
@@ -44,6 +44,7 @@ initargs(p_argc, p_argv)
4444
4545 if (use_stdwin)
4646 winitargs(p_argc, p_argv);
47+ #endif
4748}
4849
4950void
@@ -53,25 +54,35 @@ initcalls()
5354 initmath();
5455 initregexp();
5556 initposix();
57+
5658#ifdef USE_AUDIO
5759 initaudio();
5860#endif
61+
5962#ifdef USE_AMOEBA
6063 initamoeba();
6164#endif
65+
66+ #ifdef USE_GL
6267 initgl();
6368#ifdef USE_PANEL
6469 initpanel();
6570#endif
71+ #endif
72+
73+ #ifdef USE_STDWIN
6674 if (use_stdwin)
6775 initstdwin();
76+ #endif
6877}
6978
7079void
7180donecalls()
7281{
82+ #ifdef USE_STDWIN
7383 if (use_stdwin)
7484 wdone();
85+ #endif
7586#ifdef USE_AUDIO
7687 asa_done();
7788#endif
You can’t perform that action at this time.
0 commit comments