Re: A couple items on TODO
Jeff Davis <list-pgsql-hackers@dynworks.com>
From: Jeff Davis <list-pgsql-hackers@dynworks.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>, Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-hackers@postgresql.org
Date: 2001-08-24T04:15:15Z
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