| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Version 1 Calling convention |
| Дата | |
| Msg-id | 20060830100003.GJ13929@svana.org обсуждение |
| Ответ на | Re: Version 1 Calling convention ("Jasbinder Bali" <jsbali@gmail.com>) |
| Ответы |
Re: Version 1 Calling convention
|
| Список | pgsql-general |
On Wed, Aug 30, 2006 at 05:38:34AM -0400, Jasbinder Bali wrote: > PG_FUNCTION_INFO_V1 (test); > <snip> > char *raw_rawemail1 = PG_GETARG_CHAR_P(1); //line 6 (warning > thrown for this line) <snip> > Was trying to test the code given in the postgres manual. > The only diff being that i changed the data type from text* to char* and it > gives me a warning like: > > "initialization makes pointer from integer without a cast" at line 6 as > commented above. > > Can any1 point why? Sure, there's no such function PG_GETARG_CHAR_P(). You should set your compiler to warn about stuff like this. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера