mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Make contrib/seg work with flex 2.5.31. Fix it up to have a real
btree operator class, too, since in PG 7.4 you can't GROUP without one.
This commit is contained in:
@ -23,8 +23,10 @@
|
||||
#define GIST_QUERY_DEBUG
|
||||
*/
|
||||
|
||||
extern void set_parse_buffer(char *str);
|
||||
extern int seg_yyparse();
|
||||
extern void seg_yyerror(const char *message);
|
||||
extern void seg_scanner_init(const char *str);
|
||||
extern void seg_scanner_finish(void);
|
||||
|
||||
/*
|
||||
extern int seg_yydebug;
|
||||
@ -99,16 +101,13 @@ seg_in(char *str)
|
||||
{
|
||||
SEG *result = palloc(sizeof(SEG));
|
||||
|
||||
set_parse_buffer(str);
|
||||
seg_scanner_init(str);
|
||||
|
||||
/*
|
||||
* seg_yydebug = 1;
|
||||
*/
|
||||
if (seg_yyparse(result) != 0)
|
||||
{
|
||||
pfree(result);
|
||||
return NULL;
|
||||
}
|
||||
seg_yyerror("bogus input");
|
||||
|
||||
seg_scanner_finish();
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
||||
@ -880,7 +879,6 @@ seg_gt(SEG * a, SEG * b)
|
||||
return seg_cmp(a, b) > 0;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
seg_ge(SEG * a, SEG * b)
|
||||
{
|
||||
|
Reference in New Issue
Block a user