ext/libsass/docs/api-context-internal.md in sassc-1.11.4 vs ext/libsass/docs/api-context-internal.md in sassc-1.12.0
- old
+ new
@@ -5,30 +5,39 @@
SASS_CONTEXT_FILE,
SASS_CONTEXT_DATA,
SASS_CONTEXT_FOLDER
};
-// simple linked list
-struct string_list {
- string_list* next;
- char* string;
-};
-
// sass config options structure
-struct Sass_Options {
+struct Sass_Inspect_Options {
- // Precision for fractional numbers
- int precision;
-
// Output style for the generated css code
// A value from above SASS_STYLE_* constants
enum Sass_Output_Style output_style;
+ // Precision for fractional numbers
+ int precision;
+
+};
+
+// sass config options structure
+struct Sass_Output_Options : Sass_Inspect_Options {
+
+ // String to be used for indentation
+ const char* indent;
+ // String to be used to for line feeds
+ const char* linefeed;
+
// Emit comments in the generated CSS indicating
// the corresponding source line.
bool source_comments;
+};
+
+// sass config options structure
+struct Sass_Options : Sass_Output_Options {
+
// embed sourceMappingUrl as data uri
bool source_map_embed;
// embed include contents in maps
bool source_map_contents;
@@ -54,19 +63,13 @@
// generation. LibSass will not write to
// this file, it is just used to create
// information in source-maps etc.
char* output_path;
- // String to be used for indentation
- const char* indent;
- // String to be used to for line feeds
- const char* linefeed;
-
// Colon-separated list of paths
// Semicolon-separated on Windows
- // Note: It may be better to use
- // array interface instead
+ // Maybe use array interface instead?
char* include_path;
char* plugin_path;
// Include paths (linked string list)
struct string_list* include_paths;
@@ -80,15 +83,18 @@
// Directly inserted in source maps
char* source_map_root;
// Custom functions that can be called from sccs code
- Sass_C_Function_List c_functions;
+ Sass_Function_List c_functions;
// Callback to overload imports
- Sass_C_Import_Callback importer;
+ Sass_Importer_List c_importers;
+ // List of custom headers
+ Sass_Importer_List c_headers;
+
};
// base for all contexts
struct Sass_Context : Sass_Options
{
@@ -109,10 +115,11 @@
char* error_message;
// error position
char* error_file;
size_t error_line;
size_t error_column;
+ const char* error_src;
// report imported files
char** included_files;
};
@@ -128,10 +135,11 @@
// struct for data compilation
struct Sass_Data_Context : Sass_Context {
// provided source string
char* source_string;
+ char* srcmap_string;
};
// Compiler states
enum Sass_Compiler_State {
@@ -145,11 +153,11 @@
// progress status
Sass_Compiler_State state;
// original c context
Sass_Context* c_ctx;
// Sass::Context
- void* cpp_ctx;
+ Sass::Context* cpp_ctx;
// Sass::Block
- void* root;
+ Sass::Block_Obj root;
};
```