Module Name:    src
Committed By:   rillig
Date:           Sun Nov  7 18:26:17 UTC 2021

Modified Files:
        src/usr.bin/indent: indent.c indent.h lexi.c parse.c pr_comment.c

Log Message:
indent: various cleanups

Make several comments more precise.

Rename process_end_of_file to process_eof to match the token name.

Change the order of assignments in analyze_comment to keep the com_ind
computations closer together.

In copy_comment_wrap, use pointer difference instead of pointer addition
to stay away from undefined behavior.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 src/usr.bin/indent/indent.c
cvs rdiff -u -r1.85 -r1.86 src/usr.bin/indent/indent.h
cvs rdiff -u -r1.137 -r1.138 src/usr.bin/indent/lexi.c
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/indent/parse.c
cvs rdiff -u -r1.115 -r1.116 src/usr.bin/indent/pr_comment.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to