Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28a83ab

Browse files
committed
Made all configurable options optional (see Makefile).
1 parent e8e7cf4 commit 28a83ab

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

Modules/config.c.in

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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

86
static int use_stdwin;
7+
#endif
98

109
/*ARGSUSED*/
1110
void
1211
initargs(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

4950
void
@@ -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

7079
void
7180
donecalls()
7281
{
82+
#ifdef USE_STDWIN
7383
if (use_stdwin)
7484
wdone();
85+
#endif
7586
#ifdef USE_AUDIO
7687
asa_done();
7788
#endif

0 commit comments

Comments
 (0)