New errors.

This commit is contained in:
Guido van Rossum 1990-10-21 22:15:08 +00:00
parent 4ab9b4c9ad
commit 2a9096b5f9
7 changed files with 137 additions and 126 deletions

View file

@ -36,7 +36,7 @@ getfuncnode(op)
object *op;
{
if (!is_funcobject(op)) {
errno = EBADF;
err_badcall();
return NULL;
}
return ((funcobject *) op) -> func_node;
@ -47,7 +47,7 @@ getfuncglobals(op)
object *op;
{
if (!is_funcobject(op)) {
errno = EBADF;
err_badcall();
return NULL;
}
return ((funcobject *) op) -> func_globals;