mirror of https://github.com/vitalif/openscad
Various whitespace fixes
parent
ff466c2189
commit
b5337ad338
|
@ -5,6 +5,6 @@
|
|||
class CocoaUtils
|
||||
{
|
||||
public:
|
||||
static void endApplication();
|
||||
static void nslog(const std::string &str, void *userdata);
|
||||
static void endApplication();
|
||||
static void nslog(const std::string &str, void *userdata);
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
#include <string>
|
||||
|
||||
std::string lookup_file(const std::string &filename,
|
||||
const std::string &path, const std::string &fallbackpath);
|
||||
const std::string &path, const std::string &fallbackpath);
|
||||
|
|
|
@ -9,25 +9,25 @@
|
|||
class NodeDumper : public Visitor
|
||||
{
|
||||
public:
|
||||
/*! If idPrefix is true, we will output "n<id>:" in front of each node,
|
||||
which is useful for debugging. */
|
||||
NodeDumper(NodeCache &cache, bool idPrefix = false) :
|
||||
cache(cache), idprefix(idPrefix), root(NULL) { }
|
||||
virtual ~NodeDumper() {}
|
||||
/*! If idPrefix is true, we will output "n<id>:" in front of each node,
|
||||
which is useful for debugging. */
|
||||
NodeDumper(NodeCache &cache, bool idPrefix = false) :
|
||||
cache(cache), idprefix(idPrefix), root(NULL) { }
|
||||
virtual ~NodeDumper() {}
|
||||
|
||||
virtual Response visit(State &state, const AbstractNode &node);
|
||||
virtual Response visit(State &state, const AbstractNode &node);
|
||||
|
||||
private:
|
||||
void handleVisitedChildren(const State &state, const AbstractNode &node);
|
||||
bool isCached(const AbstractNode &node) const;
|
||||
void handleIndent(const State &state);
|
||||
std::string dumpChildren(const AbstractNode &node);
|
||||
void handleVisitedChildren(const State &state, const AbstractNode &node);
|
||||
bool isCached(const AbstractNode &node) const;
|
||||
void handleIndent(const State &state);
|
||||
std::string dumpChildren(const AbstractNode &node);
|
||||
|
||||
NodeCache &cache;
|
||||
bool idprefix;
|
||||
NodeCache &cache;
|
||||
bool idprefix;
|
||||
|
||||
std::string currindent;
|
||||
const AbstractNode *root;
|
||||
typedef std::list<const AbstractNode *> ChildList;
|
||||
std::map<int, ChildList> visitedchildren;
|
||||
std::string currindent;
|
||||
const AbstractNode *root;
|
||||
typedef std::list<const AbstractNode *> ChildList;
|
||||
std::map<int, ChildList> visitedchildren;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue