File tree 1 file changed +7
-11
lines changed 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 2
2
#define YYERROR_VERBOSE
3
3
#define YYPARSE_PARAM result /* need this to pass a pointer (void *) to yyparse */
4
4
5
- #include < string.h >
6
- # include < stdlib.h >
5
+ #include " postgres.h "
6
+
7
7
#include < math.h>
8
- #include " segdata.h"
9
- #include " buffer.h"
10
8
11
- #include " postgres.h"
12
9
#include " utils/elog.h"
10
+
11
+ #include " segdata.h"
12
+ #include " buffer.h"
13
13
14
14
#ifdef __CYGWIN__
15
15
#define HUGE HUGE_VAL
27
27
28
28
float seg_atof ( char *value );
29
29
30
- #define MAX (X,Y ) ((X) > (Y) ? (X) : (Y))
31
- #define MIN (X,Y ) ((X) < (Y) ? (X) : (Y))
32
- #define ABS (X ) ((X) < 0 ? (-X) : (X))
33
-
34
30
long threshold;
35
31
char strbuf[25 ] = {
36
32
' 0' , ' 0' , ' 0' , ' 0' , ' 0' ,
68
64
((SEG *)result)->lower = $1 .val - $3 .val;
69
65
((SEG *)result)->upper = $1 .val + $3 .val;
70
66
sprintf (strbuf, " %g" , ((SEG *)result)->lower);
71
- ((SEG *)result)->l_sigd = MAX(MIN (6 , significant_digits(strbuf)), MAX ($1 .sigd, $3 .sigd));
67
+ ((SEG *)result)->l_sigd = Max(Min (6 , significant_digits(strbuf)), Max ($1 .sigd, $3 .sigd));
72
68
sprintf (strbuf, " %g" , ((SEG *)result)->upper);
73
- ((SEG *)result)->u_sigd = MAX(MIN (6 , significant_digits(strbuf)), MAX ($1 .sigd, $3 .sigd));
69
+ ((SEG *)result)->u_sigd = Max(Min (6 , significant_digits(strbuf)), Max ($1 .sigd, $3 .sigd));
74
70
((SEG *)result)->l_ext = ' \0 ' ;
75
71
((SEG *)result)->u_ext = ' \0 ' ;
76
72
}
You can’t perform that action at this time.
0 commit comments