]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r303452,r303482,r303483,r303484,r303485,r303487,r303489,r303498,r303499,r303502...
authoreadler <eadler@FreeBSD.org>
Sun, 18 Mar 2018 22:19:52 +0000 (22:19 +0000)
committereadler <eadler@FreeBSD.org>
Sun, 18 Mar 2018 22:19:52 +0000 (22:19 +0000)
commit5b8a4a76d4f9ad0473a6bed722a83d51bfa856ba
treebc2fee61162e8eb343d42ce47e71d18e48ce7b64
parentf2cac80280df9de098891682878e30326a2978b7
MFC r303452,r303482,r303483,r303484,r303485,r303487,r303489,r303498,r303499,r303502,r303523,r303525,r303570,r303571,r303588,r303596,r303597,r303598,r303599,r303600,r303601,r303625,r303629,r303718,r304651,r304684,r304686,r305983,r309217,r309219,r309341,r309342,r309343,r309382,r309415,r309417,r309418,r309419,r310863,r311141,r314613,r318471,r321382,r321383,r321396:

indent(1): avoid calling write(2) with a negative second parameter.
indent(1): Avoid out of bound access of array codebuf.
indent(1): Avoid potential use-after-free.
indent(1): Fix breakage caused by single comment following "else".
indent(1) simply wasn't taught that "else" may be followed by a comment
without any opening brace anywhere on the line, so it was very confused
in such cases.
indent(1): fix struct termination detection.
indent(1): fix struct termination detection.
indent(1): Removed whitespace shouldn't be considered in column calculations.
indent(1): Support "f" and "F" floating constant suffixes.
indent(1): Use NULL instead of zero for pointers.
indent(1): Attempt to preserve some consistent style.
indent(1): Yet more style issues.
indent(1): Consistently indent declarations.
indent(1): Bail out if there's no more space on the parser stack.
indent(1): Remove dead code relating to unix-style comments.
indent(1): Simplify pr_comment().
indent(1): Fix wrapping of some lines in comments.
indent(1): Untangle the connection between pr_comment.c and io.c.
indent(1): Don't newline on cpp lines like #endif unless -bacc is on.
indent(1): replace function call to bzero with memset.
indent(1): Rearrange option parsing code to squelch clang's static analyzer.
indent(1): Use a dash in the license headers.
indent(1): accept offsetof(3) as a keyword.
indent(1): add some comments to quiet down Coverity.
indent(1): remove dead assignments.
indent(1): have the memset invocation somewhat more canonical.
indent(1): Capsicumify
indent(1): minor off-by-one error.
indent(1): fix regression introduced in r303596.
indent(1): Avoid out of bound access of array in_buffer
indent(1): Don't ignore newlines after comments that follow braces.
indent(1): Don't unnecessarily add a blank before a comment ends.
indent(1): Do not define opchar unless it will be used.
indent(1): Optimize parser stack usage.
indent(1): Remove an extra newline added in a previous commit.
indent(1): Avoid out-of-bound accesses of arrays.
indent(1): Avoid out-of-bound accesses of array ps.p_stack.
indent(1): Avoid out of bounds access of array ps.paren_indents
indent(1): add a piece missed in r311138.
indent(1): Support binary integer literals.
indent(1): don't produce unnecessary blank lines.
indent(1): rename the profile file.
indent(1): better alignment of comments on code.
26 files changed:
etc/mtree/BSD.tests.dist
usr.bin/indent/Makefile
usr.bin/indent/args.c
usr.bin/indent/indent.c
usr.bin/indent/indent.h
usr.bin/indent/indent_codes.h
usr.bin/indent/indent_globs.h
usr.bin/indent/io.c
usr.bin/indent/lexi.c
usr.bin/indent/parse.c
usr.bin/indent/pr_comment.c
usr.bin/indent/tests/Makefile [new file with mode: 0644]
usr.bin/indent/tests/binary.0 [new file with mode: 0644]
usr.bin/indent/tests/binary.0.stdout [new file with mode: 0644]
usr.bin/indent/tests/comments.0
usr.bin/indent/tests/comments.0.pro [new file with mode: 0644]
usr.bin/indent/tests/comments.0.stdout
usr.bin/indent/tests/elsecomment.0.pro [moved from usr.bin/indent/tests/elsecomment.pro with 100% similarity]
usr.bin/indent/tests/functional_test.sh [new file with mode: 0755]
usr.bin/indent/tests/label.0.pro [moved from usr.bin/indent/tests/label.pro with 100% similarity]
usr.bin/indent/tests/nsac.0.pro [moved from usr.bin/indent/tests/nsac.pro with 100% similarity]
usr.bin/indent/tests/sac.0.pro [moved from usr.bin/indent/tests/sac.pro with 100% similarity]
usr.bin/indent/tests/surplusbad.0.pro [moved from usr.bin/indent/tests/surplusbad.pro with 100% similarity]
usr.bin/indent/tests/types_from_file.0.list [moved from usr.bin/indent/tests/types_from_file.list with 100% similarity]
usr.bin/indent/tests/types_from_file.0.pro [new file with mode: 0644]
usr.bin/indent/tests/types_from_file.pro [deleted file]