summaryrefslogtreecommitdiffstats
path: root/src/cppvalue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppvalue.h')
-rw-r--r--src/cppvalue.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/cppvalue.h b/src/cppvalue.h
index 159e217..def31c9 100644
--- a/src/cppvalue.h
+++ b/src/cppvalue.h
@@ -24,13 +24,9 @@
class CPPValue
{
- friend CPPValue parseOctal();
- friend CPPValue parseDecimal();
- friend CPPValue parseHexadecimal();
- friend CPPValue parseCharacter();
- friend CPPValue parseFloat();
-
public:
+
+
enum Type { Int, Float };
CPPValue(long val=0) : type(Int) { v.l = val; }
@@ -57,4 +53,10 @@ class CPPValue
} v;
};
+extern CPPValue parseOctal();
+extern CPPValue parseDecimal();
+extern CPPValue parseHexadecimal();
+extern CPPValue parseCharacter();
+extern CPPValue parseFloat();
+
#endif