pgsql: flex code modernization: Replace YY_EXTRA_TYPE define with flex

Started by Peter Eisentrautover 1 year ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/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(-)