On Thu, May 01, 2008 at 09:16:28PM -0700, Tim Kientzle wrote:
> In all of these cases, though, adding a space between the '0' and
> the 'b' changes the meaning, so is wrong. Indent can
> change/insert whitespace, but should never do so in a way that
> changes the meaning of the program. In all of
But I would like to use indent(1) to reformat contributed code
automatically. Unfortunately, the 0b notation is not supported by that
program, and the resulting code looks like this:
foo = 0 b00101010;
... then compilation fails, bla bla bla...
I can't think of a case (outside of "0x..
On Sun, 27 Apr 2008 02:01:53 +0200, Max Laier <[EMAIL PROTECTED]> wrote:
> On Saturday 26 April 2008 23:35:57 Romain Tarti?re wrote:
>> Hello FreeBSD hackers!
>>
>> I'm using avr-gcc from the ports and relying on the 0b prefix notation
>> for binary constants, that is:
>>
>> foo = 0b00101010;
On Sun, Apr 27, 2008 at 03:38:54PM -0500, Joshua Isom wrote:
> The man page for indent does say "it has a 'forgiving' parser" so I
> don't see why it can't just treat any token starting with a zero as
> special, treat 0b01, 0x0A, 0f4 and 010 as a number regardless of the
> base, even if it doesn
>On Apr 26, 2008, at 5:01 PM, Max Laier wrote:
>>* On Saturday 26 April 2008 23:35:57 Romain Tartière wrote:
*>>>* Hello FreeBSD hackers!
*>>>*
*>>>* I'm using avr-gcc from the ports and relying on the 0b prefix
*>>>* notation
*>>>* for binary constants, that is:
*>>>*
*>>>* foo = 0b00101010;
*>
Romain Tartière <[EMAIL PROTECTED]> wrote on 26 Apr 2008 23:35:
>...
> I was so wondering how useful(less) it was to support this extension in
> FreeBSD indent(1) program. The version of gcc provided with the base
> system does not support this syntax, and AFAIK, only the avr-gcc port
> support thi
On Apr 26, 2008, at 4:35 PM, Romain Tartière wrote:
Hello FreeBSD hackers!
I'm using avr-gcc from the ports and relying on the 0b prefix notation
for binary constants, that is:
foo = 0b00101010;
Thanks to /usr/ports/devel/avr-gcc/files/patch-0b-constants this is
possible :-)
But I w
On Sun, Apr 27, 2008 at 08:20:53PM +1000, Peter Jeremy wrote:
> By inserting whitespace, indent(1) is changing the syntax of the input
> and, IMHO, indent should not be doing that - its brief is to
> re-arrange whitespace to (hopefully) improve legibility, not make
> syntactic changes.
>
> I would
On Sun, Apr 27, 2008 at 02:01:53AM +0200, Max Laier wrote:
>On Saturday 26 April 2008 23:35:57 Romain Tartière wrote:
>> I'm using avr-gcc from the ports and relying on the 0b prefix notation
>> for binary constants, that is:
>>
>> foo = 0b00101010;
...
>I can't think of a case (outside of "0x
On Apr 26, 2008, at 5:01 PM, Max Laier wrote:
On Saturday 26 April 2008 23:35:57 Romain Tartière wrote:
Hello FreeBSD hackers!
I'm using avr-gcc from the ports and relying on the 0b prefix
notation
for binary constants, that is:
foo = 0b00101010;
Thanks to /usr/ports/devel/avr-gc
On Saturday 26 April 2008 23:35:57 Romain Tartière wrote:
> Hello FreeBSD hackers!
>
> I'm using avr-gcc from the ports and relying on the 0b prefix notation
> for binary constants, that is:
>
> foo = 0b00101010;
>
> Thanks to /usr/ports/devel/avr-gcc/files/patch-0b-constants this is
> possib
On Sat, Apr 26, 2008 at 11:35:57PM +0200, Romain Tartière wrote:
> (patch attached).
Humm ... the patch seems to have been eaten by the list manager. I
uploaded it here:
http://romain.blogreen.org/files/patch-lexi.c
Kind regards,
Romain
--
Romain Tartière <[EMAIL PROTECTED]>http://romai
Hello FreeBSD hackers!
I'm using avr-gcc from the ports and relying on the 0b prefix notation
for binary constants, that is:
foo = 0b00101010;
Thanks to /usr/ports/devel/avr-gcc/files/patch-0b-constants this is
possible :-)
But I would like to use indent(1) to reformat contributed code
13 matches
Mail list logo