Re: Double linked list with one pointer

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: Double linked list with one pointer
Дата
Msg-id 20031208163642.F8551@lustre.dyn.wiw.org
обсуждение исходный текст
Ответ на Re: Double linked list with one pointer  (Manfred Spraul <manfred@colorfullife.com>)
Список 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 по дате отправления:

Предыдущее
От: strk
Дата:
Сообщение: ERROR: Index pg_toast_8443892_index is not a btree
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: CVS HEAD compile failure