Re: Formatting pointer declarations
"Andreas Rishede Hyllested" <[email protected]>
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Dear David Ingamells
>
> Thanks for fantastic Indent! I write you to suggest an addition.
>
> Please allow me more flexibility in where to put the '*' when I
> declare a pointer of some sort. I come to realize that Indent only
> supports the original usage by K&R:
>
> int *i = 1;
>
> as opposed to
>
> int* i = 1;
>
> where the '*' really makes it explicit, that we are dealing with a
> variable of type "int-pointer".
>
> Again in the declaration of the argument i, I'd prefer the '*' to
> stick with the type.
>
> static void myFunction(int * i)
> {
> ...
> }
>
> However, instead of spending time discussing pros and cons, I simply
> suggest that the placement of the '*' is made customizable.
>
>
>
>
> --
> Andreas Rishede Hyllested
> mailto: andreas 'at' rishede 'dot' dk
> cell: +45 5190 1829
>