|
3 | 3 |
|
4 | 4 | // #define DEBUG 1 |
5 | 5 |
|
6 | | -#ifdef _MSC_VER |
7 | | - #pragma warning(disable : 4503) |
8 | | - |
9 | | -#ifndef _SCL_SECURE_NO_WARNINGS |
10 | | - #define _SCL_SECURE_NO_WARNINGS |
11 | | -#endif |
12 | | - |
13 | | -#ifndef _CRT_SECURE_NO_WARNINGS |
14 | | - #define _CRT_SECURE_NO_WARNINGS |
15 | | -#endif |
16 | | - |
17 | | -#ifndef _CRT_NONSTDC_NO_DEPRECATE |
18 | | - #define _CRT_NONSTDC_NO_DEPRECATE |
19 | | -#endif |
20 | | - |
21 | | -#endif |
22 | | - |
23 | | -#include <stddef.h> |
24 | | -#include <stdbool.h> |
25 | | - |
26 | | -#ifdef __GNUC__ |
27 | | - #define DEPRECATED(func) func __attribute__ ((deprecated)) |
28 | | -#elif defined(_MSC_VER) |
29 | | - #define DEPRECATED(func) __declspec(deprecated) func |
30 | | -#else |
31 | | - #pragma message("WARNING: You need to implement DEPRECATED for this compiler") |
32 | | - #define DEPRECATED(func) func |
33 | | -#endif |
34 | | - |
35 | | -#ifdef _WIN32 |
36 | | - |
37 | | - /* You should define ADD_EXPORTS *only* when building the DLL. */ |
38 | | - #ifdef ADD_EXPORTS |
39 | | - #define ADDAPI __declspec(dllexport) |
40 | | - #define ADDCALL __cdecl |
41 | | - #else |
42 | | - #define ADDAPI |
43 | | - #define ADDCALL |
44 | | - #endif |
45 | | - |
46 | | -#else /* _WIN32 not defined. */ |
47 | | - |
48 | | - /* Define with no value on non-Windows OSes. */ |
49 | | - #define ADDAPI |
50 | | - #define ADDCALL |
51 | | - |
52 | | -#endif |
53 | | - |
54 | 6 | // include API headers |
55 | | -#include "sass_version.h" |
56 | | -#include "sass_values.h" |
57 | | -#include "sass_functions.h" |
| 7 | +#include <sass/base.h> |
| 8 | +#include <sass/version.h> |
| 9 | +#include <sass/values.h> |
| 10 | +#include <sass/functions.h> |
| 11 | +#include <sass/context.h> |
| 12 | +#include <sass2scss.h> |
58 | 13 |
|
59 | | -/* Make sure functions are exported with C linkage under C++ compilers. */ |
60 | | -#ifdef __cplusplus |
61 | | -extern "C" { |
62 | 14 | #endif |
63 | 15 |
|
64 | | - |
65 | | -// Different render styles |
66 | | -enum Sass_Output_Style { |
67 | | - SASS_STYLE_NESTED, |
68 | | - SASS_STYLE_EXPANDED, |
69 | | - SASS_STYLE_COMPACT, |
70 | | - SASS_STYLE_COMPRESSED |
71 | | -}; |
72 | | - |
73 | | -// Some convenient string helper function |
74 | | -ADDAPI char* ADDCALL sass_string_quote (const char* str, const char quote_mark); |
75 | | -ADDAPI char* ADDCALL sass_string_unquote (const char* str); |
76 | | - |
77 | | -// Resolve a file via the given include paths in the include char* array |
78 | | -ADDAPI char* ADDCALL sass_resolve_file (const char* path, const char* incs[]); |
79 | | - |
80 | | -// Get compiled libsass version |
81 | | -ADDAPI const char* ADDCALL libsass_version(void); |
82 | | - |
83 | | -#ifdef __cplusplus |
84 | | -} // __cplusplus defined. |
85 | | -#endif |
86 | | - |
87 | | -#endif |
0 commit comments