@@ -309,13 +309,17 @@ static struct SassValue* _exception_to_sass_error() {
309
309
return retv ;
310
310
}
311
311
312
- static Sass_Import_List _exception_to_sass_import_error (const char * path ) {
312
+ static struct SassImportList * _exception_to_sass_import_error (const char * path ) {
313
+ return 0 ;
314
+ /*
313
315
PyObject* bytes = _exception_to_bytes();
314
- Sass_Import_List import_list = sass_make_import_list (1 );
315
- import_list [0 ] = sass_make_import_entry (path , 0 , 0 );
316
- sass_import_set_error (import_list [0 ], PyBytes_AsString (bytes ), 0 , 0 );
316
+ struct SassImportList* import_list = sass_make_import_list();
317
+ struct SassImport* import = sass_make_import_error(PyBytes_AsString(bytes));
318
+ sass_import_list_push(import_list, import);
319
+ sass_import_set_error_msg(import, PyBytes_AsString(bytes), 0, 0);
317
320
Py_DECREF(bytes);
318
321
return import_list;
322
+ */
319
323
}
320
324
321
325
static struct SassValue * _to_sass_value (PyObject * value ) {
@@ -420,12 +424,12 @@ static void _add_custom_functions(
420
424
sass_option_set_c_functions (options , fn_list );
421
425
}
422
426
423
- static Sass_Import_List _call_py_importer_f (
427
+ static struct SassImportList * _call_py_importer_f (
424
428
const char * path , Sass_Importer_Entry cb , struct Sass_Compiler * comp
425
429
) {
426
430
PyObject * pyfunc = (PyObject * )sass_importer_get_cookie (cb );
427
431
PyObject * py_result = NULL ;
428
- Sass_Import_List sass_imports = NULL ;
432
+ struct SassImportList * sass_imports = NULL ;
429
433
struct Sass_Import * previous ;
430
434
const char * prev_path ;
431
435
Py_ssize_t i ;
0 commit comments