Inconsistent results with indent 2.2.11

Sander Niemeijer <[email protected]> Thu, 11 Mar 2010 15:45:37 +0100
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Hi,

When running indent on a piece of code it is playing ping-pong between  
2 different results instead of giving me one consistent piece of  
indented code.

The options I have included in my .indent.pro is:
-bad -bap -bl -bli0 -bls -c0 -cbi4 -cd0 -cdw -ci0 -cli4 -cp0 -hnl -i4 - 
l80 -lp -nbbo -nbbb -nbc -nbfda -nce -ncs -nfca -npcs -npro -nprs - 
npsl -nsob -nut -nv -pi0 -saf -sai -saw -sbi0 -ss -ts8

The code I am running it on (reduced to a minimal sample) is:
----
int some_long_function_name_0123456780909(int a, int b, int c)
{
     return a + b + c;
}

int main(int argc, char *argv[])
{
     int variable_01234567890 = 0;
     struct
     {
         int data[10];
         int offset;
     } struct_0123;

     struct_0123.offset = 0;
     struct_0123.data[0] = 0;
     return some_long_function_name_0123456780909(variable_01234567890,
                                                  struct_0123.
                                                   
data[struct_0123.offset], 0);
}
----


On consecutive runs of indent that last part is alternatively  
switching between:
----
     return some_long_function_name_0123456780909(variable_01234567890,
                                                  struct_0123.
                                                   
data[struct_0123.offset], 0);
----
and
----
     return some_long_function_name_0123456780909(variable_01234567890,
                                                   
struct_0123.data[struct_0123.
                                                                    
offset], 0);
----

Can indent be modified such that it always just choses one of these  
options and sticks with that?

Best regards,
Sander Niemeijer