forwarded 631966 https://sourceforge.net/tracker/index.php?func=detail&aid=3610504&group_id=2319&atid=102319 thanks
Hello Johannes, Le mardi 28 juin 2011 13:56:24, Johannes Schlumberger a écrit : > Package: astyle > Version: 1.24-1 > Severity: normal > Tags: upstream > > Hi, > > for functions returning an int * it works correctly: > $ cat server.c > int * > f(void) { > return a; > } > $ astyle server.c > formatted /tmp/server.c > $ cat server.c > int * > f(void) > { > return a; > } > > however, functions returning a pointer to a struct, do not have their > opening brace broken, like they should: > $ cat server.c > struct foo * > f(void) { > return a; > } > $ astyle server.c > unchanged* /tmp/server.c > $ cat server.c > struct foo * > f(void) { > return a; > } > > which should be: > struct foo * > f(void) > { > return a; > } > > attached is my astylerc > regards, > Johannes Sorry for taking… almost too years before looking into this. This bug is still present in astyle 2.02.1 (which is currently in experimental), and I just reported it to the upstream bug tracker. Thanks for your patience, Matteo
signature.asc
Description: This is a digitally signed message part.