| От | Christof Petig |
|---|---|
| Тема | Re: Leaking definitions to user programs |
| Дата | |
| Msg-id | 3A02D16D.77061340@wtal.de обсуждение исходный текст |
| Ответы |
Re: Leaking definitions to user programs
|
| Список | pgsql-hackers |
Hi Bruce, Hi Michael, here is the really short patch for shutting out all postgres definitions from ecpg programs. (e.g. Datum, Pointer, DEBUG, ERROR). Someone really should take a look into libpq and do the same. But I had to copy a small part of c.h (bool,true,false,TRUE,FALSE) into ecpg/include/libecpg.h. And ... there is a possible bug in c.h. You can't check a typedef via #ifndef. typedef char bool; ... #ifndef bool typedef char bool; #endif will fail. But I don't know any decent solution to that problem! Perhaps c.h should be broken into seperate parts. Christof PS: to Jacek: you need this patch to compile libcommon++.a! Bruce Momjian wrote: > Thanks. > > > > Yes, leaking into user programs is a bad practice. Is there a > > > solution/patch for that? > > > > A solution would be a simple patch which is not available yet. But I plan on > > doing one (some other things still have higher priority). > > > > Christof
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера