Sha256: c62e94301f62347f30fe12b3ccb3ad30a543671f0c5ade9a5e5aa0f6c3af1b2f
Contents?: true
Size: 980 Bytes
Versions: 3
Compression:
Stored size: 980 Bytes
Contents
#include "sass.hpp" #include <cstdlib> #include <cstring> #include <vector> #include <sstream> #include "sass.h" #include "file.hpp" #include "util.hpp" extern "C" { using namespace Sass; // caller must free the returned memory char* ADDCALL sass_string_quote (const char *str, const char quote_mark) { std::string quoted = quote(str, quote_mark); return sass_strdup(quoted.c_str()); } // caller must free the returned memory char* ADDCALL sass_string_unquote (const char *str) { std::string unquoted = unquote(str); return sass_strdup(unquoted.c_str()); } // Make sure to free the returned value! // Incs array has to be null terminated! char* ADDCALL sass_resolve_file (const char* file, const char* paths[]) { std::string resolved(File::find_file(file, paths)); return sass_strdup(resolved.c_str()); } // Get compiled libsass version const char* ADDCALL libsass_version(void) { return LIBSASS_VERSION; } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sassc-1.9.0 | ext/libsass/src/sass.cpp |
sassc-1.8.5 | ext/libsass/src/sass.cpp |
sassc-1.8.4 | ext/libsass/src/sass.cpp |