noft Manual (G06.26+)

noft Options
noft Manual528273-001
3-35
LISTUNREFERENCED or LUR
The C program in Example 3-29 is equivalent to the pTAL program in Example 3-27 on
page 3-34.
If the program in Example 3-29 is compiled and made executable and the program file
is designated to noft with the option FILE or F on page 3-16, Example 3-30 shows the
result of the LISTUNREFERENCED option—the NMC compiler eliminates unreferenced
prototypes. Compare Example 3-30 to Example 3-34 on page 38, which shows the
result of the LISTUNRESOLVED option.
Example 3-29. C Program for Example 3-30 and Example 3-34
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;
}
Example 3-30. LISTREFERENCED Option for Example 3-29 C Program
noft> listunreferenced *
*** DATA ERROR *** [1055]:
Did not find any unreferenced symbols matching scope.