Skip to content

Commit

Permalink
Revert for time being
Browse files Browse the repository at this point in the history
  • Loading branch information
absalomedia committed Apr 25, 2018
1 parent 289e74e commit 4391aa5
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/sass.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ typedef struct sass_object {
bool map_embed;
bool map_contents;
char* map_root;
Sass_C_Function_List functions;
Sass_C_Import_Callback importer;
#if PHP_MAJOR_VERSION >= 7
zend_object zo;
#endif
Expand Down Expand Up @@ -144,8 +142,6 @@ PHP_METHOD(Sass, __construct)
obj->map_contents = false;
obj->omit_map_url = true;
obj->precision = 5;
obj->functions = NULL;
obj->importer = NULL;
}


Expand All @@ -157,12 +153,6 @@ void set_options(sass_object *this, struct Sass_Context *ctx)
sass_option_set_output_style(opts, this->style);
sass_option_set_is_indented_syntax_src(opts, this->indent);
if (this->include_paths != NULL) {
char *p;
p = strtok (this->include_paths,",");
while (p!= NULL)
{
this->include_paths = strepl(this->include_paths,',',':');
}
sass_option_set_include_path(opts, this->include_paths);
}
sass_option_set_source_comments(opts, this->comments);
Expand All @@ -182,18 +172,6 @@ void set_options(sass_object *this, struct Sass_Context *ctx)

}

char *strepl(char *cs, char d1, char d2){
char *tmp=cs;
while(*tmp)
if(*tmp == d1)
*tmp++ = d2;
else
*tmp++;

*tmp='\0';
return cs;
}

/**
* $sass->parse(string $source, [ ]);
*
Expand Down

0 comments on commit 4391aa5

Please sign in to comment.