C-Beautifier 'cb'

Caren Alink caren at idca.tds.PHILIPS.nl
Tue Oct 3 23:31:29 AEST 1989



Hi!

I've got a question concerning the C-beautifier 'cb'. According to the
manual, the option '-l len' causes cb to split lines that are longer
than len. What do they mean by that?? Is it that the original source is
split in lines with lenght 'len', or is every source line which would
become longer than 'len' split, or.....
And what does the comment "/* code folded from here */" mean??

To illustrate, an example:

original source file x.c:

main(){int i;for(i=1;i<10;1++){printf("hello1");printf("hello2");}/*comment*/}

'cb x.c' gives:

main(){
	int i;
	for(i=1;i<10;1++){
		printf("hello1");
		printf("hello2");
	}/*comment*/
}

and

'cb -l 30 x.c' gives:

main(){
	int i;
	for(i=1;i<10;1++){
/* code folded from here */
	printf("hello1");
	printf("hello2");
/* unfolding */
	}/*comment*/
}


thanks,

 _  _   __  _  _     _   / o_  /
(__(_(_/ (_(-_/ )   (_(_/_// )/(		"uit gouden korenaren..."

phone: 055-43 2803				...hp4nl!philapd!caren



More information about the Comp.unix.questions mailing list