| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера