Re: psql tab completion enhancements

Поиск
Список
Период
Сортировка
От Joachim Wieland
Тема Re: psql tab completion enhancements
Дата
Msg-id 20060203214138.GA5459@mcknight.de
обсуждение исходный текст
Ответ на Re: psql tab completion enhancements  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Fri, Feb 03, 2006 at 04:15:32PM -0500, Tom Lane wrote:
> > - Should all the
> >     const char* foocompletion = { "BAR", "BAZ" };
> >   be changed to
> >     char* foocompletion = { "BAR", "BAZ" };

> Removing const decoration sure seems like the wrong direction to be
> going in.  Why can't you still have const on the functions that expect
> to take non-modifiable lists?

ok, one could duplicate the functionality of complete_from_list() and add a
function complete_from_malloced_list() or similar (or refactor both such that
they call a third function that does the actual work - if possible). I will
do that if this is what you're proposing.


Joachim

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql tab completion enhancements
Следующее
От: Joachim Wieland
Дата:
Сообщение: Re: psql tab completion enhancements