[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: white space after star unexpected
From: |
Lin Ming |
Subject: |
Re: white space after star unexpected |
Date: |
Wed, 18 Jun 2008 10:24:54 +0800 |
On Tue, 2008-06-17 at 17:41 +0200, david ingamells wrote:
> 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
Thanks, but there are more than 200 typedefs in our project.
Not easy to specify each of them with -T.
Is there another solution?
Thanks,
Lin Ming
>
> #cat test1.c
> typedef struct mystruct s;
>
> void test(s *p);
>
>
> # QED
- white space after star unexpected, Lin Ming, 2008/06/17
- Re: white space after star unexpected, david ingamells, 2008/06/17
- Re: white space after star unexpected,
Lin Ming <=
- Re: white space after star unexpected, david ingamells, 2008/06/18
- RE: white space after star unexpected, Moore, Robert, 2008/06/18
- Re: white space after star unexpected, david ingamells, 2008/06/18
- RE: white space after star unexpected, Moore, Robert, 2008/06/19
- RE: white space after star unexpected, John Hein, 2008/06/19
- RE: white space after star unexpected, Moore, Robert, 2008/06/20
- RE: white space after star unexpected, John E Hein, 2008/06/19
- RE: white space after star unexpected, Moore, Robert, 2008/06/20
- RE: white space after star unexpected, John E Hein, 2008/06/19
- Re: white space after star unexpected, david ingamells, 2008/06/19