pgsql: flex code modernization: Replace YY_EXTRA_TYPE define with flex

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: flex code modernization: Replace YY_EXTRA_TYPE define with flex
Date: 2025-01-06 08:48:39
Message-ID: E1tUimt-0007U1-JN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

flex code modernization: Replace YY_EXTRA_TYPE define with flex option

Replace #define YY_EXTRA_TYPE with %option extra-type. The latter is
the way recommended by the flex manual (available since flex 2.5.34).

Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Discussion: https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b(at)eisentraut(dot)org

Branch
------
master

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

Modified Files
--------------
src/backend/parser/scan.l | 7 +------
src/backend/replication/repl_scanner.l | 2 +-
src/backend/replication/syncrep_scanner.l | 2 +-
src/backend/utils/adt/jsonpath_scan.l | 2 +-
src/bin/psql/psqlscanslash.l | 12 ++++++------
src/fe_utils/psqlscan.l | 12 ++++++------
6 files changed, 16 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2025-01-06 10:01:45 pgsql: Remove duplicate definitions in proc.h
Previous Message Fujii Masao 2025-01-06 08:25:41 pgsql: doc: Clarify log level for VERBOSE messages in maintenance comma