cxref(1) — Commands
OSF
NAME
cxref − Creates a C program cross-reference listing
SYNOPSIS
cxref [-c] [-Dname][=definition] [-Idirectory] [-Ndnumber] [-Nlnumber]
[-Nnnumber] [-Ntnumber] [-o file] [-s] [-wnumber | -t] file ...
The cxref command analyzes C program files and creates a cross-reference table, using a version of the cpp macro preprocessor to include #define directives in its symbol table.
FLAGS
-cDisplays a combined listing of the cross-references in all input files.
-Dname[=definition]
Defines name as in a #define directive. The default definition is 1.
-Idirectory
Looks first in directory, then looks in the directories on the standard list for #include files with names that do not begin with a / (slash).
-Ndnumber
Changes the dimension table size to number. The default is 2000.
-Nlnumber
Changes the number of type nodes to number. The default is 8000.
-Nnnumber
Changes the symbol table size to number. The default is 1500.
-Ntnumber
Changes the number of tree nodes to number. The default is 1000.
-o fileDirects the output to the specified file.
-sDoes not display the input filenames.
-tMakes the listing 80 bytes wide.
-w[number]
Makes the listing number columns wide, where number is a decimal integer greater than or equal to 51. If you do not specify number or if number is less than 51, the listing will be 80 bytes wide.
DESCRIPTION
The cxref command writes to standard output a listing of all symbols in each file processed, either separately or in combination (see the -c flag).
Function prototypes are handled in a special way: for an old-style function declaration, the function prototype name is listed, but the optional prototype identifiers are not. The formal parameters in a function definition are always listed, whether or not the prototype is an old-style function definition. When a reference to a symbol is that symbol’s declaration, an ∗ (asterisk) precedes it.
EXAMPLES
To provide a combined cross-reference listing of stdin1.c and stdin2.c, making the output 80 bytes wide, enter:
cxref -c -t stdin1.c stdin2.c > output
FILES
/usr/ccs/lib/xpassSpecial version of C preprocessor.