


CXREF(1V)                USER COMMANDS                  CXREF(1V)



NAME
     cxref - generate a C program cross-reference

SYNOPSIS
     cxref [ -c ] [ -w [ _n_u_m ] ] [ -o _f_i_l_e_n_a_m_e ] [ -t ] _f_i_l_e_n_a_m_e_s

SYSTEM V SYNOPSIS
     /usr/5bin/cxref [ -c ] [ -w [ _n_u_m ] ] [ -o _f_i_l_e_n_a_m_e ] [ -t ]
     _f_i_l_e_n_a_m_e_s

AVAILABILITY
     This command is available with the _S_y_s_t_e_m _V software instal-
     lation  option.   Refer to _I_n_s_t_a_l_l_i_n_g _S_u_n_O_S _4._1 for informa-
     tion on how to install optional software.

DESCRIPTION
     cxref analyzes a collection of C files and attempts to build
     a cross-reference table.  cxref utilizes a special option of
     cpp(1) to include #define'd information in its symbol table.
     It  produces  a  listing  on  standard output of all symbols
     (auto, static, and global) in each file separately, or  with
     the  -c  option,  in  combination.   Each symbol contains an
     asterisk (*) before the declaring reference.

SYSTEM V DESCRIPTION
     The System V version of cxref, run as /usr/5bin/cxref, makes
     the C preprocessor search for include files in /usr/5include
     before searching for them in /usr/include.

OPTIONS
     In addition to the -D, -I and -U options (which are  identi-
     cal  to  their  interpretation  by  cc(1V)),  the  following
     options are interpreted by cxref:

     -c              Print  a  combined  cross-reference  of  all
                     input files.

     -w[ _n_u_m ]       Width option which formats output  no  wider
                     than  _n_u_m  (decimal)  columns.   This option
                     will default to 80 if _n_u_m is  not  specified
                     or is less than 51.

     -o _f_i_l_e_n_a_m_e     Direct output to named _f_i_l_e.

     -s              Operate silently; does not print input  file
                     names.

     -t              Format listing for 80-column width.

FILES
     /usr/tmp/xr*
          temporary files



Sun Release 4.1  Last change: 16 September 1989                 1






CXREF(1V)                USER COMMANDS                  CXREF(1V)



SEE ALSO
     cc(1V), cpp(1)

DIAGNOSTICS
     Error messages are unusually cryptic, but usually mean  that
     you cannot compile these files, anyway.

NOTES
     While the compiler allows 8-bit strings and comments, 8-bits
     are  not  allowed anywhere else.  See cc(1V) for an explana-
     tion about why cc is not 8-bit clean.

BUGS
     cxref considers a formal argument in a #define macro defini-
     tion to be a declaration of that symbol. For example, a pro-
     gram that #includes ctype.h, will contain many  declarations
     of the variable c.






































Sun Release 4.1  Last change: 16 September 1989                 2



