Skip to content

Commit

Permalink
Add EnvStack typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Mar 17, 2018
1 parent 8f0bdc7 commit 09b36b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ namespace Sass {

// define typedef for our use case
typedef Environment<AST_Node_Obj> Env;
typedef std::vector<Env*> EnvStack;

}

Expand Down
2 changes: 1 addition & 1 deletion src/expand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Sass {
in_keyframes(false),
at_root_without_rule(false),
old_at_root_without_rule(false),
env_stack(std::vector<Env*>()),
env_stack(EnvStack()),
block_stack(BlockStack()),
call_stack(CallStack()),
selector_stack(SelectorStack()),
Expand Down
2 changes: 1 addition & 1 deletion src/expand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Sass {
bool old_at_root_without_rule;

// it's easier to work with vectors
std::vector<Env*> env_stack;
EnvStack env_stack;
BlockStack block_stack;
CallStack call_stack;
SelectorStack selector_stack;
Expand Down

0 comments on commit 09b36b0

Please sign in to comment.