pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent redeclaration of typedef yyscan_t
Date: Thu, 19 Dec 2024 10:43:46 +0000
Message-ID: <E1tOE0P-000LIY-L9@gemulon.postgresql.org> (raw)

Prevent redeclaration of typedef yyscan_t

Fix for 1f0de66ea2a: We need to prevent redeclaration of typedef
yyscan_t.  (This will work with C11 but not currently with C99.)  The
generated scanner files provide their own typedef, but we also need to
provide one for the interfaces that we expose.  So we need to add some
preprocessor guards to avoid a redefinition.  (This is how the
generated scanner files do it internally as well.)  This way
everything now works independent of the order in which things are
included.

Discussion: https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/382092a0cd2c75613f3df889f7b821577e6773d7

Modified Files
--------------
contrib/cube/cubedata.h | 3 +++
contrib/seg/segdata.h   | 3 +++
2 files changed, 6 insertions(+)



Message-ID: <E1tOE0P-000LIY-L9@gemulon.postgresql.org>
Permalink:  ../E1tOE0P-000LIY-L9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tOE0P-000LIY-L9@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Prevent redeclaration of typedef yyscan_t
  In-Reply-To: <E1tOE0P-000LIY-L9@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox