Changeset 2771 for trunk/src/kmk/variable.h
- Timestamp:
- Feb 1, 2015, 9:48:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/variable.h
r2770 r2771 18 18 19 19 #include "hash.h" 20 #ifdef CONFIG_WITH_COMPILER 21 # include "kmk_cc_exec.h" 22 #endif 20 23 21 24 /* Codes in a variable definition saying where the definition came from. … … 109 112 v_default /* Decide in target_environment. */ 110 113 } export ENUM_BITFIELD (2); 114 #ifdef CONFIG_WITH_COMPILER 115 int recursive_without_dollar : 2; /* 0 if undetermined, 1 if value has no '$' chars, -1 if it has. */ 116 #endif 111 117 #ifdef CONFIG_WITH_MAKE_STATS 112 118 unsigned int changes; /* Variable modification count. */ … … 133 139 (v)->expand_count = 0; \ 134 140 (v)->evalval_count = 0; \ 141 (v)->recursive_without_dollar = 0; \ 135 142 } while (0) 136 143 #else 137 144 # define VARIABLE_CHANGED(v) MAKE_STATS_2((v)->changes++) 145 #endif 146 147 /* Macro that avoids a lot of CONFIG_WITH_COMPILER checks when 148 accessing recursive_without_dollar. */ 149 #ifdef CONFIG_WITH_COMPILER 150 # define IS_VARIABLE_RECURSIVE_WITHOUT_DOLLAR(v) ((v)->recursive_without_dollar > 0) 151 #else 152 # define IS_VARIABLE_RECURSIVE_WITHOUT_DOLLAR(v) 0 138 153 #endif 139 154
Note:
See TracChangeset
for help on using the changeset viewer.