Package: astyle
Version: 2.01-1
Severity: normal

The following code is misinterpreted by astyle:

#include <stdio.h>

int main(int argc, char** argv)
{
        int i = 3;
        do {
                printf("hi\n");
        }
        /* this comment confuses astyle */
        while (i--);

        return 0;
}

Using "astyle --options=none --lineend=linux --style=1tbs", it
is changed into the invalid lines:

        do {
                printf("hi\n");
        }

        /* this comment confuses astyle */
        while (i--) {
                ;
        }

The bug is already fixed in the current upstream version.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to