Make some use of anonymous unions [pg_locale_t]

Peter Eisentraut <peter@eisentraut.org>

Commit: 4b7e6c73b0df3384345052616727a25505db5fcb
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-30T10:35:50Z
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

Files

Discussion