bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] I want to remove casting spaces even if I uses custom type


From: Taeho Oh
Subject: [Bug-indent] I want to remove casting spaces even if I uses custom types with typedef
Date: Tue, 31 Dec 2002 12:24:20 +0900

Hi

I like GNU indent very much. it's fantastic for programmer.

I have a question. I want to remove casting spaces even if I uses custom
types with typedef.

My indent option is like following and the GNU indent version is 2.2.8.
indent -bad -bap -bbb -bbo -nbc -bl -bli0 -bls -c33 -cbi2 -cd33 -cdb
-ncdw -nce -ci2 -cli2 -cp33 -ncs -d0 -nbfda -di2 -fc1 -fca -nhnl -i2
-ip0 -l78 -c78 -lp -nlps -npcs -pi2 -nprs -psl -saf -sai -saw -sbi0 -sc
-sob -ss -ts2 -nut

I tried to indent following code.
--------------------
typedef char oh_char;

int
func(oh_char ** a)
{
  oh_char *ch;

  ch = *(oh_char **) a;

}
--------------------

But I can't remove the space between "**" and "a". And I can't remove
the space between "(oh_char **)" and "a".

How can I remove that space? when I use primitive types ( int, char,
short, . . . ) it's ok. And when I use struct or enum, it's ok. But when
I use custom types with typedef, I can't remove space.

Happy New Year.
--
Taeho Oh ( address@hidden, address@hidden )
http://ohhara.sarang.net
Alticast
http://www.alticast.com
Postech ( Pohang University of Science and Technology )
http://www.postech.edu




reply via email to

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