indent 2.2.10 toggles the output on subsequent calls

View: New views
1 Messages — Rating Filter:   Alert me  

indent 2.2.10 toggles the output on subsequent calls

by Gernot Tenchio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

After upgrading to fedora 10 and indent-2.2.10 the attached code
snippet toggles the output of indent between two different styles.

This meens, indenting an always indented file reformats it again. I've
used indent without args.

Any hints?

Gernot
--
office: g.tenchio_AT_telco-tech_DOT_de  http://www.telco-tech.de/
privat: gernot_AT_tenchio_DOT_de        http://www.tenchio.de/

Verbringe deine Zeit nicht mit der Suche nach einem Hindernis,
vielleicht ist keins da. (Franz Kafka)

[t.orig.c]

void a ()
{
  id = source ? (f ? f->id_src_dev : fwr->id_src_dev) : (f ? f->id_dst_dev : fwr->id_dst_dev);
 
  strbuf_appendf(sb, "%s\n",inet_ntoa(*((struct in_addr *) &ifr->ifr_addr.sa_data[sizeof(sa.sin_port)])));
}


_______________________________________________
bug-indent mailing list
bug-indent@...
http://lists.gnu.org/mailman/listinfo/bug-indent