Re: white space after star unexpected

david ingamells <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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
> [email protected]
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.