forked from sass/libsass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sass#1626 from mgreter/feature/expose-call-stack
Refactor C++ context to expose call stack
- Loading branch information
Showing
25 changed files
with
765 additions
and
614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
```C | ||
// Struct to hold custom function callback | ||
struct Sass_C_Function_Descriptor { | ||
const char* signature; | ||
Sass_C_Function function; | ||
void* cookie; | ||
struct Sass_Function { | ||
const char* signature; | ||
Sass_Function_Fn function; | ||
void* cookie; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
```C | ||
// External import entry | ||
struct Sass_Import { | ||
char* rel; | ||
char* abs; | ||
char* imp_path; // path as found in the import statement | ||
char *abs_path; // path after importer has resolved it | ||
char* source; | ||
char* srcmap; | ||
// error handling | ||
char* error; | ||
size_t line; | ||
size_t column; | ||
}; | ||
|
||
// Struct to hold importer callback | ||
struct Sass_C_Import_Descriptor { | ||
Sass_C_Import_Fn function; | ||
struct Sass_Importer { | ||
Sass_Importer_Fn importer; | ||
double priority; | ||
void* cookie; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,9 @@ namespace Sass { | |
class Complex_Selector; | ||
class Selector_List; | ||
|
||
// common classes | ||
class Context; | ||
|
||
} | ||
|
||
#endif |
Oops, something went wrong.