Skip to Content.
Sympa Menu

freetds - Re: indent(1) bent

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: indent(1) bent
  • Date: Fri, 25 Oct 2002 10:08:57 +0200


>
> Announcement. If you set you editor to something other than
> tabstop=5, and
> have cause to wrap a long set of parameters, please be sure
> things line up
> with tabstop=5. E.g.:
>
> if ((ret = tds_process_row_tokens(dbproc->tds_socket, &rowtype,
> &computeid)) == TDS_SUCCEED) {
>
> that's what our .indent.pro will do now.
>

Other solution should use different setting for breaking line.
Using -nlp -ci5 (I suggest also -ip5) align continued line to a single tab

Like

if ((ret = tds_process_row_tokens(dbproc->tds_socket, &rowtype,
&computeid)) == TDS_SUCCEED) {

This do not reduce very much the space for code.

> > the CodingStyle document specifies functions to be written
> > without a space between name and (, so that is the policy
> at present.
>
> That's K&R convention. I guess I'm outvoted. :( I'll change the
> .indent.pro to -npcs, if someone else doesn't beat me to it.
>

Updated

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page