From: Jack Jansen Date: Thu, 26 Jan 1995 16:40:10 +0000 (+0000) Subject: Added a global 'stdwin is active' flag. X-Git-Tag: v1.2b3~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d7f6bd3b700023f78015620b59701e2f09827e0;p=thirdparty%2FPython%2Fcpython.git Added a global 'stdwin is active' flag. --- diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c index 896207cca5ec..5ca798f49d00 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);