Re: How to avoid misformatting of binary values with GNU indent?
indent <[email protected]> Thu, 26 Nov 2009 19:46:53 +0100
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 26/11/09 13:15, Martin Kirsche wrote:
> When GNU indent (at least version 2.2.6 from cygwin and 2.2.10 from
> GnuWin32) is used on the following code...
>
> |void
> main ()
> {
> int i = 0b01010101;
> }
> |
>
> it will be reformatted into this ...
>
> |void
> main ()
> {
> int i = 0 b01010101;
> }
> |
>
> Is there any option in indent that avoids this behavior?
>
No intent doesn't support C derivatives: that construct isn't C. Try the
hexadecimal 0X55 or octal 0125 which are part of C.