This manual is for Complexity version [=

(define texi-escape-encode (lambda (in-str) (string-substitute in-str '("   ""   "") '("@"  "{"  "}") )  ))

(make-tmp-dir)

(define ver-update (shellf "UPDATED=`date '+%%B %%Y'` ; VERSION='%s' echo $VERSION, updated $UPDATED" (get "version")) )

ver-update =].

Copyright © [= copyright.date =] by Bruce Korb.

     Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

[= prog-title =]
****************

This file documents Complexity version [= version =].  It is a tool designed for analyzing the complexity of ``C'' program functions.  It is very similar to the McCabe scoring, but addresses several issues not considered in that scoring scheme.

This edition documents version [=(. ver-update)=]

     [file intro.texi not included]
     [file compute.texi not included]

Example Output
**************

This is a self-referential example. This output was obtained by going into the complexity source directory and running the command:

     [=`
     src=\`cd ${top_srcdir}/src && pwd\`
     bld=\`cd ${top_builddir}/src && pwd\`
     cmd='complexity --histogram --score --thresh=3'
     echo "$cmd *.c"
     `=]

The --threshold is set to three because all of the functions score below the default threshold of 30.  It is not zero because there are too many trivial (0, 1 or 2) functions for a short example.

This results in:

     [=`
     cd ${src}
     test -f opts.c || ln -s ${bld}/opts.c
     eval ${bld}/${cmd} *.c | sed 's/\\(.\\{66\\}\\).*/\\1/'
     test -L opts.c && rm opts.c
     `=]

     [file invoke-complexity.texi not included]

Copying This Manual
*******************

You may copy this manual under the terms of the FDL (the GNU Free Documentation License (http://gnu.org/licenses/fdl.texi)).

     [file fdl.texi not included]