sassc 2.0.1 → 2.1.0.pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitmodules +1 -1
  4. data/.travis.yml +7 -3
  5. data/CHANGELOG.md +3 -0
  6. data/CODE_OF_CONDUCT.md +1 -1
  7. data/README.md +1 -1
  8. data/Rakefile +23 -8
  9. data/ext/extconf.rb +39 -0
  10. data/ext/libsass/.gitignore +1 -0
  11. data/ext/libsass/GNUmakefile.am +23 -39
  12. data/ext/libsass/Makefile +56 -91
  13. data/ext/libsass/Makefile.conf +16 -2
  14. data/ext/libsass/configure.ac +8 -12
  15. data/ext/libsass/include/sass/base.h +1 -0
  16. data/ext/libsass/include/sass/context.h +1 -1
  17. data/ext/libsass/src/GNUmakefile.am +1 -5
  18. data/ext/libsass/src/ast.cpp +747 -2010
  19. data/ext/libsass/src/ast.hpp +239 -2383
  20. data/ext/libsass/src/{to_c.cpp → ast2c.cpp} +22 -16
  21. data/ext/libsass/src/ast2c.hpp +39 -0
  22. data/ext/libsass/src/ast_def_macros.hpp +62 -10
  23. data/ext/libsass/src/ast_fwd_decl.cpp +1 -0
  24. data/ext/libsass/src/ast_fwd_decl.hpp +43 -165
  25. data/ext/libsass/src/ast_sel_cmp.cpp +909 -0
  26. data/ext/libsass/src/ast_sel_unify.cpp +280 -0
  27. data/ext/libsass/src/ast_selectors.cpp +1475 -0
  28. data/ext/libsass/src/ast_selectors.hpp +568 -0
  29. data/ext/libsass/src/ast_supports.cpp +130 -0
  30. data/ext/libsass/src/ast_supports.hpp +121 -0
  31. data/ext/libsass/src/ast_values.cpp +967 -0
  32. data/ext/libsass/src/ast_values.hpp +489 -0
  33. data/ext/libsass/src/backtrace.cpp +4 -0
  34. data/ext/libsass/src/base64vlq.cpp +3 -0
  35. data/ext/libsass/src/bind.cpp +18 -17
  36. data/ext/libsass/src/bind.hpp +3 -1
  37. data/ext/libsass/src/c2ast.cpp +64 -0
  38. data/ext/libsass/src/c2ast.hpp +14 -0
  39. data/ext/libsass/src/cencode.c +2 -2
  40. data/ext/libsass/src/check_nesting.cpp +52 -56
  41. data/ext/libsass/src/check_nesting.hpp +35 -34
  42. data/ext/libsass/src/color_maps.cpp +156 -153
  43. data/ext/libsass/src/color_maps.hpp +152 -152
  44. data/ext/libsass/src/constants.cpp +15 -0
  45. data/ext/libsass/src/constants.hpp +13 -0
  46. data/ext/libsass/src/context.cpp +24 -14
  47. data/ext/libsass/src/context.hpp +6 -6
  48. data/ext/libsass/src/cssize.cpp +69 -71
  49. data/ext/libsass/src/cssize.hpp +50 -50
  50. data/ext/libsass/src/debugger.hpp +117 -110
  51. data/ext/libsass/src/emitter.cpp +13 -12
  52. data/ext/libsass/src/emitter.hpp +13 -9
  53. data/ext/libsass/src/environment.cpp +15 -1
  54. data/ext/libsass/src/environment.hpp +6 -0
  55. data/ext/libsass/src/error_handling.cpp +36 -59
  56. data/ext/libsass/src/error_handling.hpp +29 -16
  57. data/ext/libsass/src/eval.cpp +302 -323
  58. data/ext/libsass/src/eval.hpp +64 -55
  59. data/ext/libsass/src/expand.cpp +94 -88
  60. data/ext/libsass/src/expand.hpp +33 -37
  61. data/ext/libsass/src/extend.cpp +38 -36
  62. data/ext/libsass/src/extend.hpp +15 -15
  63. data/ext/libsass/src/file.cpp +34 -2
  64. data/ext/libsass/src/fn_colors.cpp +594 -0
  65. data/ext/libsass/src/fn_colors.hpp +85 -0
  66. data/ext/libsass/src/fn_lists.cpp +284 -0
  67. data/ext/libsass/src/fn_lists.hpp +34 -0
  68. data/ext/libsass/src/fn_maps.cpp +94 -0
  69. data/ext/libsass/src/fn_maps.hpp +30 -0
  70. data/ext/libsass/src/fn_miscs.cpp +256 -0
  71. data/ext/libsass/src/fn_miscs.hpp +40 -0
  72. data/ext/libsass/src/fn_numbers.cpp +220 -0
  73. data/ext/libsass/src/fn_numbers.hpp +45 -0
  74. data/ext/libsass/src/fn_selectors.cpp +235 -0
  75. data/ext/libsass/src/fn_selectors.hpp +35 -0
  76. data/ext/libsass/src/fn_strings.cpp +254 -0
  77. data/ext/libsass/src/fn_strings.hpp +34 -0
  78. data/ext/libsass/src/fn_utils.cpp +156 -0
  79. data/ext/libsass/src/fn_utils.hpp +56 -0
  80. data/ext/libsass/src/inspect.cpp +101 -152
  81. data/ext/libsass/src/inspect.hpp +69 -73
  82. data/ext/libsass/src/json.cpp +2 -2
  83. data/ext/libsass/src/lexer.cpp +6 -3
  84. data/ext/libsass/src/listize.cpp +9 -11
  85. data/ext/libsass/src/listize.hpp +11 -7
  86. data/ext/libsass/src/memory/SharedPtr.cpp +2 -83
  87. data/ext/libsass/src/memory/SharedPtr.hpp +127 -143
  88. data/ext/libsass/src/node.cpp +13 -10
  89. data/ext/libsass/src/node.hpp +3 -3
  90. data/ext/libsass/src/operation.hpp +184 -144
  91. data/ext/libsass/src/operators.cpp +43 -17
  92. data/ext/libsass/src/operators.hpp +5 -5
  93. data/ext/libsass/src/output.cpp +21 -18
  94. data/ext/libsass/src/output.hpp +14 -21
  95. data/ext/libsass/src/parser.cpp +215 -183
  96. data/ext/libsass/src/parser.hpp +28 -24
  97. data/ext/libsass/src/plugins.cpp +5 -1
  98. data/ext/libsass/src/position.cpp +3 -0
  99. data/ext/libsass/src/prelexer.cpp +9 -3
  100. data/ext/libsass/src/prelexer.hpp +9 -9
  101. data/ext/libsass/src/remove_placeholders.cpp +14 -11
  102. data/ext/libsass/src/remove_placeholders.hpp +8 -9
  103. data/ext/libsass/src/sass.cpp +9 -3
  104. data/ext/libsass/src/sass.hpp +12 -9
  105. data/ext/libsass/src/sass2scss.cpp +45 -14
  106. data/ext/libsass/src/sass_context.cpp +18 -15
  107. data/ext/libsass/src/sass_functions.cpp +6 -3
  108. data/ext/libsass/src/sass_functions.hpp +1 -1
  109. data/ext/libsass/src/sass_util.cpp +3 -0
  110. data/ext/libsass/src/sass_values.cpp +21 -13
  111. data/ext/libsass/src/source_map.cpp +5 -2
  112. data/ext/libsass/src/source_map.hpp +2 -2
  113. data/ext/libsass/src/subset_map.cpp +4 -1
  114. data/ext/libsass/src/to_value.cpp +23 -21
  115. data/ext/libsass/src/to_value.hpp +18 -22
  116. data/ext/libsass/src/units.cpp +4 -0
  117. data/ext/libsass/src/units.hpp +1 -0
  118. data/ext/libsass/src/utf8/checked.h +12 -10
  119. data/ext/libsass/src/utf8/core.h +3 -0
  120. data/ext/libsass/src/utf8_string.cpp +3 -0
  121. data/ext/libsass/src/util.cpp +67 -75
  122. data/ext/libsass/src/util.hpp +64 -19
  123. data/ext/libsass/src/util_string.cpp +75 -0
  124. data/ext/libsass/src/util_string.hpp +19 -0
  125. data/ext/libsass/src/values.cpp +22 -13
  126. data/ext/libsass/src/values.hpp +2 -2
  127. data/ext/libsass/win/libsass.targets +30 -4
  128. data/ext/libsass/win/libsass.vcxproj.filters +82 -4
  129. data/lib/sassc.rb +24 -0
  130. data/lib/sassc/engine.rb +2 -2
  131. data/lib/sassc/native.rb +8 -1
  132. data/lib/sassc/version.rb +1 -1
  133. data/sassc.gemspec +19 -11
  134. data/test/engine_test.rb +26 -1
  135. data/test/native_test.rb +1 -1
  136. metadata +66 -72
  137. data/ext/Rakefile +0 -3
  138. data/ext/libsass/.github/CONTRIBUTING.md +0 -65
  139. data/ext/libsass/.github/ISSUE_TEMPLATE.md +0 -54
  140. data/ext/libsass/.travis.yml +0 -64
  141. data/ext/libsass/Readme.md +0 -104
  142. data/ext/libsass/SECURITY.md +0 -10
  143. data/ext/libsass/appveyor.yml +0 -91
  144. data/ext/libsass/docs/README.md +0 -20
  145. data/ext/libsass/docs/api-context-example.md +0 -45
  146. data/ext/libsass/docs/api-context-internal.md +0 -163
  147. data/ext/libsass/docs/api-context.md +0 -295
  148. data/ext/libsass/docs/api-doc.md +0 -215
  149. data/ext/libsass/docs/api-function-example.md +0 -67
  150. data/ext/libsass/docs/api-function-internal.md +0 -8
  151. data/ext/libsass/docs/api-function.md +0 -74
  152. data/ext/libsass/docs/api-importer-example.md +0 -112
  153. data/ext/libsass/docs/api-importer-internal.md +0 -20
  154. data/ext/libsass/docs/api-importer.md +0 -86
  155. data/ext/libsass/docs/api-value-example.md +0 -55
  156. data/ext/libsass/docs/api-value-internal.md +0 -76
  157. data/ext/libsass/docs/api-value.md +0 -154
  158. data/ext/libsass/docs/build-on-darwin.md +0 -27
  159. data/ext/libsass/docs/build-on-gentoo.md +0 -55
  160. data/ext/libsass/docs/build-on-windows.md +0 -139
  161. data/ext/libsass/docs/build-shared-library.md +0 -35
  162. data/ext/libsass/docs/build-with-autotools.md +0 -78
  163. data/ext/libsass/docs/build-with-makefiles.md +0 -68
  164. data/ext/libsass/docs/build-with-mingw.md +0 -107
  165. data/ext/libsass/docs/build-with-visual-studio.md +0 -90
  166. data/ext/libsass/docs/build.md +0 -97
  167. data/ext/libsass/docs/compatibility-plan.md +0 -48
  168. data/ext/libsass/docs/contributing.md +0 -17
  169. data/ext/libsass/docs/custom-functions-internal.md +0 -122
  170. data/ext/libsass/docs/dev-ast-memory.md +0 -223
  171. data/ext/libsass/docs/implementations.md +0 -56
  172. data/ext/libsass/docs/plugins.md +0 -47
  173. data/ext/libsass/docs/setup-environment.md +0 -68
  174. data/ext/libsass/docs/source-map-internals.md +0 -51
  175. data/ext/libsass/docs/trace.md +0 -26
  176. data/ext/libsass/docs/triage.md +0 -17
  177. data/ext/libsass/docs/unicode.md +0 -39
  178. data/ext/libsass/extconf.rb +0 -6
  179. data/ext/libsass/script/bootstrap +0 -13
  180. data/ext/libsass/script/branding +0 -10
  181. data/ext/libsass/script/ci-build-libsass +0 -134
  182. data/ext/libsass/script/ci-build-plugin +0 -62
  183. data/ext/libsass/script/ci-install-compiler +0 -6
  184. data/ext/libsass/script/ci-install-deps +0 -20
  185. data/ext/libsass/script/ci-report-coverage +0 -42
  186. data/ext/libsass/script/spec +0 -5
  187. data/ext/libsass/script/tap-driver +0 -652
  188. data/ext/libsass/script/tap-runner +0 -1
  189. data/ext/libsass/script/test-leaks.pl +0 -103
  190. data/ext/libsass/src/functions.cpp +0 -2234
  191. data/ext/libsass/src/functions.hpp +0 -198
  192. data/ext/libsass/src/to_c.hpp +0 -39
  193. data/ext/libsass/test/test_node.cpp +0 -94
  194. data/ext/libsass/test/test_paths.cpp +0 -28
  195. data/ext/libsass/test/test_selector_difference.cpp +0 -25
  196. data/ext/libsass/test/test_specificity.cpp +0 -25
  197. data/ext/libsass/test/test_subset_map.cpp +0 -472
  198. data/ext/libsass/test/test_superselector.cpp +0 -69
  199. data/ext/libsass/test/test_unification.cpp +0 -31
  200. data/lib/tasks/libsass.rb +0 -33
