pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex
Date: 2019-03-17 09:59:52
Message-ID: E1h5Sa8-0007FZ-Co@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Beautify initialization of JsonValueList and JsonLikeRegexContext

Instead of tricky assignment to {0} introduce special macros, which
explicitly initialize every field.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4178d8b91cb943b422d1837b4b7798576d88995a

Modified Files
--------------
src/backend/utils/adt/jsonpath_exec.c | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-03-17 11:59:49 Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex
Previous Message Alexander Korotkov 2019-03-17 09:52:37 pgsql: Apply const qualifier to keywords of jsonpath_scan.l