From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,87d4d303a4b2ff9c,start X-Google-Attributes: gid10d4db,public From: "Andrew M. Bishop" Subject: Cxref - C program cross-referencing & documentation tool Date: 1996/05/23 Message-ID: X-Deja-AN: 156641898 x-original-date: Wed, 22 May 1996 19:26:06 +0100 organization: ? followup-to: comp.os.linux.development.apps newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- Cxref Version 1.1 ================= Produce LaTeX or HTML documentation including cross-references from C program source code. Works for ANSI C, including a few gcc extensions. The documentation for the program is produced from comments in the code that are appropriatly formatted. The cross referencing comes from the code itself and requires no extra work. The documentation is produced for each of the following: Files - A comment that applies to the whole file. Functions - A comment for the function, including a description of each of the arguments and the return value. Variables - A comment for each of a group of variables and/or individual variables. #include - A comment for each included file. #define - A comment for each pre-processor symbol definition, and for macro arguments. Type definitions - A comment for each defined type and for each element of a structure or union type. Any or all of these comments can be present in suitable places in the source code. The cross referencing is performed for the following items Files - The files that the current file is included in (even when included via other files). #includes - Files included in the current file. - Files included by these files etc. Variables - The location of the definition of external variables. - The files that have visibility of global variables. - The files / functions that use the variable. Functions - The file that the function is prototyped in. - The functions that the function calls. - The functions that call the function. - The files and functions that reference the function. - The variables that are used in the function. Each of these items is cross referenced in the output. Includes extensive README with details and examples on how to use the program. New for version 1.1 - ------------------- Fixed a number of bugs in the 'front-end' of the program Makefile changed to make ANSI compatible latex-style.c source file. Lexical analyser code fixed to work with a POSIX lex program. GNU __attribute__ & __extension__ compiler directives handled better. Better debugging options for the parser. Bit-fields now parsed correctly and recognised as such in output. Enum typedefs allowed to have a trailing comma. Function definitions with no return type are now recognised as int and those with no arguments recognised as void. Allows the asm() GNU extension. Fixed a problem with #include confusion with mix of global and local files. Availability - ------------ This program has been tested on the following systems: Linux 1.[123].x, SunOS 4.1.x, Solaris 2.x, HPUX 10.x The complete version 1.1 cxref-1.1.tgz, 210317 Bytes, a gzipped tar file of C source code. An upgrade from version 1.0 cxref-1.0-1.1.diff.tgz, 11036 Bytes, a gzipped tar file of changes. (requires GNU patch to apply.) Available from ftp.demon.co.uk in the /pub/unix/unix/tools directory (to be re-organised to /pub/unix/tools in the future). Author & Copyright - ------------------ This program is copyright Andrew M. Bishop (amb@gedanken.demon.co.uk) and distributed under GPL. I would like also to thank the many people who have e-mailed me after version 1.0 was released, for finding bugs and reporting them. LSM Entry - --------- Begin3 Title: Cxref - C program cross-referencing & documentation tool Version: 1.1 [22-May-96] Entered-date: 22-May-96 Description: A program that takes as input a series of C source files and produces a LaTeX or HTML document containing a cross reference of the files/functions/variables in the program, including documentation taken from suitably formatted source code comments. The documentation is stored in the C source file in specially formatted comments, making it simple to maintain. The cross referencing includes lists of functions called, callers of each function, usage of global variables, header file inclusion, macro definitions and type definitions. Works for ANSI C, including a few gcc extensions. Keywords: C programming document cross-reference Author: amb@gedanken.demon.co.uk Maintained-by: amb@gedanken.demon.co.uk Primary-site: ftp.demon.co.uk /pub/unix/unix/tools 210k cxref-1.1.tgz Alternate-site: Original-site: Platform: UNIX Copying-policy: GPL End Andrew. - -- - ---------------------------------------------------------------------- Andrew M. Bishop amb@gedanken.demon.co.uk -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMaQR74QRll5MupLRAQE8KQP9HGsimGcCK2yeE6VyfkQQMToCX8k/8hw1 QRedvwqkJcIjcmE4bilxo/xkwJmeV/MxyC603gm6Ram0iW/GYbbUF7O9cmEXeQTf UuOsCecIrbwCOiN9auYyZS2c2teomecapiG9DPsrEH8BWil912XDTan93yrrRTzF XAVXEKlc6FA= =+tRt -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION.