bug-indent
[Top][All Lists]
Advanced

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

Re: How to avoid misformatting of binary values with GNU indent?


From: indent
Subject: Re: How to avoid misformatting of binary values with GNU indent?
Date: Thu, 26 Nov 2009 19:46:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090915 SUSE/3.0b4-3.6 Thunderbird/3.0b4

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.




reply via email to

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