Make some use of anonymous unions [pg_locale_t]
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-30T10:35:50Z
Releases:
19 (unreleased)
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pg_locale_builtin.c | modified | +10 −10 |
| src/backend/utils/adt/pg_locale_icu.c | modified | +9 −9 |
| src/backend/utils/adt/pg_locale_libc.c | modified | +35 −35 |
| src/include/utils/pg_locale.h | modified | +1 −1 |
Discussion
- anonymous unions (C11) 15 messages · 2025-09-23 → 2026-01-21