From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,7f7458a6b8cface7,start X-Google-Attributes: gid10d4db,public From: "Andrew M. Bishop" Subject: Cxref - C program cross-referencing & documentation tool Date: 1996/10/09 Message-ID: X-Deja-AN: 188295025 organization: ? followup-to: comp.os.linux.development.apps newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- C Cross Referencing & Documenting tool. Version 1.2b - cxref ============================================================ Produce LaTeX or HTML documentation including cross-references from C program source code. Works for ANSI C, including a few gcc extensions. The cxref homepage is accessible via so you can see more details and examples and download the latest version. The documentation for the program is produced from comments in the code that are appropriately 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 and FAQ with details and examples on how to use the program. New for version 1.2b [Released as a bug fix to version 1.2a] - -------------------- Function definitions included from header files do not cause cxref to core dump. Removed dangling cross-references for referenced vars/funcs in the output. Function prototypes within function definitions do not cause loss of references. Typedefs of function types now recognised when used as prototypes. Comments for nested struct/union types now work and the output format changed. The option -warn-xref depends on -xref, warns user if used wrongly but works OK. The index in the cxref.html file is now always at the end in the correct place. The LaTeX output is centred on the page correctly. The cxref-cpp program no longer aborts on certain files in multi-directory source trees, and if the preprocessor does abort then cxref tidies up cleanly. The cxref-query program no longer core dumps on certain cross-references. 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.2 cxref-1.2.tgz, 218334 Bytes, a gzipped tar file of C source code. A patch to upgrade to version 1.2a cxref-1.2-1.2a.diff.gz, 6913 Bytes, a gzipped file of differences. (requires GNU patch to apply.) A patch to upgrade to version 1.2b cxref-1.2a-1.2b.diff.gz, 8937 Bytes, a gzipped file of differences. (requires GNU patch to apply.) [Uploaded on Sat 5 Oct, so may take a couple of days] 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 versions 1.0, 1.1 & 1.2(a) were released, for finding bugs and reporting them. email: amb@gedanken.demon.co.uk [Please put cxref in the subject line] Begin3 Title: Cxref - C program cross-referencing & documentation tool Version: 1.2b [05-Oct-96] Entered-date: 05OCT96 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 213k cxref-1.2.tgz 6k cxref-1.2-1.2a.diff.gz 9k cxref-1.2a-1.2b.diff.gz Alternate-site: Original-site: Platforms: UNIX Copying-policy: GPL End Andrew. - -- - ---------------------------------------------------------------------- Andrew M. Bishop amb@gedanken.demon.co.uk http://www.gedanken.demon.co.uk/ -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCUAwUBMls04IQRll5MupLRAQEc+wP3THeJVzCrekOXnw8a44eoyBVfMQNVIyQz INKhPWWT2Sg6/cwzoT/vWeuw3+rRoojrGc+QlBT201VI+sIBEWd9gup/bYoy4NTR 58O1jpd8aohrbByiqBOXQYtzvvI5wH0VL1JvTYmYAtu3B9bLpuUKzjJUB82Blgve IyWcEo06Ug== =m/AP -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. http://www.iki.fi/liw/lasu-public-key.asc has PGP key 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. This group is archived at http://www.iki.fi/liw/linux/cola.html