Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cxref(CP) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          cxref - generate C program cross-reference

     Syntax
          cxref [ options ] files

     Description
          The cxref command analyzes a collection of C files and
          attempts to build a cross-reference table.  The cxref
          command uses a special version of cpp 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.

          In addition to the -D, -I, and -U options (which are
          interpreted just as they are by cc(CP) and cpp(CP)), the
          following options are interpreted by cxref:

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

          -w<num> Width option which formats output no wider than
                  <num> (decimal) columns.  This option will default
                  to 80 if <num> is not specified or is less than 51.

          -o file Direct output to file.

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

          -t      Format listing for 80-column width.

     Files
          LLIBDIR         usually /usr/lib

          LLIBDIR/xcpp    special version of the C preprocessor.

     See Also
          cc(CP), cpp(CP)

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

     Notes
          The cxref command considers a formal argument in a #define
          macro definition to be a declaration of that symbol. For
          example, a program that #includes ctype.h, will contain many
          declarations of the variable c.

     Standards Conformance
          cxref is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.
                                                (printed 6/18/89)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026