Skip to Content.
Sympa Menu

freetds - Re: element of style

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: element of style
  • Date: 24 Aug 2002 18:20:52 +0200


Il sab, 2002-08-24 alle 13:26, Brian Bruns ha scritto:
> On 24 Aug 2002, Frediano Ziglio wrote:
>
> > Il sab, 2002-08-24 alle 09:09, James K.Lowden ha scritto:
> > > Contributors,
> > >
> > > There are several places in e.g. tds/convert.c that use comparisons to
> > > very strange decimal numbers. I'd like to see us use hex instead, when
> > > we're looking for overflow conditions and such.
> >
> > Sound right..
> > Perhaps should best to add a CodingStyle document to FreeTDS...
>
> http://www.freetds.org/CodingStyle
>

Should be
switch(x) {
case XXX:
...
break;
...
}
or
switch(x) {
case XXX:
...
break;
...
}
?
(I prefer first type)

struct XXX {
...
};
or
struct XXX
{
...
};
?
(I prefer second type)

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page