Re: why this indent result looks abnormal? when i drop the cast operator from source, it works well? why

david <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Looks like you've found a bug.
I'll have to investigate.

D

??? wrote:
> line 38 in attachment
>   
> ------------------------------------------------------------------------
>
>      1	Script started on 2007Äê08ÔÂ16ÈÕ ÐÇÆÚËÄ 09ʱ43·Ö40Ãë
>      2	sgb@oracle /tmp>bash -version
>      3	GNU bash, version 3.00.15(1)-release (i386-redhat-linux-gnu)
>      4	Copyright (C) 2004 Free Software Foundation, Inc.
>      5	sgb@oracle /tmp>uname -a
>      6	Linux oracle.dev 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux
>      7	sgb@oracle /tmp>indent -version
>      8	GNU indent 2.2.9
>      9	sgb@oracle /tmp>cat ~.//.indent.pro
>     10	-ppi3
>     11	-ip3
>     12	-psl
>     13	-sc
>     14	-sob
>     15	-pcs
>     16	-bap
>     17	-bad
>     18	-bbb
>     19	-ci2
>     20	-ncdw
>     21	-nce
>     22	-i2
>     23	-gnu
>     24	-hnl
>     25	-cs
>     26	sgb@oracle /tmp>cat ./test_indent.sh 
>     27	echo "void printGathShm (void *base) 
>     28	{ for (i = 0; i < MAX_ARRAY_SIZE; i++) { 
>     29	p = (char *) base + i; }}" |
>     30	indent -st
>     31	sgb@oracle /tmp>sh ./test_indent.sh 
>     32	void
>     33	printGathShm (void *base)
>     34	{
>     35	  for (i = 0; i < MAX_ARRAY_SIZE; i++)
>     36	    {
>     37	      p = (char *) base + i;
>     38	}}
>     39	sgb@oracle /tmp>exit
>        
>     40	Script done on 2007Äê08ÔÂ16ÈÕ ÐÇÆÚËÄ 09ʱ45·Ö07Ãë
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> bug-indent mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bug-indent
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.