Commit b8fd9eb6 by Aaron Leung

Shortening the name of some precompiler macros.

parent bd5842a2
#define SASS_COLOR_NAMES_INCLUDED #define SASS_COLOR_NAMES
namespace Sass { namespace Sass {
......
#define SASS_CONTEXT_INCLUDED #define SASS_CONTEXT
#include <utility> #include <utility>
......
#include <map> #include <map>
#ifndef SASS_PRELEXER_INCLUDED #ifndef SASS_PRELEXER
#include "prelexer.hpp" #include "prelexer.hpp"
#endif #endif
#ifndef SASS_NODE_INCLUDED #ifndef SASS_NODE
#include "node.hpp" #include "node.hpp"
#endif #endif
#ifndef SASS_CONTEXT_INCLUDED #ifndef SASS_CONTEXT
#include "context.hpp" #include "context.hpp"
#endif #endif
......
#include <map> #include <map>
#ifndef SASS_NODE_INCLUDED #ifndef SASS_NODE
#include "node.hpp" #include "node.hpp"
#endif #endif
#ifndef SASS_CONTEXT_INCLUDED #ifndef SASS_CONTEXT
#include "context.hpp" #include "context.hpp"
#endif #endif
......
#ifndef SASS_PRELEXER_INCLUDED #ifndef SASS_PRELEXER
#include "prelexer.hpp" #include "prelexer.hpp"
#endif #endif
#include "node_factory.hpp" #include "node_factory.hpp"
......
#include <cstring> #include <cstring>
#include <map> #include <map>
#ifndef SASS_NODE_INCLUDED #ifndef SASS_NODE
#include "node.hpp" #include "node.hpp"
#endif #endif
...@@ -11,6 +11,8 @@ namespace Sass { ...@@ -11,6 +11,8 @@ namespace Sass {
typedef Node (*Primitive)(const Node, map<Token, Node>&, Node_Factory& new_Node); typedef Node (*Primitive)(const Node, map<Token, Node>&, Node_Factory& new_Node);
typedef const char* str; typedef const char* str;
typedef str Function_Descriptor[]; typedef str Function_Descriptor[];
struct Environment;
struct Function { struct Function {
...@@ -56,7 +58,7 @@ namespace Sass { ...@@ -56,7 +58,7 @@ namespace Sass {
parameters.push_back(new_Node(Node::variable, "[PRIMITIVE FUNCTIONS]", 0, Token::make(p, p + std::strlen(p)))); parameters.push_back(new_Node(Node::variable, "[PRIMITIVE FUNCTIONS]", 0, Token::make(p, p + std::strlen(p))));
} }
} }
Node operator()(map<Token, Node>& bindings, Node_Factory& new_Node) const Node operator()(map<Token, Node>& bindings, Node_Factory& new_Node) const
{ {
if (primitive) return primitive(parameters, bindings, new_Node); if (primitive) return primitive(parameters, bindings, new_Node);
......
#define SASS_NODE_INCLUDED #define SASS_NODE
#include <cstring> #include <cstring>
#include <string> #include <string>
......
#include <vector> #include <vector>
#ifndef SASS_NODE_INCLUDED #ifndef SASS_NODE
#include "node.hpp" #include "node.hpp"
#endif #endif
......
#define SASS_PRELEXER_INCLUDED #define SASS_PRELEXER
namespace Sass { namespace Sass {
namespace Prelexer { namespace Prelexer {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <map> #include <map>
#include <algorithm> #include <algorithm>
#ifndef SASS_NODE_INCLUDED #ifndef SASS_NODE
#include "node.hpp" #include "node.hpp"
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment