On Sat, Apr 01, 2006 at 04:52:01PM +0200, Joerg Schilling wrote:
> [EMAIL PROTECTED] wrote:
> 
> 
> > Quite; many of our codereview tools expect a 80 columns output
> > and/or support side-by-side diffs.
> >
> > 132 side-by-side just doesn't work for many people.
> 
> A noticable part of the code has become unreadable because of unneeded
> line wraps done to match the 80 character limit.
> 
> My code tried to live in 80 columns as long as the readability 
> is not worse than with longer lines. This usually is the fact when
> long texts are used in printf() like statements that are indented more than
> 4 tabs.

cstyle(1) (and cstyle.ms.pdf) allow long strings to be "out-dented":

                                                        printf(
                "this is a really long string which doesn't fit. %d %d %d %d",
                                                            1, 2, 3, 4);

Cheers,
- jonathan

> 
> J?rg
> 
> -- 
>  EMail:[EMAIL PROTECTED] (home) J?rg Schilling D-13353 Berlin
>        [EMAIL PROTECTED]                (uni)  
>        [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
>  URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
> _______________________________________________
> opensolaris-discuss mailing list
> opensolaris-discuss@opensolaris.org

-- 
Jonathan Adams, Solaris Kernel Development
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to