6
6
// gcc: g++ -shared plugin.cpp -o plugin.so -fPIC -Llib -lsass
7
7
// mingw: g++ -shared plugin.cpp -o plugin.dll -Llib -lsass
8
8
9
- extern " C" const char * ADDCALL libsass_get_version () {
9
+ extern " C" const char * ADDCALL libsass_get_version ()
10
+ {
10
11
return libsass_version ();
11
12
}
12
13
@@ -24,8 +25,7 @@ union Sass_Value* custom_function(const union Sass_Value* s_args, Sass_Function_
24
25
extern " C" Sass_Function_List ADDCALL libsass_load_functions ()
25
26
{
26
27
// 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 );
29
29
// create list of all custom functions
30
30
Sass_Function_List fn_list = sass_make_function_list (1 );
31
31
// 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
49
49
extern " C" Sass_Importer_List ADDCALL libsass_load_importers ()
50
50
{
51
51
// 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 );
54
53
// create list of all custom functions
55
54
Sass_Importer_List imp_list = sass_make_importer_list (1 );
56
55
// put the only function in this plugin to the list
0 commit comments