diff options
author | John Naylor | 2022-09-04 04:33:31 +0000 |
---|---|---|
committer | John Naylor | 2022-09-04 05:09:01 +0000 |
commit | dac048f71ebbcf2f980d280711f8ff8001331c5d (patch) | |
tree | 48311f22d4636b6fb12cf2bb43925622521e758a /contrib/cube/cube.c | |
parent | 80e8450a744b1f6fa75663f37f1db3388995dc67 (diff) |
Build all Flex files standalone
The proposed Meson build system will need a way to ignore certain
generated files in order to coexist with the autoconf build system,
and C files generated by Flex which are #include'd into .y files make
this more difficult. In similar vein to 72b1e3a21, arrange for all Flex
C files to compile to their own .o targets.
Reviewed by Andres Freund
Discussion: https://www.postgresql.org/message-id/20220810171935.7k5zgnjwqzalzmtm%40awork3.anarazel.de
Discussion: https://www.postgresql.org/message-id/CAFBsxsF8Gc2StS3haXofshHCzqNMRXiSxvQEYGwnFsTmsdwNeg@mail.gmail.com
Diffstat (limited to 'contrib/cube/cube.c')
-rw-r--r-- | contrib/cube/cube.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index a5d1ba67335..6e01800a4a8 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -119,11 +119,11 @@ cube_in(PG_FUNCTION_ARGS) { char *str = PG_GETARG_CSTRING(0); NDBOX *result; + Size scanbuflen; - cube_scanner_init(str); + cube_scanner_init(str, &scanbuflen); - if (cube_yyparse(&result) != 0) - cube_yyerror(&result, "cube parser failed"); + cube_yyparse(&result, scanbuflen); cube_scanner_finish(); |