Re: A couple items on TODO

From: Jeff Davis <list-pgsql-hackers(at)dynworks(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: A couple items on TODO
Date: 2001-08-24 04:15:15
Message-ID: 0GIK00ETU19ZO7@mta5.snfc21.pbi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > *Add use of 'const' for variables in source tree
> >
> > I would discuss this item with the hackers list and see exactly what
> > people want done with it.
>
> I have noticed while working on command.c and heap.c that half the
> functions pass 'const char *' and the other half pass just 'char *'. This
> is a pain when you have a little helper function like 'is_relation(char *)'
> and you want to pass a 'const char *' to it and vice versa. ie. Compiler
> warnings - it's sort of annoying.
>

That's good information, now I have a better idea what I am looking for. I am
using Source Navigator (good recommendation I got reading this list). I am
basically just trying to find either variables that can be declared const, or
inconsistancies (as Chris mentions).

If anyone else has a clearer idea of what the intention of that todo item is,
let me know.

Jeff

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2001-08-24 04:21:03 Re: [PATCHES] encoding names
Previous Message mlw 2001-08-24 03:58:46 Re: OLAP, Aggregates, and order of operations