2008-05-17 09:28:26 +08:00
|
|
|
/*
|
2010-09-21 04:08:53 +08:00
|
|
|
* contrib/seg/segdata.h
|
2008-05-17 09:28:26 +08:00
|
|
|
*/
|
2001-03-22 12:01:46 +08:00
|
|
|
typedef struct SEG
|
|
|
|
{
|
2008-04-19 02:43:09 +08:00
|
|
|
float4 lower;
|
|
|
|
float4 upper;
|
2001-03-22 12:01:46 +08:00
|
|
|
char l_sigd;
|
|
|
|
char u_sigd;
|
|
|
|
char l_ext;
|
|
|
|
char u_ext;
|
2009-06-11 22:49:15 +08:00
|
|
|
} SEG;
|
2015-03-27 02:03:19 +08:00
|
|
|
|
|
|
|
/* in seg.c */
|
|
|
|
extern int significant_digits(char *str);
|
|
|
|
|
|
|
|
/* in segscan.l */
|
|
|
|
extern int seg_yylex(void);
|
|
|
|
extern void seg_yyerror(SEG *result, const char *message) pg_attribute_noreturn();
|
|
|
|
extern void seg_scanner_init(const char *str);
|
|
|
|
extern void seg_scanner_finish(void);
|
|
|
|
|
|
|
|
/* in segparse.y */
|
|
|
|
extern int seg_yyparse(SEG *result);
|