Hi,
I am wondering if there's any C src format that can change something
like
if (something)
if(something)
stmt1;
else
stmt2;
else
stmt3;
into
if (something){
if(something){
stmt1;
}
else{
stmt2;
}
}
else{
stmt3;
}
I've looked at several ones such as astyle and gnu indent but they
can't seem to do this. astyle can put brackets {} if but only 1
line
e.g.,
if (isFoo)
isFoo = false;
becomes:
if (isFoo) {
isFoo = false;
}
--
comp.lang.c.moderated - moderation address: cl...@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
The tool TXL would be make it pretty easy to do this. See http://txl.ca
.
Since when is this ng moderated?
Note the cross post.
--
Ian Collins
Since there is no central moderation team for this newsgroup, it has to
be moderated by /all/ its subscribers. Every time you killfile someone,
you are in some small way moderating the group (as seen through your
newsreader).
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within
Check the cross-posting: comp.lang.c.moderated is moderated, odd as that
might seem ;-). I have no idea how the details are handled, but I gather
that if you cross-post to one or more moderated newsgroups, the
moderators from each of those groups must approve it before it becomes
available to the general public.
Notice the "comp.lang.c.moderated" on the Newsgroups line. That is, as
one would expect from the name, a moderated group.
S
--
Stephen Sprunk "God does not play dice." --Albert Einstein
CCIE #3723 "God is an inveterate gambler, and He throws the
K5SSS dice at every possible opportunity." --Stephen Hawking