9 lines
3.6 KiB
Plaintext
9 lines
3.6 KiB
Plaintext
en·vÅos WHOCALLS
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
WHOCALLS
|
||
1
|
||
|
||
4
|
||
|
||
By: Bill van Melle (vanMelle.pa@Xerox.com)
|
||
|
||
This file contains two useful functions for quick crossreference:
|
||
(whocalls callee usage) [Function]
|
||
maps over all symbols in the current environment, looking for any function that mentions callee according to usage:
|
||
values for usage:
|
||
USES VAR VARS BOUND USEDFREE GLOBALS
|
||
All mean: mention as a variable
|
||
NIL CALLS
|
||
means calls as a function
|
||
(distribute.callinfo) [Function]
|
||
inverts all of the call, use global, use free, bound releations for functions, variables from compiled code. Operates by mapping over all symbols in the sysout that are defined as compiled code, and analyzing their definitions. Anything that is called has a CALLEDBY property of all of the things that call it; any variable bound has a BOUNDBY with the list of functions that bind it, variables that are used globally have a USEDGLOBALBY and variables that are used freely have a USEDFREEBY.
|
||
(References from interpreted code, etc are not detected, so it isn't 100% guaranteed that if something doesn't have a CALLEDBY that it isn't called.....) |