bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] address@hidden: Many bugs in indent w/ macros]


From: Carlo Wood
Subject: [Bug-indent] address@hidden: Many bugs in indent w/ macros]
Date: Thu, 6 Dec 2001 02:15:52 +0100
User-agent: Mutt/1.2.5i

-- 
Carlo Wood <address@hidden>
--- Begin Message --- Subject: Many bugs in indent w/ macros Date: Wed, 05 Dec 2001 18:51:50 +0100
Hi,
unfortunately indent is full of bugs when it comes to macros.
Note: I *like* indent, and think it's a great tool overall. It works
quite well except for macros.

The following macro code
--
/* a comment */
AMACRO (foo, bar, baz)
/* another comment */
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
/* another comment */
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
FINALMACRO (foo, bar, baz)
--
gets mangled into
--
/* a comment */
AMACRO (foo, bar, baz)
/* another comment */
  ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz) ANOTHERMACRO (foo, bar, baz)
/* another comment */
  ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz)
ANOTHERMACRO (foo, bar, baz) FINALMACRO (foo, bar, baz)
--
(File ends with last macro.) I'm not sure whether this still compiles.
It is certainly odd. Note that after every comment after the first, the
first macro after each comment gets indented. Now this sentence was so
convoluted that the code regarding macros may be similarly so with
regard to macros.
-- 
Regards,
Cyrille Artho - http://artho.com/ - Tel. +41 - [0]1 - 632 09 88
Life, loathe it or ignore it, you can't like it.
                -- Marvin, "Hitchhiker's Guide to the Galaxy"

--- End Message ---

reply via email to

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