Re: [HACKERS] question on some code.

2005-07-19 Thread Chris Bowlby
Hi Tom, good to hear from you. It was my miss-understanding of what the code was doing, not the issue with the compiler :> At 03:22 PM 7/19/2005, Tom Lane wrote: Chris Bowlby <[EMAIL PROTECTED]> writes: > I understand the concept of the code, to append binary values to a string > buffer (cha

Re: [HACKERS] question on some code.

2005-07-19 Thread Chris Bowlby
Ahh, so it's not attempting to turn it into an "acsii" string, just storing raw binary data... Ok that makes sense now, thanks for the help. At 02:54 PM 7/19/2005, Korry wrote: If I understand the code right, your trying to pass in to appendBinaryStringInfo an "address" or reference to the n8

Re: [HACKERS] question on some code.

2005-07-19 Thread Tom Lane
Chris Bowlby <[EMAIL PROTECTED]> writes: > I understand the concept of the code, to append binary values to a string > buffer (char *), but, under my compiler on FreeBSD 5.4.x (gcc (GCC) 3.4.2 > [FreeBSD] 20040728) I see a few issues that have cropped up. You've got a broken compiler then, becau

Re: [HACKERS] question on some code.

2005-07-19 Thread Korry
If I understand the code right, your trying to pass in to appendBinaryStringInfo an "address" or reference to the n8, n16, or n32 variables and cast them so that a char * pointer can access that address space. Through some testing that I've been doing (outputting the values in the appendB