summaryrefslogtreecommitdiff
path: root/src/backend/replication
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/replication')
-rw-r--r--src/backend/replication/repl_scanner.l2
-rw-r--r--src/backend/replication/syncrep_scanner.l2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/repl_scanner.l b/src/backend/replication/repl_scanner.l
index 0d1ac2d2389..de10cb5abd1 100644
--- a/src/backend/replication/repl_scanner.l
+++ b/src/backend/replication/repl_scanner.l
@@ -46,7 +46,6 @@ struct replication_yy_extra_type
/* Work area for collecting literals */
StringInfoData litbuf;
};
-#define YY_EXTRA_TYPE struct replication_yy_extra_type *
static void startlit(yyscan_t yyscanner);
static char *litbufdup(yyscan_t yyscanner);
@@ -70,6 +69,7 @@ static void addlitchar(unsigned char ychar, yyscan_t yyscanner);
%option noyyfree
%option warn
%option prefix="replication_yy"
+%option extra-type="struct replication_yy_extra_type *"
/*
* Exclusive states:
diff --git a/src/backend/replication/syncrep_scanner.l b/src/backend/replication/syncrep_scanner.l
index 4db67329956..05e5fdecf1b 100644
--- a/src/backend/replication/syncrep_scanner.l
+++ b/src/backend/replication/syncrep_scanner.l
@@ -41,7 +41,6 @@ struct syncrep_yy_extra_type
{
StringInfoData xdbuf;
};
-#define YY_EXTRA_TYPE struct syncrep_yy_extra_type *
/* LCOV_EXCL_START */
@@ -60,6 +59,7 @@ struct syncrep_yy_extra_type
%option noyyfree
%option warn
%option prefix="syncrep_yy"
+%option extra-type="struct syncrep_yy_extra_type *"
/*
* <xd> delimited identifiers (double-quoted identifiers)