Skip to content

Commit

Permalink
Merge pull request sass#1310 from saper/namespaces
Browse files Browse the repository at this point in the history
Clean up C++ namespaces
  • Loading branch information
xzyfer committed Aug 11, 2015
2 parents eadae5b + 2bb3708 commit 354801c
Show file tree
Hide file tree
Showing 80 changed files with 1,709 additions and 1,787 deletions.
13 changes: 6 additions & 7 deletions include/sass2scss.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#endif

// using std::string
using namespace std;

// add namespace for c++
namespace Sass
Expand All @@ -53,7 +52,7 @@ namespace Sass
const int SASS2SCSS_CONVERT_COMMENT = 128;

// String for finding something interesting
const string SASS2SCSS_FIND_WHITESPACE = " \t\n\v\f\r";
const std::string SASS2SCSS_FIND_WHITESPACE = " \t\n\v\f\r";

// converter struct
// holding all states
Expand All @@ -70,17 +69,17 @@ namespace Sass
// has semicolon
bool semicolon;
// comment context
string comment;
std::string comment;
// flag end of file
bool end_of_file;
// whitespace buffer
string whitespace;
std::string whitespace;
// context/block stack
stack<string> indents;
std::stack<std::string> indents;
};

// function only available in c++ code
char* sass2scss (const string& sass, const int options);
char* sass2scss (const std::string& sass, const int options);

}
// EO namespace
Expand Down Expand Up @@ -112,4 +111,4 @@ extern "C" {
} // __cplusplus defined.
#endif

#endif
#endif
Loading

0 comments on commit 354801c

Please sign in to comment.