66// gcc: g++ -shared plugin.cpp -o plugin.so -fPIC -Llib -lsass
77// mingw: g++ -shared plugin.cpp -o plugin.dll -Llib -lsass
88
9- extern " C" const char * ADDCALL libsass_get_version () {
9+ extern " C" const char * ADDCALL libsass_get_version ()
10+ {
1011 return libsass_version ();
1112}
1213
@@ -24,8 +25,7 @@ union Sass_Value* custom_function(const union Sass_Value* s_args, Sass_Function_
2425extern " C" Sass_Function_List ADDCALL libsass_load_functions ()
2526{
2627 // allocate a custom function caller
27- Sass_Function_Entry c_func =
28- sass_make_function (" foo()" , custom_function, (void *)42 );
28+ Sass_Function_Entry c_func = sass_make_function (" foo()" , custom_function, (void *)42 );
2929 // create list of all custom functions
3030 Sass_Function_List fn_list = sass_make_function_list (1 );
3131 // put the only function in this plugin to the list
@@ -49,8 +49,7 @@ Sass_Import_List custom_importer(const char* cur_path, Sass_Importer_Entry cb, s
4949extern " C" Sass_Importer_List ADDCALL libsass_load_importers ()
5050{
5151 // allocate a custom function caller
52- Sass_Importer_Entry c_imp =
53- sass_make_importer (custom_importer, - 99 , (void *)42 );
52+ Sass_Importer_Entry c_imp = sass_make_importer (custom_importer, -99 , (void *)42 );
5453 // create list of all custom functions
5554 Sass_Importer_List imp_list = sass_make_importer_list (1 );
5655 // put the only function in this plugin to the list
0 commit comments