Re: Double linked list with one pointer

From: Abhijit Menon-Sen <ams(at)wiw(dot)org>
To:
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Double linked list with one pointer
Date: 2003-12-08 11:06:42
Message-ID: 20031208163642.F8551@lustre.dyn.wiw.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 2003-12-07 18:19:26 +0100, manfred(at)colorfullife(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-08 12:38:36 Re: CVS HEAD compile failure
Previous Message strk 2003-12-08 09:40:09 ERROR: Index pg_toast_8443892_index is not a btree