Re: [HACKERS] Adding some const keywords to external interfaces

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: darcy(at)druid(dot)net (D'ArcyJ(dot)M(dot)Cain)
Cc: darcy(at)druid(dot)net, tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Adding some const keywords to external interfaces
Date: 1999-02-02 19:19:13
Message-ID: 199902021919.OAA06987@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> > > Thus spake Bruce Momjian
> > > > These are good points. Can you post the patch again? I deleted it.
> > >
> > > I bounced it directly to you rather than reposting to the list.
> > >
> > > > Sounds like it would be safe. I am interested in const-ify-ing the
> > > > backend code, if possible. It does offer a level of code checking that
> > > > we don't currently have.
> > >
> > > Me too but as I said, this patch doesn't do that. It only const-ifies
> > > the the arguments to an external interface.
> > >
> > > > The only issue is that is has to be done pretty exhaustively. If you
> > > > don't, your new const function parameters start passing params to
> > > > functions that takes non-const params, and warnings start to fly.
> > >
> > > I compiled the entire tree without any warnings so I assume that the
> > > changes wound up being pretty localized.

> Thus spake Bruce Momjian
> > We agreed to skip this right now, right?
>
> I still think it's benign at worst. Shall I keepthe changes and resubmit
> later?
>

Didn't we agree we have to do all the const stuff at once? And people
addressing those internal fields would now find them to be const? I
really don't remember.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-02-02 19:20:02 Re: [HACKERS] Patch (was: tough locale bug)
Previous Message Bruce Momjian 1999-02-02 19:06:55 Re: [HACKERS] Something wacko about EXPLAIN cost stats