diff options
author | Alexander Korotkov | 2019-03-20 08:09:07 +0000 |
---|---|---|
committer | Alexander Korotkov | 2019-03-20 08:13:34 +0000 |
commit | 550b9d26f80fa3048f2d5883f0779ed29465960a (patch) | |
tree | 39d0ba7912641a7a26c56608b065cc4f6342ad6e /src/backend/utils/adt/jsonpath_scan.l | |
parent | 641fde25233ef3ecc3b8101fe287eea9fceba6fd (diff) |
Get rid of jsonpath_gram.h and jsonpath_scanner.h
Jsonpath grammar and scanner are both quite small. It doesn't worth complexity
to compile them separately. This commit makes grammar and scanner be compiled
at once. Therefore, jsonpath_gram.h and jsonpath_gram.h are no longer needed.
This commit also does some reorganization of code in jsonpath_gram.y.
Discussion: https://postgr.es/m/d47b2023-3ecb-5f04-d253-d557547cf74f%402ndQuadrant.com
Diffstat (limited to 'src/backend/utils/adt/jsonpath_scan.l')
-rw-r--r-- | src/backend/utils/adt/jsonpath_scan.l | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/utils/adt/jsonpath_scan.l b/src/backend/utils/adt/jsonpath_scan.l index e7aa1feb754..02cb54ee7f9 100644 --- a/src/backend/utils/adt/jsonpath_scan.l +++ b/src/backend/utils/adt/jsonpath_scan.l @@ -1,3 +1,4 @@ +%{ /*------------------------------------------------------------------------- * * jsonpath_scan.l @@ -11,12 +12,10 @@ *------------------------------------------------------------------------- */ -%{ #include "postgres.h" #include "mb/pg_wchar.h" #include "nodes/pg_list.h" -#include "utils/jsonpath_scanner.h" static JsonPathString scanstring; @@ -46,7 +45,6 @@ fprintf_to_ereport(const char *fmt, const char *msg) ereport(ERROR, (errmsg_internal("%s", msg))); } -#define yyerror jsonpath_yyerror %} %option 8bit |