public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Marcelo Fernandes <[email protected]>
Cc: [email protected]
Subject: Re: What is the story behind _SPI_PLAN_MAGIC?
Date: Sun, 02 Feb 2025 21:17:03 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAM2F1VNM23FRSVq65orFv1M_8GXB8KKEFWaXNj1eid_3QAP4RQ@mail.gmail.com>
References: <CAM2F1VNM23FRSVq65orFv1M_8GXB8KKEFWaXNj1eid_3QAP4RQ@mail.gmail.com>
Marcelo Fernandes <[email protected]> writes:
> Reading through the SPI code I see this definition:
> #define _SPI_PLAN_MAGIC 569278163
> What is its purpose?
Just to catch programming errors, ie passing the wrong pointer
value to some SPI function. See the checks for it in spi.c.
regards, tom lane
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: What is the story behind _SPI_PLAN_MAGIC?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox