| От | Tom Lane |
|---|---|
| Тема | Re: getopt() and strdup() |
| Дата | |
| Msg-id | 18243.1350155649@sss.pgh.pa.us обсуждение |
| Ответ на | Re: getopt() and strdup() (Phil Sorber <phil@omniti.com>) |
| Ответы |
Re: getopt() and strdup()
|
| Список | pgsql-hackers |
Phil Sorber <phil@omniti.com> writes:
> On Wed, Oct 10, 2012 at 7:54 PM, Bruce Momjian <bruce@momjian.us> wrote:
>> Also, do we want to centralize the definition of pg_strdup() in /port,
>> or leave each module to define it on its own?
> +1 for a centralized definition.
The difficulty with a centralized definition is that it's not clear that
the error path is or should be *exactly* the same for all these usages.
I see at least six variants right now. While some are gratuitous,
some of them are tied into local conventions of each program.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера