CROSSREF Manual
C
Sample Listing
Table 5-1. C Identifier Classes
CROSSREF Default C
Class Setting Type
_______________________________________________________________
CONSTANTS ON Enumeration constants
FUNCTIONS ON Functions
MACROS ON #define(s)
TYPES ON User-defined and compiler-
defined (anonymous) types
VARIABLES ON All variables
NOTE
CROSSREF includes a data type description for all identi-
fier classes except MACROS and FUNCTIONS in the output
listing.
SAMPLE LISTING
The following example starts CROSSREF, scans the file named WCC,
and generates a listing to $s.#lp:
17> CROSSREF
CROSSREF-CROSS-REFERENCE PROGRAM-T9622C00-(15JUL87)
Copyright Tandem Computers Incorporated 1982, 1983, 1985, 1986
&SET LANGUAGE c
&SCAN wcc
&GENERATE /OUT $s.#lp/
&EXIT
18>
On the following pages, you can see the program and its cross-
reference listing.
Figure 5-1 shows the C program that CROSSREF scanned to produce
the cross-reference listing.
5-2