ext/libsass/src/sass_interface.cpp in sassc-1.8.3 vs ext/libsass/src/sass_interface.cpp in sassc-1.8.4

- old
+ new

@@ -1,5 +1,6 @@ +#include "sass.hpp" #include <string> #include <cstdlib> #include <cstring> #include <sstream> #include <iostream> @@ -67,13 +68,12 @@ } } else { output_path = c_ctx->output_path; } - Data_Context cpp_ctx( - (Sass_Data_Context*) 0 - ); + struct Sass_Data_Context opt; + Data_Context cpp_ctx(opt); if (c_ctx->c_functions) { Sass_Function_List this_func_data = c_ctx->c_functions; while ((this_func_data) && (*this_func_data)) { cpp_ctx.c_functions.push_back(*this_func_data); ++this_func_data; @@ -143,12 +143,11 @@ output_path = (lastindex > -1 ? input_path.substr(0, lastindex) : input_path) + ".css"; } else { output_path = c_ctx->output_path; } - File_Context cpp_ctx( - (Sass_File_Context*) 0 - ); + struct Sass_File_Context opt; + File_Context cpp_ctx(opt); if (c_ctx->c_functions) { Sass_Function_List this_func_data = c_ctx->c_functions; while ((this_func_data) && (*this_func_data)) { cpp_ctx.c_functions.push_back(*this_func_data); ++this_func_data;