T
tvn
[mod note: removed "alt.comp.lang.c" because my news server doesn't have it.]
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;
}
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;
}