summaryrefslogtreecommitdiff
path: root/contrib/cube/cubeparse.y
diff options
context:
space:
mode:
authorTom Lane2004-09-14 04:21:38 +0000
committerTom Lane2004-09-14 04:21:38 +0000
commitdb64df4b1c569089338b08223e1df913799fa9b5 (patch)
tree23b19713d40a0f56d4fc952cf33248fdd930115a /contrib/cube/cubeparse.y
parent92244e8e545197485c0ac39ef223a524e5a1e366 (diff)
Fix contrib/cube and contrib/seg to compile on Windows.
Andreas Pflug
Diffstat (limited to 'contrib/cube/cubeparse.y')
-rw-r--r--contrib/cube/cubeparse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cube/cubeparse.y b/contrib/cube/cubeparse.y
index 91574966727..94ffb260c05 100644
--- a/contrib/cube/cubeparse.y
+++ b/contrib/cube/cubeparse.y
@@ -28,7 +28,7 @@ static NDBOX * write_point_as_box(char *s, int dim);
%}
/* BISON Declarations */
-%token FLOAT O_PAREN C_PAREN O_BRACKET C_BRACKET COMMA
+%token CUBEFLOAT O_PAREN C_PAREN O_BRACKET C_BRACKET COMMA
%start box
/* Grammar follows */
@@ -128,13 +128,13 @@ paren_list:
;
list:
- FLOAT {
+ CUBEFLOAT {
/* alloc enough space to be sure whole list will fit */
$$ = palloc(scanbuflen + 1);
strcpy($$, $1);
}
|
- list COMMA FLOAT {
+ list COMMA CUBEFLOAT {
$$ = $1;
strcat($$, ",");
strcat($$, $3);