noft Manual (G06.27+, H06.03+, J06.03+)
noft Options
noft Manual—528273-003
3-36
LISTUNREFERENCED or LUR
If the program in Example 3-30 is compiled and made executable and the program file
is designated to noft with the option FILE or F on page 3-17, Example 3-31 shows the
result of the LISTUNREFERENCED option. Compare Example 3-31 to Example 3-36 on
page 3-39, which shows the result of the LISTUNRESOLVED option.
The C program in Example 3-32 is equivalent to the pTAL program in Example 3-30 on
page 3-36.
Example 3-30. pTAL Program for Example 3-31 and Example 3-36
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 3-31. LISTUNREFERENCED Option for Example 3-30 pTAL Program
noft> listunreferenced *
# Unreferenced Name
1 UNREFERENCED
Example 3-32. C Program for Example 3-33 and Example 3-37
extern short unresolved (short);
extern short unreferenced (short);
short unused(short arg)
{
return (short)(arg + 2);
}
long main()
{
short i, j;
i = 5;
j = unresolved(i);
return 0;
}