bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

white space after star unexpected


From: Lin Ming
Subject: white space after star unexpected
Date: Tue, 17 Jun 2008 13:56:41 +0800

Hi, 

When indent a C file with some "typedef struct", indent adds a
unexpected whitespace after "*".

# cat test1.c
typedef struct mystruct s;

void test(s *p);

# indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs test1.c

# cat test1.c
typedef struct mystruct s;

void test(s * p);
             ^Here is an unexpected white space


# cat test2.c
typedef struct mystruct s;

void foo()
{
        return;
}

s test(struct mystruct *p);

# indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs test2.c

# cat test2.c
typedef struct mystruct s;

void foo()
{
        return;
}

s test(struct mystruct * p);
                        ^Here is an unexpected white space


Thanks,
Lin Ming








reply via email to

[Prev in Thread] Current Thread [Next in Thread]