cataract 0.2.2 → 0.2.4

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.
@@ -13,17 +13,19 @@ extern VALUE cDeclaration;
13
13
  extern VALUE cAtRule;
14
14
  extern VALUE cStylesheet;
15
15
  extern VALUE cImportStatement;
16
+ extern VALUE cMediaQuery;
16
17
 
17
18
  // Error class references
18
19
  extern VALUE eCataractError;
19
20
  extern VALUE eDepthError;
20
21
  extern VALUE eSizeError;
22
+ extern VALUE eParserError;
21
23
 
22
24
  // ============================================================================
23
25
  // Struct field indices
24
26
  // ============================================================================
25
27
 
26
- // Rule struct field indices (id, selector, declarations, specificity, parent_rule_id, nesting_style, selector_list_id)
28
+ // Rule struct field indices (id, selector, declarations, specificity, parent_rule_id, nesting_style, selector_list_id, media_query_id)
27
29
  #define RULE_ID 0
28
30
  #define RULE_SELECTOR 1
29
31
  #define RULE_DECLARATIONS 2
@@ -31,6 +33,7 @@ extern VALUE eSizeError;
31
33
  #define RULE_PARENT_RULE_ID 4
32
34
  #define RULE_NESTING_STYLE 5
33
35
  #define RULE_SELECTOR_LIST_ID 6
36
+ #define RULE_MEDIA_QUERY_ID 7
34
37
 
35
38
  // Nesting style constants
36
39
  #define NESTING_STYLE_IMPLICIT 0 // .parent { .child { } } - no &
@@ -41,6 +44,7 @@ extern VALUE eSizeError;
41
44
  #define NO_PARENT_MEDIA Qnil
42
45
  #define NO_PARENT_SELECTOR Qnil
43
46
  #define NO_PARENT_RULE_ID Qnil
47
+ #define NO_MEDIA_QUERY_ID (-1)
44
48
 
45
49
  // Declaration struct field indices (property, value, important)
46
50
  #define DECL_PROPERTY 0