bug-indent
[Top][All Lists]
Advanced

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

Re: white space after star unexpected


From: david ingamells
Subject: Re: white space after star unexpected
Date: Tue, 17 Jun 2008 17:41:26 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080421)

Lin Ming wrote:
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






_______________________________________________
bug-indent mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-indent


#cat test1.c
typedef struct mystruct s;

void test(s *p);

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

#cat test1.c
typedef struct mystruct s;

void test(s *p);


# QED


reply via email to

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