Re: Double linked list with one pointer - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: Double linked list with one pointer
Date
Msg-id 20031208163642.F8551@lustre.dyn.wiw.org
Whole thread Raw
In response to Re: Double linked list with one pointer  (Manfred Spraul <manfred@colorfullife.com>)
List pgsql-hackers
At 2003-12-07 18:19:26 +0100, manfred@colorfullife.com wrote:
>
> There is a new type in C99 for "integer that can hold a pointer
> value". I think it's called intptr_t resp. uintptr_t, but I don't have
> the standard around.

Yes, they're called intptr_t and uintptr_t (§7.18.1.4), but they're both
optional types.

I note in passing that the xor-trick is one of the pointer-hiding tricks
that are the bane of garbage collectors for C (the other common example
being writing a pointer to a file and reading it back).

-- ams


pgsql-hackers by date:

Previous
From: strk
Date:
Subject: ERROR: Index pg_toast_8443892_index is not a btree
Next
From: Bruce Momjian
Date:
Subject: Re: CVS HEAD compile failure