summaryrefslogtreecommitdiffstats
path: root/Modules/stdwinmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-01-26 16:40:10 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-01-26 16:40:10 (GMT)
commit3d7f6bd3b700023f78015620b59701e2f09827e0 (patch)
tree0e1e0c2e7d859b7e19ee6b1ad527037fd26b7b3d /Modules/stdwinmodule.c
parentfdbc79e77963bfb66ac3bc3732ac112c9096075f (diff)
downloadcpython-3d7f6bd3b700023f78015620b59701e2f09827e0.zip
cpython-3d7f6bd3b700023f78015620b59701e2f09827e0.tar.gz
cpython-3d7f6bd3b700023f78015620b59701e2f09827e0.tar.bz2
Added a global 'stdwin is active' flag.
Diffstat (limited to 'Modules/stdwinmodule.c')
-rw-r--r--Modules/stdwinmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index 896207c..5ca798f 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -104,6 +104,8 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */
static object *StdwinError; /* Exception stdwin.error */
+int StdwinIsActive; /* True as soon as stdwin imported */
+
/* Window and menu object types declared here because of forward references */
typedef struct {
@@ -2631,6 +2633,7 @@ initstdwin()
}
#endif
inited = 1;
+ StdwinIsActive = 1;
}
m = initmodule("stdwin", stdwin_methods);
d = getmoduledict(m);