summaryrefslogtreecommitdiffstats
path: root/contrib/seg/segdata.h
blob: 9488bf3a81a9474d0cd4c9c8bf5df08c8aaa8e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * contrib/seg/segdata.h
 */
typedef struct SEG
{
	float4		lower;
	float4		upper;
	char		l_sigd;
	char		u_sigd;
	char		l_ext;
	char		u_ext;
} SEG;

/* in seg.c */
extern int	significant_digits(const 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);