summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/func.cc1
-rw-r--r--src/openscad.h6
-rw-r--r--src/value.cc6
3 files changed, 3 insertions, 10 deletions
diff --git a/src/func.cc b/src/func.cc
index 75e90df..b011a27 100644
--- a/src/func.cc
+++ b/src/func.cc
@@ -34,7 +34,6 @@
#include <algorithm>
#include "stl-utils.h"
#include <boost/foreach.hpp>
-#include "openscad.h" //M_PI
AbstractFunction::~AbstractFunction()
{
diff --git a/src/openscad.h b/src/openscad.h
index e6b9b9f..61aec0e 100644
--- a/src/openscad.h
+++ b/src/openscad.h
@@ -27,12 +27,6 @@
#ifndef OPENSCAD_H
#define OPENSCAD_H
-// for win32 and maybe others..
-#ifndef M_PI
-# define M_PI 3.14159265358979323846
-#endif
-
-
extern class AbstractModule *parse(const char *text, const char *path, int debug);
extern int get_fragments_from_r(double r, double fn, double fs, double fa);
diff --git a/src/value.cc b/src/value.cc
index 685bf81..6685594 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -352,19 +352,19 @@ std::string Value::toString() const
stream << ']';
break;
case RANGE:
- stream << "[ "
+ stream << '['
<< this->range_begin
<< " : "
<< this->range_step
<< " : "
<< this->range_end
- << " ]";
+ << ']';
break;
case NUMBER:
stream << this->num;
break;
case BOOL:
- stream << this->b;
+ stream << (this->b ? "true" : "false");
break;
default:
stream << "undef";
contact: Jan Huwald // Impressum