#define GEVHDRSZ ( offsetof(GistEntryVector, vector[0]) ) explanation please

From: "jorge alberto" <jorge(dot)is(dot)a(dot)geek(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: #define GEVHDRSZ ( offsetof(GistEntryVector, vector[0]) ) explanation please
Date: 2006-12-08 16:53:23
Message-ID: 7e7297630612080853o65132d32ibf46c12e2a8e7967@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hi!
Can you tell me what does this line means
#define GEVHDRSZ ( offsetof(GistEntryVector, vector[0]) )

#ifndef offsetof#define offsetof(type, field) ((long) &((type *)0)->field)
#endif /* offsetof */

regards
jorge

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2006-12-08 17:01:47 Re: Load distributed checkpoint
Previous Message Tom Lane 2006-12-08 16:43:27 Re: Load distributed checkpoint