Thread: pgsql: flex code modernization: Replace YY_EXTRA_TYPE define with flex

pgsql: flex code modernization: Replace YY_EXTRA_TYPE define with flex

From
Peter Eisentraut
Date:
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@iki.fi>
Discussion: https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b@eisentraut.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(-)