* bltinmodule.c: added built-in function cmp(a, b)

* flmodule.c: added {do,check}_only_forms to fl's list of functions;
  and don't print a message when an unknown object is returned.

* pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup.

* Made jpegmodule.c smaller by using getargs() and mkvalue() consistently.

* Increased parser stack size to 500 in parser.h.

* Implemented custom allocation of stack frames to frameobject.c and
  added dynamic stack overflow checks (value stack only) to ceval.c.
  (There seems to be a bug left: sometimes stack traces don't make sense.)
This commit is contained in:
Guido van Rossum 1992-10-18 18:53:57 +00:00
parent 2db91358de
commit a9e7dc1081
7 changed files with 150 additions and 19 deletions

View file

@ -2078,10 +2078,7 @@ forms_do_or_check_forms(dummy, args, func)
}
g = findgeneric(generic);
if (g == NULL) {
/* XXX What kind of weird object is this? */
/* XXX Maybe caused by a bug here */
fprintf(stderr, "weird object: class %d, label '%s'\n",
generic->objclass, generic->label);
/* Object not known to us (some dialogs cause this) */
continue; /* Ignore it */
}
if (g->ob_callback == NULL) {
@ -2572,7 +2569,9 @@ static struct methodlist forms_methods[] = {
{"getmcolor", forms_getmcolor},
/* interaction */
{"do_forms", forms_do_forms},
{"do_only_forms", forms_do_only_forms},
{"check_forms", forms_check_forms},
{"check_only_forms", forms_check_only_forms},
{"set_event_call_back", forms_set_event_call_back},
/* goodies */
{"show_message", forms_show_message},