"William James" <williamjamesgnusolaris at gmail.com> wrote:

> > Because the style guide says so:
> >
> >   
> > http://www.opensolaris.org/os/community/documentation/getting_started_docs/cstyle.ms.pdf
>
> That are Sun rules, not Opensolaris rules. It seems archaic today to
> have a 50 year old punch card-style 80-column limit. Computers use
> silicon chips, not vacuum tubes. Punch cards have been obsoleted,
> operating systems use more than 640k, disks can hold more than 4GB. I
> think the Slashdot article is right: A 80-column limit is history.

There is a modified "cstyle" from me that changed the default to 132 in Summer 
2004 by introducing a "Cstyle" wrapper. There are also some other options:

-l
-b
-K
-B


sage: cstyle [-c] [-h] [-p] [-v] [-C] [-P] [-l #] [-b] [-K] [-B] file ...
        -c      check continuation indentation inside functions
        -h      perform heuristic checks that are sometimes wrong
        -p      perform some of the more picky checks
        -v      verbose
        -C      don't check anything in header block comments
        -P      check for use of non-POSIX types
        -l #    set maxline length (default is 80)
        -b      do not check for blank after cpp #
        -K      do not check for blank at /* */ comment bounds
        -B      allow /*------- box comments

Cstyle contains:

#!/bin/sh

cstyle -l132 -b -K -B "$@"

J?rg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       schilling at fokus.fraunhofer.de     (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to