pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove redundant JSON parser typedefs
Date: Sat, 27 Apr 2024 11:10:42 +0000
Message-ID: <E1s0fx3-000IFo-8y@gemulon.postgresql.org> (raw)

Remove redundant JSON parser typedefs

JsonNonTerminal and JsonParserSem were added in commit 3311ea86ed

These names of these two enums are not actually used, so there is no
need for typedefs. Instead use plain enums to declare the constants.

Noticed by Alvaro Herera.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e00b4f79e7367272b436dea6f15d6f421f3d6e1a

Modified Files
--------------
src/common/jsonapi.c             | 8 ++++----
src/tools/pgindent/typedefs.list | 2 --
2 files changed, 4 insertions(+), 6 deletions(-)



Message-ID: <E1s0fx3-000IFo-8y@gemulon.postgresql.org>
Permalink:  ../E1s0fx3-000IFo-8y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1s0fx3-000IFo-8y@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: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove redundant JSON parser typedefs
  In-Reply-To: <E1s0fx3-000IFo-8y@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