@@ -6,58 +6,59 @@
6
6
 
7
7
  namespace Sass {
8
8
 
9
- class CheckNesting : public Operation_CRTP<Statement_Ptr, CheckNesting> {
9
+ class CheckNesting : public Operation_CRTP<Statement*, CheckNesting> {
10
10
 
11
- std::vector<Statement_Ptr> parents;
11
+ std::vector<Statement*> parents;
12
12
  Backtraces traces;
13
- Statement_Ptr parent;
14
- Definition_Ptr current_mixin_definition;
13
+ Statement* parent;
14
+ Definition* current_mixin_definition;
15
15
 
16
- Statement_Ptr fallback_impl(Statement_Ptr);
17
- Statement_Ptr before(Statement_Ptr);
18
- Statement_Ptr visit_children(Statement_Ptr);
16
+ Statement* before(Statement*);
17
+ Statement* visit_children(Statement*);
19
18
 
20
19
  public:
21
20
  CheckNesting();
22
21
  ~CheckNesting() { }
23
22
 
24
- Statement_Ptr operator()(Block_Ptr);
25
- Statement_Ptr operator()(Definition_Ptr);
26
- Statement_Ptr operator()(If_Ptr);
23
+ Statement* operator()(Block*);
24
+ Statement* operator()(Definition*);
25
+ Statement* operator()(If*);
27
26
 
28
27
  template <typename U>
29
- Statement_Ptr fallback(U x) {
30
- Statement_Ptr n = Cast<Statement>(x);
31
- if (this->should_visit(n)) {
32
- return fallback_impl(n);
28
+ Statement* fallback(U x) {
29
+ Statement* s = Cast<Statement>(x);
30
+ if (s && this->should_visit(s)) {
31
+ Block* b1 = Cast<Block>(s);
32
+ Has_Block* b2 = Cast<Has_Block>(s);
33
+ if (b1 || b2) return visit_children(s);
33
34
  }
34
- return NULL;
35
+ return s;
35
36
  }
36
37
 
37
38
  private:
38
- void invalid_content_parent(Statement_Ptr, AST_Node_Ptr);
39
- void invalid_charset_parent(Statement_Ptr, AST_Node_Ptr);
40
- void invalid_extend_parent(Statement_Ptr, AST_Node_Ptr);
41
- // void invalid_import_parent(Statement_Ptr);
42
- void invalid_mixin_definition_parent(Statement_Ptr, AST_Node_Ptr);
43
- void invalid_function_parent(Statement_Ptr, AST_Node_Ptr);
39
+ void invalid_content_parent(Statement*, AST_Node*);
40
+ void invalid_charset_parent(Statement*, AST_Node*);
41
+ void invalid_extend_parent(Statement*, AST_Node*);
42
+ // void invalid_import_parent(Statement*);
43
+ void invalid_mixin_definition_parent(Statement*, AST_Node*);
44
+ void invalid_function_parent(Statement*, AST_Node*);
44
45
 
45
- void invalid_function_child(Statement_Ptr);
46
- void invalid_prop_child(Statement_Ptr);
47
- void invalid_prop_parent(Statement_Ptr, AST_Node_Ptr);
48
- void invalid_return_parent(Statement_Ptr, AST_Node_Ptr);
49
- void invalid_value_child(AST_Node_Ptr);
46
+ void invalid_function_child(Statement*);
47
+ void invalid_prop_child(Statement*);
48
+ void invalid_prop_parent(Statement*, AST_Node*);
49
+ void invalid_return_parent(Statement*, AST_Node*);
50
+ void invalid_value_child(AST_Node*);
50
51
 
51
- bool is_transparent_parent(Statement_Ptr, Statement_Ptr);
52
+ bool is_transparent_parent(Statement*, Statement*);
52
53
 
53
- bool should_visit(Statement_Ptr);
54
+ bool should_visit(Statement*);
54
55
 
55
- bool is_charset(Statement_Ptr);
56
- bool is_mixin(Statement_Ptr);
57
- bool is_function(Statement_Ptr);
58
- bool is_root_node(Statement_Ptr);
59
- bool is_at_root_node(Statement_Ptr);
60
- bool is_directive_node(Statement_Ptr);
56
+ bool is_charset(Statement*);
57
+ bool is_mixin(Statement*);
58
+ bool is_function(Statement*);
59
+ bool is_root_node(Statement*);
60
+ bool is_at_root_node(Statement*);
61
+ bool is_directive_node(Statement*);
61
62
  };
62
63
 
63
64
  }
@@ -1,4 +1,7 @@
1
+ // sass.hpp must go before all system headers to get the
2
+ // __EXTENSIONS__ fix on Solaris.
1
3
  #include "sass.hpp"
4
+
2
5
  #include "ast.hpp"
3
6
  #include "color_maps.hpp"
4
7
 
@@ -159,155 +162,155 @@ namespace Sass {
159
162
 
160
163
  namespace Colors {
161
164
  const ParserState color_table("[COLOR TABLE]");
162
- const Color aliceblue(color_table, 240, 248, 255, 1);
163
- const Color antiquewhite(color_table, 250, 235, 215, 1);
164
- const Color cyan(color_table, 0, 255, 255, 1);
165
- const Color aqua(color_table, 0, 255, 255, 1);
166
- const Color aquamarine(color_table, 127, 255, 212, 1);
167
- const Color azure(color_table, 240, 255, 255, 1);
168
- const Color beige(color_table, 245, 245, 220, 1);
169
- const Color bisque(color_table, 255, 228, 196, 1);
170
- const Color black(color_table, 0, 0, 0, 1);
171
- const Color blanchedalmond(color_table, 255, 235, 205, 1);
172
- const Color blue(color_table, 0, 0, 255, 1);
173
- const Color blueviolet(color_table, 138, 43, 226, 1);
174
- const Color brown(color_table, 165, 42, 42, 1);
175
- const Color burlywood(color_table, 222, 184, 135, 1);
176
- const Color cadetblue(color_table, 95, 158, 160, 1);
177
- const Color chartreuse(color_table, 127, 255, 0, 1);
178
- const Color chocolate(color_table, 210, 105, 30, 1);
179
- const Color coral(color_table, 255, 127, 80, 1);
180
- const Color cornflowerblue(color_table, 100, 149, 237, 1);
181
- const Color cornsilk(color_table, 255, 248, 220, 1);
182
- const Color crimson(color_table, 220, 20, 60, 1);
183
- const Color darkblue(color_table, 0, 0, 139, 1);
184
- const Color darkcyan(color_table, 0, 139, 139, 1);
185
- const Color darkgoldenrod(color_table, 184, 134, 11, 1);
186
- const Color darkgray(color_table, 169, 169, 169, 1);
187
- const Color darkgrey(color_table, 169, 169, 169, 1);
188
- const Color darkgreen(color_table, 0, 100, 0, 1);
189
- const Color darkkhaki(color_table, 189, 183, 107, 1);
190
- const Color darkmagenta(color_table, 139, 0, 139, 1);
191
- const Color darkolivegreen(color_table, 85, 107, 47, 1);
192
- const Color darkorange(color_table, 255, 140, 0, 1);
193
- const Color darkorchid(color_table, 153, 50, 204, 1);
194
- const Color darkred(color_table, 139, 0, 0, 1);
195
- const Color darksalmon(color_table, 233, 150, 122, 1);
196
- const Color darkseagreen(color_table, 143, 188, 143, 1);
197
- const Color darkslateblue(color_table, 72, 61, 139, 1);
198
- const Color darkslategray(color_table, 47, 79, 79, 1);
199
- const Color darkslategrey(color_table, 47, 79, 79, 1);
200
- const Color darkturquoise(color_table, 0, 206, 209, 1);
201
- const Color darkviolet(color_table, 148, 0, 211, 1);
202
- const Color deeppink(color_table, 255, 20, 147, 1);
203
- const Color deepskyblue(color_table, 0, 191, 255, 1);
204
- const Color dimgray(color_table, 105, 105, 105, 1);
205
- const Color dimgrey(color_table, 105, 105, 105, 1);
206
- const Color dodgerblue(color_table, 30, 144, 255, 1);
207
- const Color firebrick(color_table, 178, 34, 34, 1);
208
- const Color floralwhite(color_table, 255, 250, 240, 1);
209
- const Color forestgreen(color_table, 34, 139, 34, 1);
210
- const Color magenta(color_table, 255, 0, 255, 1);
211
- const Color fuchsia(color_table, 255, 0, 255, 1);
212
- const Color gainsboro(color_table, 220, 220, 220, 1);
213
- const Color ghostwhite(color_table, 248, 248, 255, 1);
214
- const Color gold(color_table, 255, 215, 0, 1);
215
- const Color goldenrod(color_table, 218, 165, 32, 1);
216
- const Color gray(color_table, 128, 128, 128, 1);
217
- const Color grey(color_table, 128, 128, 128, 1);
218
- const Color green(color_table, 0, 128, 0, 1);
219
- const Color greenyellow(color_table, 173, 255, 47, 1);
220
- const Color honeydew(color_table, 240, 255, 240, 1);
221
- const Color hotpink(color_table, 255, 105, 180, 1);
222
- const Color indianred(color_table, 205, 92, 92, 1);
223
- const Color indigo(color_table, 75, 0, 130, 1);
224
- const Color ivory(color_table, 255, 255, 240, 1);
225
- const Color khaki(color_table, 240, 230, 140, 1);
226
- const Color lavender(color_table, 230, 230, 250, 1);
227
- const Color lavenderblush(color_table, 255, 240, 245, 1);
228
- const Color lawngreen(color_table, 124, 252, 0, 1);
229
- const Color lemonchiffon(color_table, 255, 250, 205, 1);
230
- const Color lightblue(color_table, 173, 216, 230, 1);
231
- const Color lightcoral(color_table, 240, 128, 128, 1);
232
- const Color lightcyan(color_table, 224, 255, 255, 1);
233
- const Color lightgoldenrodyellow(color_table, 250, 250, 210, 1);
234
- const Color lightgray(color_table, 211, 211, 211, 1);
235
- const Color lightgrey(color_table, 211, 211, 211, 1);
236
- const Color lightgreen(color_table, 144, 238, 144, 1);
237
- const Color lightpink(color_table, 255, 182, 193, 1);
238
- const Color lightsalmon(color_table, 255, 160, 122, 1);
239
- const Color lightseagreen(color_table, 32, 178, 170, 1);
240
- const Color lightskyblue(color_table, 135, 206, 250, 1);
241
- const Color lightslategray(color_table, 119, 136, 153, 1);
242
- const Color lightslategrey(color_table, 119, 136, 153, 1);
243
- const Color lightsteelblue(color_table, 176, 196, 222, 1);
244
- const Color lightyellow(color_table, 255, 255, 224, 1);
245
- const Color lime(color_table, 0, 255, 0, 1);
246
- const Color limegreen(color_table, 50, 205, 50, 1);
247
- const Color linen(color_table, 250, 240, 230, 1);
248
- const Color maroon(color_table, 128, 0, 0, 1);
249
- const Color mediumaquamarine(color_table, 102, 205, 170, 1);
250
- const Color mediumblue(color_table, 0, 0, 205, 1);
251
- const Color mediumorchid(color_table, 186, 85, 211, 1);
252
- const Color mediumpurple(color_table, 147, 112, 219, 1);
253
- const Color mediumseagreen(color_table, 60, 179, 113, 1);
254
- const Color mediumslateblue(color_table, 123, 104, 238, 1);
255
- const Color mediumspringgreen(color_table, 0, 250, 154, 1);
256
- const Color mediumturquoise(color_table, 72, 209, 204, 1);
257
- const Color mediumvioletred(color_table, 199, 21, 133, 1);
258
- const Color midnightblue(color_table, 25, 25, 112, 1);
259
- const Color mintcream(color_table, 245, 255, 250, 1);
260
- const Color mistyrose(color_table, 255, 228, 225, 1);
261
- const Color moccasin(color_table, 255, 228, 181, 1);
262
- const Color navajowhite(color_table, 255, 222, 173, 1);
263
- const Color navy(color_table, 0, 0, 128, 1);
264
- const Color oldlace(color_table, 253, 245, 230, 1);
265
- const Color olive(color_table, 128, 128, 0, 1);
266
- const Color olivedrab(color_table, 107, 142, 35, 1);
267
- const Color orange(color_table, 255, 165, 0, 1);
268
- const Color orangered(color_table, 255, 69, 0, 1);
269
- const Color orchid(color_table, 218, 112, 214, 1);
270
- const Color palegoldenrod(color_table, 238, 232, 170, 1);
271
- const Color palegreen(color_table, 152, 251, 152, 1);
272
- const Color paleturquoise(color_table, 175, 238, 238, 1);
273
- const Color palevioletred(color_table, 219, 112, 147, 1);
274
- const Color papayawhip(color_table, 255, 239, 213, 1);
275
- const Color peachpuff(color_table, 255, 218, 185, 1);
276
- const Color peru(color_table, 205, 133, 63, 1);
277
- const Color pink(color_table, 255, 192, 203, 1);
278
- const Color plum(color_table, 221, 160, 221, 1);
279
- const Color powderblue(color_table, 176, 224, 230, 1);
280
- const Color purple(color_table, 128, 0, 128, 1);
281
- const Color red(color_table, 255, 0, 0, 1);
282
- const Color rosybrown(color_table, 188, 143, 143, 1);
283
- const Color royalblue(color_table, 65, 105, 225, 1);
284
- const Color saddlebrown(color_table, 139, 69, 19, 1);
285
- const Color salmon(color_table, 250, 128, 114, 1);
286
- const Color sandybrown(color_table, 244, 164, 96, 1);
287
- const Color seagreen(color_table, 46, 139, 87, 1);
288
- const Color seashell(color_table, 255, 245, 238, 1);
289
- const Color sienna(color_table, 160, 82, 45, 1);
290
- const Color silver(color_table, 192, 192, 192, 1);
291
- const Color skyblue(color_table, 135, 206, 235, 1);
292
- const Color slateblue(color_table, 106, 90, 205, 1);
293
- const Color slategray(color_table, 112, 128, 144, 1);
294
- const Color slategrey(color_table, 112, 128, 144, 1);
295
- const Color snow(color_table, 255, 250, 250, 1);
296
- const Color springgreen(color_table, 0, 255, 127, 1);
297
- const Color steelblue(color_table, 70, 130, 180, 1);
298
- const Color tan(color_table, 210, 180, 140, 1);
299
- const Color teal(color_table, 0, 128, 128, 1);
300
- const Color thistle(color_table, 216, 191, 216, 1);
301
- const Color tomato(color_table, 255, 99, 71, 1);
302
- const Color turquoise(color_table, 64, 224, 208, 1);
303
- const Color violet(color_table, 238, 130, 238, 1);
304
- const Color wheat(color_table, 245, 222, 179, 1);
305
- const Color white(color_table, 255, 255, 255, 1);
306
- const Color whitesmoke(color_table, 245, 245, 245, 1);
307
- const Color yellow(color_table, 255, 255, 0, 1);
308
- const Color yellowgreen(color_table, 154, 205, 50, 1);
309
- const Color rebeccapurple(color_table, 102, 51, 153, 1);
310
- const Color transparent(color_table, 0, 0, 0, 0);
165
+ const Color_RGBA aliceblue(color_table, 240, 248, 255, 1);
166
+ const Color_RGBA antiquewhite(color_table, 250, 235, 215, 1);
167
+ const Color_RGBA cyan(color_table, 0, 255, 255, 1);
168
+ const Color_RGBA aqua(color_table, 0, 255, 255, 1);
169
+ const Color_RGBA aquamarine(color_table, 127, 255, 212, 1);
170
+ const Color_RGBA azure(color_table, 240, 255, 255, 1);
171
+ const Color_RGBA beige(color_table, 245, 245, 220, 1);
172
+ const Color_RGBA bisque(color_table, 255, 228, 196, 1);
173
+ const Color_RGBA black(color_table, 0, 0, 0, 1);
174
+ const Color_RGBA blanchedalmond(color_table, 255, 235, 205, 1);
175
+ const Color_RGBA blue(color_table, 0, 0, 255, 1);
176
+ const Color_RGBA blueviolet(color_table, 138, 43, 226, 1);
177
+ const Color_RGBA brown(color_table, 165, 42, 42, 1);
178
+ const Color_RGBA burlywood(color_table, 222, 184, 135, 1);
179
+ const Color_RGBA cadetblue(color_table, 95, 158, 160, 1);
180
+ const Color_RGBA chartreuse(color_table, 127, 255, 0, 1);
181
+ const Color_RGBA chocolate(color_table, 210, 105, 30, 1);
182
+ const Color_RGBA coral(color_table, 255, 127, 80, 1);
183
+ const Color_RGBA cornflowerblue(color_table, 100, 149, 237, 1);
184
+ const Color_RGBA cornsilk(color_table, 255, 248, 220, 1);
185
+ const Color_RGBA crimson(color_table, 220, 20, 60, 1);
186
+ const Color_RGBA darkblue(color_table, 0, 0, 139, 1);
187
+ const Color_RGBA darkcyan(color_table, 0, 139, 139, 1);
188
+ const Color_RGBA darkgoldenrod(color_table, 184, 134, 11, 1);
189
+ const Color_RGBA darkgray(color_table, 169, 169, 169, 1);
190
+ const Color_RGBA darkgrey(color_table, 169, 169, 169, 1);
191
+ const Color_RGBA darkgreen(color_table, 0, 100, 0, 1);
192
+ const Color_RGBA darkkhaki(color_table, 189, 183, 107, 1);
193
+ const Color_RGBA darkmagenta(color_table, 139, 0, 139, 1);
194
+ const Color_RGBA darkolivegreen(color_table, 85, 107, 47, 1);
195
+ const Color_RGBA darkorange(color_table, 255, 140, 0, 1);
196
+ const Color_RGBA darkorchid(color_table, 153, 50, 204, 1);
197
+ const Color_RGBA darkred(color_table, 139, 0, 0, 1);
198
+ const Color_RGBA darksalmon(color_table, 233, 150, 122, 1);
199
+ const Color_RGBA darkseagreen(color_table, 143, 188, 143, 1);
200
+ const Color_RGBA darkslateblue(color_table, 72, 61, 139, 1);
201
+ const Color_RGBA darkslategray(color_table, 47, 79, 79, 1);
202
+ const Color_RGBA darkslategrey(color_table, 47, 79, 79, 1);
203
+ const Color_RGBA darkturquoise(color_table, 0, 206, 209, 1);
204
+ const Color_RGBA darkviolet(color_table, 148, 0, 211, 1);
205
+ const Color_RGBA deeppink(color_table, 255, 20, 147, 1);
206
+ const Color_RGBA deepskyblue(color_table, 0, 191, 255, 1);
207
+ const Color_RGBA dimgray(color_table, 105, 105, 105, 1);
208
+ const Color_RGBA dimgrey(color_table, 105, 105, 105, 1);
209
+ const Color_RGBA dodgerblue(color_table, 30, 144, 255, 1);
210
+ const Color_RGBA firebrick(color_table, 178, 34, 34, 1);
211
+ const Color_RGBA floralwhite(color_table, 255, 250, 240, 1);
212
+ const Color_RGBA forestgreen(color_table, 34, 139, 34, 1);
213
+ const Color_RGBA magenta(color_table, 255, 0, 255, 1);
214
+ const Color_RGBA fuchsia(color_table, 255, 0, 255, 1);
215
+ const Color_RGBA gainsboro(color_table, 220, 220, 220, 1);
216
+ const Color_RGBA ghostwhite(color_table, 248, 248, 255, 1);
217
+ const Color_RGBA gold(color_table, 255, 215, 0, 1);
218
+ const Color_RGBA goldenrod(color_table, 218, 165, 32, 1);
219
+ const Color_RGBA gray(color_table, 128, 128, 128, 1);
220
+ const Color_RGBA grey(color_table, 128, 128, 128, 1);
221
+ const Color_RGBA green(color_table, 0, 128, 0, 1);
222
+ const Color_RGBA greenyellow(color_table, 173, 255, 47, 1);
223
+ const Color_RGBA honeydew(color_table, 240, 255, 240, 1);
224
+ const Color_RGBA hotpink(color_table, 255, 105, 180, 1);
225
+ const Color_RGBA indianred(color_table, 205, 92, 92, 1);
226
+ const Color_RGBA indigo(color_table, 75, 0, 130, 1);
227
+ const Color_RGBA ivory(color_table, 255, 255, 240, 1);
228
+ const Color_RGBA khaki(color_table, 240, 230, 140, 1);
229
+ const Color_RGBA lavender(color_table, 230, 230, 250, 1);
230
+ const Color_RGBA lavenderblush(color_table, 255, 240, 245, 1);
231
+ const Color_RGBA lawngreen(color_table, 124, 252, 0, 1);
232
+ const Color_RGBA lemonchiffon(color_table, 255, 250, 205, 1);
233
+ const Color_RGBA lightblue(color_table, 173, 216, 230, 1);
234
+ const Color_RGBA lightcoral(color_table, 240, 128, 128, 1);
235
+ const Color_RGBA lightcyan(color_table, 224, 255, 255, 1);
236
+ const Color_RGBA lightgoldenrodyellow(color_table, 250, 250, 210, 1);
237
+ const Color_RGBA lightgray(color_table, 211, 211, 211, 1);
238
+ const Color_RGBA lightgrey(color_table, 211, 211, 211, 1);
239
+ const Color_RGBA lightgreen(color_table, 144, 238, 144, 1);
240
+ const Color_RGBA lightpink(color_table, 255, 182, 193, 1);
241
+ const Color_RGBA lightsalmon(color_table, 255, 160, 122, 1);
242
+ const Color_RGBA lightseagreen(color_table, 32, 178, 170, 1);
243
+ const Color_RGBA lightskyblue(color_table, 135, 206, 250, 1);
244
+ const Color_RGBA lightslategray(color_table, 119, 136, 153, 1);
245
+ const Color_RGBA lightslategrey(color_table, 119, 136, 153, 1);
246
+ const Color_RGBA lightsteelblue(color_table, 176, 196, 222, 1);
247
+ const Color_RGBA lightyellow(color_table, 255, 255, 224, 1);
248
+ const Color_RGBA lime(color_table, 0, 255, 0, 1);
249
+ const Color_RGBA limegreen(color_table, 50, 205, 50, 1);
250
+ const Color_RGBA linen(color_table, 250, 240, 230, 1);
251
+ const Color_RGBA maroon(color_table, 128, 0, 0, 1);
252
+ const Color_RGBA mediumaquamarine(color_table, 102, 205, 170, 1);
253
+ const Color_RGBA mediumblue(color_table, 0, 0, 205, 1);
254
+ const Color_RGBA mediumorchid(color_table, 186, 85, 211, 1);
255
+ const Color_RGBA mediumpurple(color_table, 147, 112, 219, 1);
256
+ const Color_RGBA mediumseagreen(color_table, 60, 179, 113, 1);
257
+ const Color_RGBA mediumslateblue(color_table, 123, 104, 238, 1);
258
+ const Color_RGBA mediumspringgreen(color_table, 0, 250, 154, 1);
259
+ const Color_RGBA mediumturquoise(color_table, 72, 209, 204, 1);
260
+ const Color_RGBA mediumvioletred(color_table, 199, 21, 133, 1);
261
+ const Color_RGBA midnightblue(color_table, 25, 25, 112, 1);
262
+ const Color_RGBA mintcream(color_table, 245, 255, 250, 1);
263
+ const Color_RGBA mistyrose(color_table, 255, 228, 225, 1);
264
+ const Color_RGBA moccasin(color_table, 255, 228, 181, 1);
265
+ const Color_RGBA navajowhite(color_table, 255, 222, 173, 1);
266
+ const Color_RGBA navy(color_table, 0, 0, 128, 1);
267
+ const Color_RGBA oldlace(color_table, 253, 245, 230, 1);
268
+ const Color_RGBA olive(color_table, 128, 128, 0, 1);
269
+ const Color_RGBA olivedrab(color_table, 107, 142, 35, 1);
270
+ const Color_RGBA orange(color_table, 255, 165, 0, 1);
271
+ const Color_RGBA orangered(color_table, 255, 69, 0, 1);
272
+ const Color_RGBA orchid(color_table, 218, 112, 214, 1);
273
+ const Color_RGBA palegoldenrod(color_table, 238, 232, 170, 1);
274
+ const Color_RGBA palegreen(color_table, 152, 251, 152, 1);
275
+ const Color_RGBA paleturquoise(color_table, 175, 238, 238, 1);
276
+ const Color_RGBA palevioletred(color_table, 219, 112, 147, 1);
277
+ const Color_RGBA papayawhip(color_table, 255, 239, 213, 1);
278
+ const Color_RGBA peachpuff(color_table, 255, 218, 185, 1);
279
+ const Color_RGBA peru(color_table, 205, 133, 63, 1);
280
+ const Color_RGBA pink(color_table, 255, 192, 203, 1);
281
+ const Color_RGBA plum(color_table, 221, 160, 221, 1);
282
+ const Color_RGBA powderblue(color_table, 176, 224, 230, 1);
283
+ const Color_RGBA purple(color_table, 128, 0, 128, 1);
284
+ const Color_RGBA red(color_table, 255, 0, 0, 1);
285
+ const Color_RGBA rosybrown(color_table, 188, 143, 143, 1);
286
+ const Color_RGBA royalblue(color_table, 65, 105, 225, 1);
287
+ const Color_RGBA saddlebrown(color_table, 139, 69, 19, 1);
288
+ const Color_RGBA salmon(color_table, 250, 128, 114, 1);
289
+ const Color_RGBA sandybrown(color_table, 244, 164, 96, 1);
290
+ const Color_RGBA seagreen(color_table, 46, 139, 87, 1);
291
+ const Color_RGBA seashell(color_table, 255, 245, 238, 1);
292
+ const Color_RGBA sienna(color_table, 160, 82, 45, 1);
293
+ const Color_RGBA silver(color_table, 192, 192, 192, 1);
294
+ const Color_RGBA skyblue(color_table, 135, 206, 235, 1);
295
+ const Color_RGBA slateblue(color_table, 106, 90, 205, 1);
296
+ const Color_RGBA slategray(color_table, 112, 128, 144, 1);
297
+ const Color_RGBA slategrey(color_table, 112, 128, 144, 1);
298
+ const Color_RGBA snow(color_table, 255, 250, 250, 1);
299
+ const Color_RGBA springgreen(color_table, 0, 255, 127, 1);
300
+ const Color_RGBA steelblue(color_table, 70, 130, 180, 1);
301
+ const Color_RGBA tan(color_table, 210, 180, 140, 1);
302
+ const Color_RGBA teal(color_table, 0, 128, 128, 1);
303
+ const Color_RGBA thistle(color_table, 216, 191, 216, 1);
304
+ const Color_RGBA tomato(color_table, 255, 99, 71, 1);
305
+ const Color_RGBA turquoise(color_table, 64, 224, 208, 1);
306
+ const Color_RGBA violet(color_table, 238, 130, 238, 1);
307
+ const Color_RGBA wheat(color_table, 245, 222, 179, 1);
308
+ const Color_RGBA white(color_table, 255, 255, 255, 1);
309
+ const Color_RGBA whitesmoke(color_table, 245, 245, 245, 1);
310
+ const Color_RGBA yellow(color_table, 255, 255, 0, 1);
311
+ const Color_RGBA yellowgreen(color_table, 154, 205, 50, 1);
312
+ const Color_RGBA rebeccapurple(color_table, 102, 51, 153, 1);
313
+ const Color_RGBA transparent(color_table, 0, 0, 0, 0);
311
314
  }
312
315
 
313
316
  const std::map<const int, const char*> colors_to_names {
@@ -452,7 +455,7 @@ namespace Sass {
452
455
  { 102 * 0x10000 + 51 * 0x100 + 153, ColorNames::rebeccapurple }
453
456
  };
454
457
 
455
- const std::map<const char*, Color_Ptr_Const, map_cmp_str> names_to_colors
458
+ const std::map<const char*, const Color_RGBA*, map_cmp_str> names_to_colors
456
459
  {
457
460
  { ColorNames::aliceblue, &Colors::aliceblue },
458
461
  { ColorNames::antiquewhite, &Colors::antiquewhite },
@@ -605,12 +608,12 @@ namespace Sass {
605
608
  { ColorNames::transparent, &Colors::transparent }
606
609
  };
607
610
 
608
- Color_Ptr_Const name_to_color(const char* key)
611
+ const Color_RGBA* name_to_color(const char* key)
609
612
  {
610
613
  return name_to_color(std::string(key));
611
614
  }
612
615
 
613
- Color_Ptr_Const name_to_color(const std::string& key)
616
+ const Color_RGBA* name_to_color(const std::string& key)
614
617
  {
615
618
  // case insensitive lookup. See #2462
616
619
  std::string lower{key};
@@ -637,7 +640,7 @@ namespace Sass {
637
640
  return color_to_name((int)key);
638
641
  }
639
642
 
640
- const char* color_to_name(const Color& c)
643
+ const char* color_to_name(const Color_RGBA& c)
641
644
  {
642
645
  double key = c.r() * 0x10000
643
646
  + c.g() * 0x100
@@ -169,161 +169,161 @@ namespace Sass {
169
169
  }
170
170
 
171
171
  namespace Colors {
172
- extern const Color aliceblue;
173
- extern const Color antiquewhite;
174
- extern const Color cyan;
175
- extern const Color aqua;
176
- extern const Color aquamarine;
177
- extern const Color azure;
178
- extern const Color beige;
179
- extern const Color bisque;
180
- extern const Color black;
181
- extern const Color blanchedalmond;
182
- extern const Color blue;
183
- extern const Color blueviolet;
184
- extern const Color brown;
185
- extern const Color burlywood;
186
- extern const Color cadetblue;
187
- extern const Color chartreuse;
188
- extern const Color chocolate;
189
- extern const Color coral;
190
- extern const Color cornflowerblue;
191
- extern const Color cornsilk;
192
- extern const Color crimson;
193
- extern const Color darkblue;
194
- extern const Color darkcyan;
195
- extern const Color darkgoldenrod;
196
- extern const Color darkgray;
197
- extern const Color darkgrey;
198
- extern const Color darkgreen;
199
- extern const Color darkkhaki;
200
- extern const Color darkmagenta;
201
- extern const Color darkolivegreen;
202
- extern const Color darkorange;
203
- extern const Color darkorchid;
204
- extern const Color darkred;
205
- extern const Color darksalmon;
206
- extern const Color darkseagreen;
207
- extern const Color darkslateblue;
208
- extern const Color darkslategray;
209
- extern const Color darkslategrey;
210
- extern const Color darkturquoise;
211
- extern const Color darkviolet;
212
- extern const Color deeppink;
213
- extern const Color deepskyblue;
214
- extern const Color dimgray;
215
- extern const Color dimgrey;
216
- extern const Color dodgerblue;
217
- extern const Color firebrick;
218
- extern const Color floralwhite;
219
- extern const Color forestgreen;
220
- extern const Color magenta;
221
- extern const Color fuchsia;
222
- extern const Color gainsboro;
223
- extern const Color ghostwhite;
224
- extern const Color gold;
225
- extern const Color goldenrod;
226
- extern const Color gray;
227
- extern const Color grey;
228
- extern const Color green;
229
- extern const Color greenyellow;
230
- extern const Color honeydew;
231
- extern const Color hotpink;
232
- extern const Color indianred;
233
- extern const Color indigo;
234
- extern const Color ivory;
235
- extern const Color khaki;
236
- extern const Color lavender;
237
- extern const Color lavenderblush;
238
- extern const Color lawngreen;
239
- extern const Color lemonchiffon;
240
- extern const Color lightblue;
241
- extern const Color lightcoral;
242
- extern const Color lightcyan;
243
- extern const Color lightgoldenrodyellow;
244
- extern const Color lightgray;
245
- extern const Color lightgrey;
246
- extern const Color lightgreen;
247
- extern const Color lightpink;
248
- extern const Color lightsalmon;
249
- extern const Color lightseagreen;
250
- extern const Color lightskyblue;
251
- extern const Color lightslategray;
252
- extern const Color lightslategrey;
253
- extern const Color lightsteelblue;
254
- extern const Color lightyellow;
255
- extern const Color lime;
256
- extern const Color limegreen;
257
- extern const Color linen;
258
- extern const Color maroon;
259
- extern const Color mediumaquamarine;
260
- extern const Color mediumblue;
261
- extern const Color mediumorchid;
262
- extern const Color mediumpurple;
263
- extern const Color mediumseagreen;
264
- extern const Color mediumslateblue;
265
- extern const Color mediumspringgreen;
266
- extern const Color mediumturquoise;
267
- extern const Color mediumvioletred;
268
- extern const Color midnightblue;
269
- extern const Color mintcream;
270
- extern const Color mistyrose;
271
- extern const Color moccasin;
272
- extern const Color navajowhite;
273
- extern const Color navy;
274
- extern const Color oldlace;
275
- extern const Color olive;
276
- extern const Color olivedrab;
277
- extern const Color orange;
278
- extern const Color orangered;
279
- extern const Color orchid;
280
- extern const Color palegoldenrod;
281
- extern const Color palegreen;
282
- extern const Color paleturquoise;
283
- extern const Color palevioletred;
284
- extern const Color papayawhip;
285
- extern const Color peachpuff;
286
- extern const Color peru;
287
- extern const Color pink;
288
- extern const Color plum;
289
- extern const Color powderblue;
290
- extern const Color purple;
291
- extern const Color red;
292
- extern const Color rosybrown;
293
- extern const Color royalblue;
294
- extern const Color saddlebrown;
295
- extern const Color salmon;
296
- extern const Color sandybrown;
297
- extern const Color seagreen;
298
- extern const Color seashell;
299
- extern const Color sienna;
300
- extern const Color silver;
301
- extern const Color skyblue;
302
- extern const Color slateblue;
303
- extern const Color slategray;
304
- extern const Color slategrey;
305
- extern const Color snow;
306
- extern const Color springgreen;
307
- extern const Color steelblue;
308
- extern const Color tan;
309
- extern const Color teal;
310
- extern const Color thistle;
311
- extern const Color tomato;
312
- extern const Color turquoise;
313
- extern const Color violet;
314
- extern const Color wheat;
315
- extern const Color white;
316
- extern const Color whitesmoke;
317
- extern const Color yellow;
318
- extern const Color yellowgreen;
319
- extern const Color rebeccapurple;
320
- extern const Color transparent;
172
+ extern const Color_RGBA aliceblue;
173
+ extern const Color_RGBA antiquewhite;
174
+ extern const Color_RGBA cyan;
175
+ extern const Color_RGBA aqua;
176
+ extern const Color_RGBA aquamarine;
177
+ extern const Color_RGBA azure;
178
+ extern const Color_RGBA beige;
179
+ extern const Color_RGBA bisque;
180
+ extern const Color_RGBA black;
181
+ extern const Color_RGBA blanchedalmond;
182
+ extern const Color_RGBA blue;
183
+ extern const Color_RGBA blueviolet;
184
+ extern const Color_RGBA brown;
185
+ extern const Color_RGBA burlywood;
186
+ extern const Color_RGBA cadetblue;
187
+ extern const Color_RGBA chartreuse;
188
+ extern const Color_RGBA chocolate;
189
+ extern const Color_RGBA coral;
190
+ extern const Color_RGBA cornflowerblue;
191
+ extern const Color_RGBA cornsilk;
192
+ extern const Color_RGBA crimson;
193
+ extern const Color_RGBA darkblue;
194
+ extern const Color_RGBA darkcyan;
195
+ extern const Color_RGBA darkgoldenrod;
196
+ extern const Color_RGBA darkgray;
197
+ extern const Color_RGBA darkgrey;
198
+ extern const Color_RGBA darkgreen;
199
+ extern const Color_RGBA darkkhaki;
200
+ extern const Color_RGBA darkmagenta;
201
+ extern const Color_RGBA darkolivegreen;
202
+ extern const Color_RGBA darkorange;
203
+ extern const Color_RGBA darkorchid;
204
+ extern const Color_RGBA darkred;
205
+ extern const Color_RGBA darksalmon;
206
+ extern const Color_RGBA darkseagreen;
207
+ extern const Color_RGBA darkslateblue;
208
+ extern const Color_RGBA darkslategray;
209
+ extern const Color_RGBA darkslategrey;
210
+ extern const Color_RGBA darkturquoise;
211
+ extern const Color_RGBA darkviolet;
212
+ extern const Color_RGBA deeppink;
213
+ extern const Color_RGBA deepskyblue;
214
+ extern const Color_RGBA dimgray;
215
+ extern const Color_RGBA dimgrey;
216
+ extern const Color_RGBA dodgerblue;
217
+ extern const Color_RGBA firebrick;
218
+ extern const Color_RGBA floralwhite;
219
+ extern const Color_RGBA forestgreen;
220
+ extern const Color_RGBA magenta;
221
+ extern const Color_RGBA fuchsia;
222
+ extern const Color_RGBA gainsboro;
223
+ extern const Color_RGBA ghostwhite;
224
+ extern const Color_RGBA gold;
225
+ extern const Color_RGBA goldenrod;
226
+ extern const Color_RGBA gray;
227
+ extern const Color_RGBA grey;
228
+ extern const Color_RGBA green;
229
+ extern const Color_RGBA greenyellow;
230
+ extern const Color_RGBA honeydew;
231
+ extern const Color_RGBA hotpink;
232
+ extern const Color_RGBA indianred;
233
+ extern const Color_RGBA indigo;
234
+ extern const Color_RGBA ivory;
235
+ extern const Color_RGBA khaki;
236
+ extern const Color_RGBA lavender;
237
+ extern const Color_RGBA lavenderblush;
238
+ extern const Color_RGBA lawngreen;
239
+ extern const Color_RGBA lemonchiffon;
240
+ extern const Color_RGBA lightblue;
241
+ extern const Color_RGBA lightcoral;
242
+ extern const Color_RGBA lightcyan;
243
+ extern const Color_RGBA lightgoldenrodyellow;
244
+ extern const Color_RGBA lightgray;
245
+ extern const Color_RGBA lightgrey;
246
+ extern const Color_RGBA lightgreen;
247
+ extern const Color_RGBA lightpink;
248
+ extern const Color_RGBA lightsalmon;
249
+ extern const Color_RGBA lightseagreen;
250
+ extern const Color_RGBA lightskyblue;
251
+ extern const Color_RGBA lightslategray;
252
+ extern const Color_RGBA lightslategrey;
253
+ extern const Color_RGBA lightsteelblue;
254
+ extern const Color_RGBA lightyellow;
255
+ extern const Color_RGBA lime;
256
+ extern const Color_RGBA limegreen;
257
+ extern const Color_RGBA linen;
258
+ extern const Color_RGBA maroon;
259
+ extern const Color_RGBA mediumaquamarine;
260
+ extern const Color_RGBA mediumblue;
261
+ extern const Color_RGBA mediumorchid;
262
+ extern const Color_RGBA mediumpurple;
263
+ extern const Color_RGBA mediumseagreen;
264
+ extern const Color_RGBA mediumslateblue;
265
+ extern const Color_RGBA mediumspringgreen;
266
+ extern const Color_RGBA mediumturquoise;
267
+ extern const Color_RGBA mediumvioletred;
268
+ extern const Color_RGBA midnightblue;
269
+ extern const Color_RGBA mintcream;
270
+ extern const Color_RGBA mistyrose;
271
+ extern const Color_RGBA moccasin;
272
+ extern const Color_RGBA navajowhite;
273
+ extern const Color_RGBA navy;
274
+ extern const Color_RGBA oldlace;
275
+ extern const Color_RGBA olive;
276
+ extern const Color_RGBA olivedrab;
277
+ extern const Color_RGBA orange;
278
+ extern const Color_RGBA orangered;
279
+ extern const Color_RGBA orchid;
280
+ extern const Color_RGBA palegoldenrod;
281
+ extern const Color_RGBA palegreen;
282
+ extern const Color_RGBA paleturquoise;
283
+ extern const Color_RGBA palevioletred;
284
+ extern const Color_RGBA papayawhip;
285
+ extern const Color_RGBA peachpuff;
286
+ extern const Color_RGBA peru;
287
+ extern const Color_RGBA pink;
288
+ extern const Color_RGBA plum;
289
+ extern const Color_RGBA powderblue;
290
+ extern const Color_RGBA purple;
291
+ extern const Color_RGBA red;
292
+ extern const Color_RGBA rosybrown;
293
+ extern const Color_RGBA royalblue;
294
+ extern const Color_RGBA saddlebrown;
295
+ extern const Color_RGBA salmon;
296
+ extern const Color_RGBA sandybrown;
297
+ extern const Color_RGBA seagreen;
298
+ extern const Color_RGBA seashell;
299
+ extern const Color_RGBA sienna;
300
+ extern const Color_RGBA silver;
301
+ extern const Color_RGBA skyblue;
302
+ extern const Color_RGBA slateblue;
303
+ extern const Color_RGBA slategray;
304
+ extern const Color_RGBA slategrey;
305
+ extern const Color_RGBA snow;
306
+ extern const Color_RGBA springgreen;
307
+ extern const Color_RGBA steelblue;
308
+ extern const Color_RGBA tan;
309
+ extern const Color_RGBA teal;
310
+ extern const Color_RGBA thistle;
311
+ extern const Color_RGBA tomato;
312
+ extern const Color_RGBA turquoise;
313
+ extern const Color_RGBA violet;
314
+ extern const Color_RGBA wheat;
315
+ extern const Color_RGBA white;
316
+ extern const Color_RGBA whitesmoke;
317
+ extern const Color_RGBA yellow;
318
+ extern const Color_RGBA yellowgreen;
319
+ extern const Color_RGBA rebeccapurple;
320
+ extern const Color_RGBA transparent;
321
321
  }
322
322
 
323
- Color_Ptr_Const name_to_color(const char*);
324
- Color_Ptr_Const name_to_color(const std::string&);
323
+ const Color_RGBA* name_to_color(const char*);
324
+ const Color_RGBA* name_to_color(const std::string&);
325
325
  const char* color_to_name(const int);
326
- const char* color_to_name(const Color&);
326
+ const char* color_to_name(const Color_RGBA&);
327
327
  const char* color_to_name(const double);
328
328
 
329
329
  }