aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/nodes/value.h')
-rw-r--r--src/include/nodes/value.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/nodes/value.h b/src/include/nodes/value.h
index 3a7f3a0bfb5..442cc19fcba 100644
--- a/src/include/nodes/value.h
+++ b/src/include/nodes/value.h
@@ -28,7 +28,7 @@
typedef struct Integer
{
NodeTag type;
- int val;
+ int ival;
} Integer;
/*
@@ -45,24 +45,24 @@ typedef struct Integer
typedef struct Float
{
NodeTag type;
- char *val;
+ char *fval;
} Float;
typedef struct String
{
NodeTag type;
- char *val;
+ char *sval;
} String;
typedef struct BitString
{
NodeTag type;
- char *val;
+ char *bsval;
} BitString;
-#define intVal(v) (castNode(Integer, v)->val)
-#define floatVal(v) atof(castNode(Float, v)->val)
-#define strVal(v) (castNode(String, v)->val)
+#define intVal(v) (castNode(Integer, v)->ival)
+#define floatVal(v) atof(castNode(Float, v)->fval)
+#define strVal(v) (castNode(String, v)->sval)
extern Integer *makeInteger(int i);
extern Float *makeFloat(char *numericStr);