]> granicus.if.org Git - postgresql/commitdiff
Use yylex_init not yylex_init_extra().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Mar 2016 05:02:18 +0000 (01:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Mar 2016 05:02:18 +0000 (01:02 -0400)
Older versions of flex don't have the latter.  Per buildfarm.

src/bin/psql/psqlscan.l

index 955a4ccadb766dd25eab2c2a36bb8532bb57d2a7..56fa337dc7597b8d30afdeb78e779010819084d9 100644 (file)
@@ -893,7 +893,9 @@ psql_scan_create(const PsqlScanCallbacks *callbacks)
 
        state->callbacks = callbacks;
 
-       yylex_init_extra(state, &state->scanner);
+       yylex_init(&state->scanner);
+
+       yyset_extra(state, state->scanner);
 
        psql_scan_reset(state);