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
|
|
|
*/
|
2000-12-12 04:40:33 +08:00
|
|
|
typedef struct SEG
|
|
|
|
{
|
2008-04-19 02:43:09 +08:00
|
|
|
float4 lower;
|
|
|
|
float4 upper;
|
2000-12-12 04:40:33 +08:00
|
|
|
char l_sigd;
|
|
|
|
char u_sigd;
|
|
|
|
char l_ext;
|
|
|
|
char u_ext;
|
|
|
|
} SEG;
|
2015-03-27 02:03:19 +08:00
|
|
|
|
|
|
|
/* in seg.c */
|
2022-09-23 04:59:20 +08:00
|
|
|
extern int significant_digits(const char *s);
|
2015-03-27 02:03:19 +08:00
|
|
|
|
|
|
|
/* in segscan.l */
|
|
|
|
extern int seg_yylex(void);
|
2022-12-23 22:17:24 +08:00
|
|
|
extern void seg_yyerror(SEG *result, struct Node *escontext,
|
|
|
|
const char *message);
|
2015-03-27 02:03:19 +08:00
|
|
|
extern void seg_scanner_init(const char *str);
|
|
|
|
extern void seg_scanner_finish(void);
|
|
|
|
|
|
|
|
/* in segparse.y */
|
2022-12-23 22:17:24 +08:00
|
|
|
extern int seg_yyparse(SEG *result, struct Node *escontext);
|