Skip to content

Commit

Permalink
libsass_wrapper.c: group functions by input
Browse files Browse the repository at this point in the history
  • Loading branch information
Homin Lee committed Dec 11, 2012
1 parent 7a9c0cf commit a3c406a
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions libsass_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,44 @@ sass_context_t* _sass_new_context(void)
return (sass_context_t*) sass_new_context();
}

sass_file_context_t* _sass_new_file_context(void)
void _sass_free_context(sass_context_t* ctx)
{
return (sass_file_context_t*) sass_new_file_context();
sass_free_context(ctx);
}

#if 0
sass_folder_context_t* _sass_new_folder_context(void)
int _sass_compile(sass_context_t* ctx)
{
return (sass_folder_context_t*) sass_new_folder_context();
return sass_compile(ctx);
}
#endif

void _sass_free_context(sass_context_t* ctx)
sass_file_context_t* _sass_new_file_context(void)
{
sass_free_context(ctx);
return (sass_file_context_t*) sass_new_file_context();
}

void _sass_free_file_context(sass_file_context_t* ctx)
{
sass_free_file_context(ctx);
}

#if 0
void _sass_free_folder_context(sass_folder_context_t* ctx)
int _sass_compile_file(sass_file_context_t* ctx)
{
sass_free_folder_context(ctx);
/* ctx->options.image_path = "images"; */
/* ctx->options.include_paths = "scss"; */
return sass_compile_file(ctx);
}
#endif

int _sass_compile(sass_context_t* ctx)
#if 0
sass_folder_context_t* _sass_new_folder_context(void)
{
return sass_compile(ctx);
return (sass_folder_context_t*) sass_new_folder_context();
}

int _sass_compile_file(sass_file_context_t* ctx)
void _sass_free_folder_context(sass_folder_context_t* ctx)
{
return sass_compile_file(ctx);
sass_free_folder_context(ctx);
}

#if 0
int _sass_compile_folder(sass_folder_context_t* ctx)
{
return sass_compile_folder(ctx);
Expand Down

0 comments on commit a3c406a

Please sign in to comment.