Skip to content

Commit

Permalink
[WIP] Revert original API
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Oct 18, 2015
1 parent 1e05205 commit 83c900d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/sass/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum Sass_Compiler_State {
ADDAPI struct Sass_Options* ADDCALL sass_make_options (void);
// Create and initialize a specific context
ADDAPI struct Sass_File_Context* ADDCALL sass_make_file_context (const char* input_path);
ADDAPI struct Sass_Data_Context* ADDCALL sass_make_data_context (char* source_string, char* srcmap_string);
ADDAPI struct Sass_Data_Context* ADDCALL sass_make_data_context (char* source_string);

// Call the compilation step for the specific context
ADDAPI int ADDCALL sass_compile_file_context (struct Sass_File_Context* ctx);
Expand Down
4 changes: 2 additions & 2 deletions src/sass_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ extern "C" {
return ctx;
}

Sass_Data_Context* ADDCALL sass_make_data_context(char* source_string, char* srcmap_string)
Sass_Data_Context* ADDCALL sass_make_data_context(char* source_string)
{
struct Sass_Data_Context* ctx = (struct Sass_Data_Context*) calloc(1, sizeof(struct Sass_Data_Context));
if (ctx == 0) { std::cerr << "Error allocating memory for data context" << std::endl; return 0; }
Expand All @@ -387,7 +387,7 @@ extern "C" {
if (source_string == 0) { throw(std::runtime_error("Data context created without a source string")); }
if (*source_string == 0) { throw(std::runtime_error("Data context created with empty source string")); }
ctx->source_string = source_string;
ctx->srcmap_string = srcmap_string;
// ctx->srcmap_string = srcmap_string;
} catch (...) {
handle_errors(ctx);
}
Expand Down

0 comments on commit 83c900d

Please sign in to comment.