HomeFreeBSD

indent(1): Don't ignore newlines after comments that follow braces.

Description

indent(1): Don't ignore newlines after comments that follow braces.

indent.c has a special loop that stores tokens from between an if () and
the next statement into a buffer. The loop ignored all newlines, but that
resulted in not calling dump_line() when it was needed to produce the
final line of the buffered up comment.

Taken from: Piotr Stefaniak

Details

Provenance
pfgAuthored on
Parents
rS309341: indent(1): Avoid out of bound access of array in_buffer
Branches
Unknown
Tags
Unknown