why this indent result looks abnormal? when i drop the cast operator from source, it works well? why
"陈建锋" <[email protected]>
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
line 38 in attachment _______________________________________________ bug-indent mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-indent
test_indent.typescript
(text/plain, 1.2 KB)
1 Script started on 20070816 094340
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 ~./[K[K/.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 20070816 094507