Sha256: 2047a76dec1b0adf9fcb9119067db87f03d2a8843b1a24fb619cef2a27e462c2

Contents?: true

Size: 986 Bytes

Versions: 16

Compression:

Stored size: 986 Bytes

Contents

#include <cstdlib>
#include <cstring>
#include <vector>
#include <sstream>

#include "sass.h"
#include "file.hpp"
#include "util.hpp"

extern "C" {
  using namespace std;
  using namespace Sass;
  using namespace File;

  // caller must free the returned memory
  char* ADDCALL sass_string_quote (const char *str, const char quote_mark)
  {
    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)
  {
    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[])
  {
    string resolved(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

16 entries across 16 versions & 2 rubygems

Version Path
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/sass.cpp
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/sass.cpp
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/sass.cpp
sassc-1.7.1 ext/libsass/sass.cpp
sassc-1.7.0 ext/libsass/sass.cpp
sassc-1.6.0 ext/libsass/sass.cpp
sassc-1.5.1 ext/libsass/sass.cpp
sassc-1.5.0 ext/libsass/sass.cpp
sassc-1.4.0 ext/libsass/sass.cpp
sassc-1.3.0 ext/libsass/sass.cpp
sassc-1.2.0 ext/libsass/sass.cpp
sassc-1.1.2 ext/libsass/sass.cpp
sassc-1.1.1 ext/libsass/sass.cpp
sassc-1.1.0 ext/libsass/sass.cpp
sassc-1.0.0 ext/libsass/sass.cpp
sassc-0.0.11 ext/libsass/sass.cpp