nld and noft Manual
noft Options
nld and noft Manual—520384-003
5-33
LISTUNREFERENCED or LUR
The pTAL program in Example 5-23 explicitly declares two external functions,
unresolved and unreferenced. The program also refers implicitly to the function
stop. The program uses the function unresolved, but does not use the function
unreferenced.
If the program in Example 5-23 is compiled and made executable, and the program file
is designated to noft with the option FILE or F on page 5-15, then Example 5-24
shows the result of the LISTUNREFERENCED option. Compare Example 5-24 to
Example 5-29 on page 5-37, which shows the result of the LISTUNRESOLVED option.
Example 5-23. pTAL Program for Example 5-24 and Example 5-29
INT proc unresolved (arg); ! Function definition
INT arg;
EXTERNAL;
INT proc unreferenced (arg); ! Function definition
INT arg;
EXTERNAL;
INT proc unused (arg);
INT arg;
BEGIN
RETURN (arg + 2);
END;
PROC mainstreet MAIN;
BEGIN
INT i, j;
i := 5;
j := unresolved(i);
END; !Implicit call to stop
Example 5-24. LISTUNREFERENCED Option for Example 5-23 pTAL Program
noft> listunreferenced *
# Unreferenced Name
1 UNREFERENCED