Several optimizations and speed improvements.

cstubs: Use Matrix type instead of float[4][4].
This commit is contained in:
Sjoerd Mullender 1993-10-22 12:04:32 +00:00
parent a75d306e2b
commit 3bb8a05947
10 changed files with 216 additions and 63 deletions

View file

@ -232,10 +232,11 @@ isprivileged(caller)
object *caller;
{
object *g;
if (caller != NULL && hasattr(caller, "__privileged__"))
static char privileged[] = "__privileged__";
if (caller != NULL && hasattr(caller, privileged))
return 1;
g = getglobals();
if (g != NULL && dictlookup(g, "__privileged__"))
if (g != NULL && dictlookup(g, privileged))
return 1;
return 0;
}