Re: [HACKERS] How can I return a pointer to a use structure from a function

2003-12-19 Thread Tom Lane
Chongbing Liu <[EMAIL PROTECTED]> writes: > If I want the XXX_in function (for my own data type) > to return a pointer to a particular structure, what > micro should I use? You can just use PG_RETURN_POINTER if you're feeling lazy. PG_RETURN_TEXT_P and other wrappers around PG_RETURN_POINTER exist

[HACKERS] How can I return a pointer to a use structure from a function

2003-12-19 Thread Chongbing Liu
Thank you very much for your help. In V1 function calling convention, there are micros like PG_RETURN_TEXT_P and so on. Most of them are used to return values of the built-in datatypes. If I want the XXX_in function (for my own data type) to return a pointer to a particular structure, what mic