flex code modernization: Replace YY_EXTRA_TYPE define with flex option
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/scan.l | modified | +1 −6 |
| src/backend/replication/repl_scanner.l | modified | +1 −1 |
| src/backend/replication/syncrep_scanner.l | modified | +1 −1 |
| src/backend/utils/adt/jsonpath_scan.l | modified | +1 −1 |
| src/bin/psql/psqlscanslash.l | modified | +6 −6 |
| src/fe_utils/psqlscan.l | modified | +6 −6 |
Discussion
- pure parsers and reentrant scanners 25 messages · 2024-12-02 → 2025-01-24