Re: [BUGS] postgres.h MACRO issues

2002-07-12 Thread Tom Lane
David Busby <[EMAIL PROTECTED]> writes: > // Put my 32 bytes into the buffer, this works perfect > memcpy(VARDATA(out_text), pbuf, 32); > // Tell it the buffer size > // I don't like that I've got to add the header size myself > // could/should VARATT_SIZEP handle that for me? > VARATT_SIZEP(out_t

[BUGS] postgres.h MACRO issues

2002-07-12 Thread David Busby
Elephant Developers, I've got a bit of an issue with using your macros while building my own C function for PostgreSQL (btw: C functions are a wa cool feature). So I'm returning a char(32) from my function and I'm using the text* structure to work with my data. Here's where I've g