bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] RE: Indent declaration indentation


From: Wainwright Carl EXT
Subject: [Bug-indent] RE: Indent declaration indentation
Date: Thu, 11 Sep 2003 09:49:08 +0200

David,
 
I tried the -T option but it seemed to make no difference at all. Cannot 
upgrade as I'm not responsible for the unix platform
 
Is there a special way you have to use the -T option for types as follows
 
typedef struct
{
      int a;
      int b;
} my_struct;
 
I tried all of the following
 
-T my_struct
-Tmy_struct
-T "my_struct"
-T 'my_struct'
 
It seems that all of the options were ignored.

Any clues as to why maybe?
 
Regards
 
Carl

-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Mittwoch, 10. September 2003 19:09
To: Wainwright Carl EXT [
Cc: address@hidden
Subject: Indent declaration indentation



The reason is very simple. indent does not do a parse of the code and so does 
not know that be_crnc_a_ac_cc is a type. use the -T option to tell it to treat 
typedef'd things the same as built-in types.

BTW there is now an indent version 2.2.9.

David.



reply via email to

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