/*
* Call timers that are due.
* Return the time in msec until the next timer is due.
+ * Returns -1 if there are no pending timers.
*/
long
check_due_timer(void)
# ifdef WIN3264
LARGE_INTEGER fr;
+ /* Don't run any timers while exiting. */
+ if (exiting)
+ return next_due;
+
QueryPerformanceFrequency(&fr);
# endif
profile_start(&now);
static int initialised = 0;
#define PYINITIALISED initialised
+static int python_end_called = FALSE;
#define DESTRUCTOR_FINISH(self) self->ob_type->tp_free((PyObject*)self);
if (recurse != 0)
return;
+ python_end_called = TRUE;
++recurse;
#ifdef DYNAMIC_PYTHON
}
++recursive;
#endif
+ if (python_end_called)
+ return;
#if defined(MACOS) && !defined(MACOS_X_UNIX)
GetPort(&oldPort);
(rangeinitializer) init_range_eval,
(runner) run_eval,
(void *) rettv);
- switch(rettv->v_type)
+ switch (rettv->v_type)
{
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
#endif /* DYNAMIC_PYTHON3 */
static int py3initialised = 0;
-
#define PYINITIALISED py3initialised
+static int python_end_called = FALSE;
#define DESTRUCTOR_FINISH(self) Py_TYPE(self)->tp_free((PyObject*)self)
if (recurse != 0)
return;
+ python_end_called = TRUE;
++recurse;
#ifdef DYNAMIC_PYTHON3
PyObject *cmdbytes;
PyGILState_STATE pygilstate;
+ if (python_end_called)
+ goto theend;
+
#if defined(MACOS) && !defined(MACOS_X_UNIX)
GetPort(&oldPort);
/* Check if the Python library is available */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 698,
/**/
697,
/**/