CROSSREF Manual

EXTENDED BASIC
Sample Listing
Figure 8-2 shows the first page of the cross-reference listing.
This is the cross-reference file list. It lists the name of each
source file scanned. In this example, only one file, BASEX, was
scanned.
PAGE 1
CROSSREF - CROSS-REFERENCE PROGRAM - T9622C00 - (15JUL87)
Copyright Tandem Computers Incorporated 1982, 1983, 1984, 1985, 1986
FILE NO. FILE NAME
[1] $EM2.UCREF.BASEX
Figure 8-2. CROSSREF Listing--File List
The identifier list makes up the rest of the cross-reference
listing. See Figure 8-3 on the following page. The identifier
list describes each identifier in alphabetic order, showing:
• How it is defined (its attributes)
• Where it is defined (file name and number and line number)
• Where and how it is used in the program
Look at the entry for FNTHISMONTH in the listing. The identifier
header indicates that FNTHISMONTH is a user-defined function
returning a floating-point, REAL(64) value. It is defined in the
file BASEX at line 220.
The reference line indicates that FNTHISMONTH is referenced in
the file BASEX at lines 220, 230.01, 230.02, and 540. It is
defined (indicated by code D) at line 220, and it is write
referenced (indicated by code W) at lines 220, 230.01, and
230.02. The function is invoked (indicated by code I) at line
540.
The value of FNTHISMONTH is initialized at line 220; that is,
value 0 is written to it. Thus, the function is both declared
and write referenced at line 220.
8-5