| От | Tom Lane |
|---|---|
| Тема | Re: pg_filedump 9.3: checksums (and a few other fixes) |
| Дата | |
| Msg-id | 10892.1371225544@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pg_filedump 9.3: checksums (and a few other fixes) (Jeff Davis <pgsql@j-davis.com>) |
| Ответы |
Re: pg_filedump 9.3: checksums (and a few other fixes)
|
| Список | pgsql-hackers |
Jeff Davis <pgsql@j-davis.com> writes:
> I have a question about the commit though: shouldn't both functions be
> static if they are in a .h file? Otherwise, it could lead to naming
> conflicts. I suppose it's wrong to include the implementation file
> twice, but it still might be confusing if someone tries. Two ideas that
> come to mind are:
> * make both static and then have a trivial wrapper in checksum.c
> * export one or both functions, but use #ifndef CHECKSUM_IMPL_H to
> prevent redefinition
Ah, you are right, I forgot the #ifndef CHECKSUM_IMPL_H dance. Will fix
in a bit.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера