Skip to content

Commit

Permalink
Add comment about order to all sass.hpp includes
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssais authored and xzyfer committed Feb 1, 2019
1 parent 337e30e commit b260394
Show file tree
Hide file tree
Showing 47 changed files with 145 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/ast.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef SASS_AST_H
#define SASS_AST_H

// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <set>
#include <deque>
#include <vector>
Expand Down
3 changes: 3 additions & 0 deletions src/ast2c.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast2c.hpp"
#include "ast.hpp"

Expand Down
3 changes: 3 additions & 0 deletions src/ast_sel_cmp.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "context.hpp"
#include "node.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/ast_selectors.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef SASS_AST_SEL_H
#define SASS_AST_SEL_H

// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <set>
#include <deque>
#include <vector>
Expand Down
5 changes: 4 additions & 1 deletion src/ast_supports.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "context.hpp"
#include "node.hpp"
Expand Down Expand Up @@ -124,4 +127,4 @@ namespace Sass {
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

}
}
3 changes: 3 additions & 0 deletions src/ast_supports.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef SASS_AST_SUPPORTS_H
#define SASS_AST_SUPPORTS_H

// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <set>
#include <deque>
#include <vector>
Expand Down
3 changes: 3 additions & 0 deletions src/ast_values.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "context.hpp"
#include "node.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/ast_values.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef SASS_AST_VALUES_H
#define SASS_AST_VALUES_H

// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <set>
#include <deque>
#include <vector>
Expand Down
3 changes: 3 additions & 0 deletions src/base64vlq.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "base64vlq.hpp"

namespace Sass {
Expand Down
3 changes: 3 additions & 0 deletions src/check_nesting.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <vector>

#include "check_nesting.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/color_maps.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "color_maps.hpp"

Expand Down
3 changes: 3 additions & 0 deletions src/constants.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "constants.hpp"

namespace Sass {
Expand Down
3 changes: 3 additions & 0 deletions src/context.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <string>
#include <cstdlib>
#include <cstring>
Expand Down
3 changes: 3 additions & 0 deletions src/cssize.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <iostream>
#include <typeinfo>
#include <vector>
Expand Down
6 changes: 5 additions & 1 deletion src/emitter.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#ifndef SASS_EMITTER_H
#define SASS_EMITTER_H

#include <string>
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <string>

#include "sass/base.h"
#include "source_map.hpp"
#include "ast_fwd_decl.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/error_handling.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "prelexer.hpp"
#include "backtrace.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/eval.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cstdlib>
#include <cmath>
#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions src/expand.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <iostream>
#include <typeinfo>

Expand Down
3 changes: 3 additions & 0 deletions src/extend.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "extend.hpp"
#include "context.hpp"
#include "backtrace.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/file.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#ifdef _WIN32
# ifdef __MINGW32__
# ifndef off64_t
Expand Down
5 changes: 4 additions & 1 deletion src/fn_colors.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cctype>
#include <iomanip>
#include "ast.hpp"
Expand Down Expand Up @@ -123,7 +126,7 @@ namespace Sass {

Signature red_sig = "red($color)";
BUILT_IN(red)
{
{
Color_RGBA_Obj color = ARG("$color", Color)->toRGBA();
return SASS_MEMORY_NEW(Number, pstate, color->r());
}
Expand Down
2 changes: 2 additions & 0 deletions src/fn_numbers.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cstdint>
Expand Down
3 changes: 3 additions & 0 deletions src/fn_strings.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cctype>
#include "utf8.h"
#include "ast.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/fn_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "parser.hpp"
#include "fn_utils.hpp"

Expand Down
3 changes: 3 additions & 0 deletions src/inspect.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cmath>
#include <string>
#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions src/lexer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cctype>
#include <iostream>
#include <iomanip>
Expand Down
3 changes: 3 additions & 0 deletions src/listize.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <iostream>
#include <typeinfo>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions src/listize.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef SASS_LISTIZE_H
#define SASS_LISTIZE_H

// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <vector>
Expand Down
3 changes: 3 additions & 0 deletions src/node.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <vector>

#include "node.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/operators.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "operators.hpp"

namespace Sass {
Expand Down
3 changes: 3 additions & 0 deletions src/output.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "output.hpp"
#include "util.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "parser.hpp"
#include "file.hpp"
#include "inspect.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/plugins.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <iostream>
#include "output.hpp"
#include "plugins.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/position.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "position.hpp"

namespace Sass {
Expand Down
3 changes: 3 additions & 0 deletions src/prelexer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cctype>
#include <iostream>
#include <iomanip>
Expand Down
3 changes: 3 additions & 0 deletions src/remove_placeholders.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "remove_placeholders.hpp"
#include "context.hpp"
#include "inspect.hpp"
Expand Down
5 changes: 4 additions & 1 deletion src/sass.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cstdlib>
#include <cstring>
#include <vector>
Expand Down Expand Up @@ -149,4 +152,4 @@ namespace Sass {
return sass_copy_c_string(str.c_str());
}

}
}
3 changes: 3 additions & 0 deletions src/sass_context.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cstring>
#include <stdexcept>
#include <sstream>
Expand Down
3 changes: 3 additions & 0 deletions src/sass_functions.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cstring>
#include "util.hpp"
#include "context.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/sass_util.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "node.hpp"

namespace Sass {
Expand Down
3 changes: 3 additions & 0 deletions src/sass_values.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <cstdlib>
#include <cstring>
#include "util.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/source_map.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include <string>
#include <sstream>
#include <iostream>
Expand Down
5 changes: 4 additions & 1 deletion src/subset_map.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "subset_map.hpp"

Expand Down Expand Up @@ -52,4 +55,4 @@ namespace Sass {
return get_kv(sel);
}

}
}
3 changes: 3 additions & 0 deletions src/to_value.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"

#include "ast.hpp"
#include "to_value.hpp"

Expand Down
Loading

0 comments on commit b260394

Please sign in to comment.