emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: C indentation error.


From: Michael Cadilhac
Subject: Re: C indentation error.
Date: Mon, 03 Apr 2006 17:14:10 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Alan Mackenzie <address@hidden> writes:

> Hi, Michael, Tim and Richard!

  And hi everybody !

>>>     > #foo :\
>>>     > bar

>> typedef struct {
>>      int chanCnt:5;                       // correct indentation
>> u_char_t chanCntRsvd:3;     // INCORRECT indentation
>> } CbChanCnt_t;
>
> The following patch should fix both of these bugs.  :-)  Would you please
> try it out and get back to me on address@hidden if it doesn't.

  Yes, that makes it :-) The error is no longer triggered.

  Anyway, as I check the file where I had the error, and re-indent it,
  I've a more or less unexpected behavior :

#define CHOICE_COMMAND(N, Command)                      \
    case N:                                             \
      if ((Command) != ERROR)                           \
        return false;                                   \
    break;

  The « break » keyword is badly indented ; if I remove the line with
  the #define, it could come back indented at the right place.

  I'm saying « more or less » because I agree it's not a common use.

  Greetings,

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |   )\._.,--....,'``.
123 av. de Fontainebleau | 08.70.65.13.14 |  /.  _.. \   _\  (` ._,.
94270 Le Kremlin Bicetre | 06.23.20.31.30 | '._.-(,_..'--(,_...`-..'




reply via email to

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