codereview(1ONBLD) illumos Build Tools codereview(1ONBLD)

NAME

codereview - Diff list generator

SYNOPSIS

codereview [-e] [-h heading] [-r] oldfile newfile

DESCRIPTION

The codereview command expects two ASCII text files as input and produces Postscript describing the differences between the files. The first file is assumed to be the older version, and the second file is assumed to be the newer version. If either oldfile or newfile is -, the corresponding file is taken from the standard input. The output goes to standard output and lists all lines from both files, with lines changed from the first to the second being highlighted in gray. Lines deleted from the first file are listed in italic, while lines added to the second file are listed in bold.

OPTIONS

-e
Elide unchanged functions. Functions which are unchanged will be heuristically eliminated from the listing. Only the function end is parsed. The assumption is that a brace ('}') in column one represents the end of a function. Thus unchanged structure definitions may be elided also. For support of assembly language files, the string "SET_SIZE(" occurring in a line is assumed to mark the end of a function also.
-hheading
Put a header on each page. The heading string appears at the upper left of each page, and the page number appears at the upper right.
-r
Enable page reversal so that the pages appear in the correct sequence in the output tray of printers like the Apple LaserWriter. The default is not to perform page reversal, which is correct for printers like the NEC Silentwriter LC-890.

FILES

/tmp/lwlpXXXXXX - temporary file used for page reversal

LIMITATIONS

The maximum input line length is 1024 characters. This should not present a problem since the corresponding output line length would be too long to be printed. The program silently truncates input lines that are too long.

NOTES

The command
 
pageview -right -h 17 -w 11 -Ws 1100 850 -dpi 100 out.ps
 
is useful for displaying the results of codereview.

AUTHOR

John Zolnowsky
 
SunSoft, Inc.
August 5, 2008 3rd Berkeley Distribution