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: Make some use of anonymous unions [pg_locale_t]
Date: Tue, 30 Sep 2025 10:37:22 +0000
Message-ID: <E1v3XjV-000lYY-2L@gemulon.postgresql.org> (raw)

Make some use of anonymous unions [pg_locale_t]

Make some use of anonymous unions, which are allowed as of C11, as
examples and encouragement for future code, and to test compilers.

This commit changes the pg_locale_t type.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f00a9968-388e-4f8c-b5ef-5102e962d997%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4b7e6c73b0df3384345052616727a25505db5fcb

Modified Files
--------------
src/backend/utils/adt/pg_locale_builtin.c | 20 ++++-----
src/backend/utils/adt/pg_locale_icu.c     | 18 ++++----
src/backend/utils/adt/pg_locale_libc.c    | 70 +++++++++++++++----------------
src/include/utils/pg_locale.h             |  2 +-
4 files changed, 55 insertions(+), 55 deletions(-)



view thread (8+ messages)  latest in thread

Message-ID: <E1v3XjV-000lYY-2L@gemulon.postgresql.org>
Permalink:  ../E1v3XjV-000lYY-2L@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v3XjV-000lYY-2L@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: Make some use of anonymous unions [pg_locale_t]
  In-Reply-To: <E1v3XjV-000lYY-2L@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