Lines Matching refs:right

125 		 *               "right": <expression> }
132 struct element *right;
144 right = mapGet(arg, "right");
145 if (right == NULL)
152 right = eval_expression(right, &rmodified);
154 mapRemove(arg, "right");
155 mapSet(arg, right, "right");
158 equal = eval_equal_expression(left, right);
175 * "right": <expression> }
182 struct element *right;
194 right = mapGet(arg, "right");
195 if (right == NULL)
202 right = eval_expression(right, &rmodified);
204 mapRemove(arg, "right");
205 mapSet(arg, right, "right");
208 equal = eval_equal_expression(left, right);
224 * "right": <data_expression> }
226 * semantics: evaluate branches, compile right as a
236 * "right": <data_expression> }
238 * semantics: evaluate branches, compile right as a
248 * "right": <boolean_expression> }
255 struct element *right;
266 right = mapGet(arg, "right");
267 if (right == NULL)
268 debug("can't get and right branch");
274 right = eval_boolean_expression(right, &rmodified);
276 mapRemove(arg, "right");
277 mapSet(arg, right, "right");
285 result = copy(right);
291 TAILQ_CONCAT(&result->comments, &right->comments);
294 if (right->type == ELEMENT_BOOLEAN) {
296 if (!boolValue(right))
305 TAILQ_CONCAT(&result->comments, &right->comments);
316 * "right": <boolean_expression> }
323 struct element *right;
334 right = mapGet(arg, "right");
335 if (right == NULL)
342 right = eval_boolean_expression(right, &rmodified);
344 mapRemove(arg, "right");
345 mapSet(arg, right, "right");
353 result = copy(right);
359 TAILQ_CONCAT(&result->comments, &right->comments);
362 if (right->type == ELEMENT_BOOLEAN) {
364 if (boolValue(right))
373 TAILQ_CONCAT(&result->comments, &right->comments);
568 struct element *right;
576 right = mapGet(concat, "right");
577 if (right == NULL)
584 mapSet(arg, right, "expression");
599 struct element *right;
607 right = mapGet(concat, "right");
608 if (right == NULL)
784 struct element *right;
795 right = createMap();
796 mapSet(right, createNull(), "hw-address");
797 mapSet(concat, right, "right");
844 * "right": <data_expression> }
850 struct element *right;
862 right = mapGet(arg, "right");
863 if (right == NULL)
870 right = eval_data_expression(right, &rmodified);
872 mapRemove(arg, "right");
873 mapSet(arg, right, "right");
880 return right;
882 if ((right->type == ELEMENT_STRING) &&
883 (stringValue(right)->length == 0)) {
889 (right->type != ELEMENT_STRING))
894 concatString(r, stringValue(right));
899 TAILQ_CONCAT(&result->comments, &right->comments);
1632 * "right": <boolean_expression> }
1634 * semantics: evaluate branches, return left plus right
1639 struct element *right;
1650 right = mapGet(arg, "right");
1651 if (right == NULL)
1658 right = eval_numeric_expression(right, &rmodified);
1660 mapRemove(arg, "right");
1661 mapSet(arg, right, "right");
1665 (right->type != ELEMENT_INTEGER))
1668 result = createInt(intValue(left) + intValue(right));
1672 TAILQ_CONCAT(&result->comments, &right->comments);
1681 * "right": <boolean_expression> }
1683 * semantics: evaluate branches, return left plus right
1688 struct element *right;
1699 right = mapGet(arg, "right");
1700 if (right == NULL)
1707 right = eval_numeric_expression(right, &rmodified);
1709 mapRemove(arg, "right");
1710 mapSet(arg, right, "right");
1714 (right->type != ELEMENT_INTEGER))
1717 result = createInt(intValue(left) - intValue(right));
1721 TAILQ_CONCAT(&result->comments, &right->comments);
1730 * "right": <boolean_expression> }
1732 * semantics: evaluate branches, return left plus right
1737 struct element *right;
1748 right = mapGet(arg, "right");
1749 if (right == NULL)
1756 right = eval_numeric_expression(right, &rmodified);
1758 mapRemove(arg, "right");
1759 mapSet(arg, right, "right");
1763 (right->type != ELEMENT_INTEGER))
1766 result = createInt(intValue(left) * intValue(right));
1770 TAILQ_CONCAT(&result->comments, &right->comments);
1779 * "right": <boolean_expression> }
1781 * semantics: evaluate branches, return left plus right
1786 struct element *right;
1797 right = mapGet(arg, "right");
1798 if (right == NULL)
1805 right = eval_numeric_expression(right, &rmodified);
1807 mapRemove(arg, "right");
1808 mapSet(arg, right, "right");
1812 (right->type != ELEMENT_INTEGER))
1814 if (intValue(right) == 0)
1817 result = createInt(intValue(left) / intValue(right));
1821 TAILQ_CONCAT(&result->comments, &right->comments);
1830 * "right": <boolean_expression> }
1832 * semantics: evaluate branches, return left plus right
1837 struct element *right;
1848 right = mapGet(arg, "right");
1849 if (right == NULL)
1856 right = eval_numeric_expression(right, &rmodified);
1858 mapRemove(arg, "right");
1859 mapSet(arg, right, "right");
1863 (right->type != ELEMENT_INTEGER))
1865 if (intValue(right) == 0)
1868 result = createInt(intValue(left) % intValue(right));
1872 TAILQ_CONCAT(&result->comments, &right->comments);
1881 * "right": <boolean_expression> }
1883 * semantics: evaluate branches, return left plus right
1888 struct element *right;
1899 right = mapGet(arg, "right");
1900 if (right == NULL)
1907 right = eval_numeric_expression(right, &rmodified);
1909 mapRemove(arg, "right");
1910 mapSet(arg, right, "right");
1914 (right->type != ELEMENT_INTEGER))
1917 result = createInt(intValue(left) & intValue(right));
1921 TAILQ_CONCAT(&result->comments, &right->comments);
1930 * "right": <boolean_expression> }
1932 * semantics: evaluate branches, return left plus right
1937 struct element *right;
1948 right = mapGet(arg, "right");
1949 if (right == NULL)
1956 right = eval_numeric_expression(right, &rmodified);
1958 mapRemove(arg, "right");
1959 mapSet(arg, right, "right");
1963 (right->type != ELEMENT_INTEGER))
1966 result = createInt(intValue(left) | intValue(right));
1970 TAILQ_CONCAT(&result->comments, &right->comments);
1979 * "right": <boolean_expression> }
1981 * semantics: evaluate branches, return left plus right
1986 struct element *right;
1997 right = mapGet(arg, "right");
1998 if (right == NULL)
2005 right = eval_numeric_expression(right, &rmodified);
2007 mapRemove(arg, "right");
2008 mapSet(arg, right, "right");
2012 (right->type != ELEMENT_INTEGER))
2015 result = createInt(intValue(left) ^ intValue(right));
2019 TAILQ_CONCAT(&result->comments, &right->comments);
2040 eval_equal_expression(struct element *left, struct element *right)
2047 if (right->type == ELEMENT_BOOLEAN)
2048 val = ISC_TF(boolValue(left) == boolValue(right));
2049 else if (right->type == ELEMENT_MAP)
2054 /* right is boolean */
2055 if (right->type == ELEMENT_BOOLEAN) {
2063 if (right->type == ELEMENT_INTEGER)
2064 val = ISC_TF(intValue(left) == intValue(right));
2065 else if ((right->type == ELEMENT_MAP) &&
2066 mapContains(right, "const-int")) {
2069 ci = mapGet(right, "const-int");
2075 } else if (right->type == ELEMENT_MAP)
2082 if (right->type == ELEMENT_INTEGER) {
2090 val = ISC_TF(intValue(ci) == intValue(right));
2091 } else if ((right->type == ELEMENT_MAP) &&
2092 mapContains(right, "const-int")) {
2097 rci = mapGet(right, "const-int");
2104 } else if (right->type == ELEMENT_MAP)
2109 /* right is numeric literal */
2110 if (right->type == ELEMENT_INTEGER) {
2116 /* right is const-int */
2117 if ((right->type == ELEMENT_MAP) && mapContains(right, "const-int")) {
2125 if (right->type == ELEMENT_STRING)
2126 val = cmp_hexa(left, ISC_FALSE, right, ISC_FALSE);
2127 else if ((right->type == ELEMENT_MAP) &&
2128 mapContains(right, "const-data")) {
2131 cd = mapGet(right, "const-data");
2137 } else if (right->type == ELEMENT_MAP)
2144 if (right->type == ELEMENT_STRING) {
2152 val = cmp_hexa(cd, ISC_TRUE, right, ISC_FALSE);
2153 } else if ((right->type == ELEMENT_MAP) &&
2154 mapContains(right, "const-data")) {
2159 rcd = mapGet(right, "const-data");
2166 } else if (right->type == ELEMENT_MAP)
2171 /* right is data literal */
2172 if (right->type == ELEMENT_STRING) {
2178 /* right is const-data */
2179 if ((right->type == ELEMENT_MAP) && mapContains(right, "const-data")) {
2186 if ((left->type != ELEMENT_MAP) || (right->type != ELEMENT_MAP)) {
2188 type2name(left->type), type2name(right->type));
2196 TAILQ_CONCAT(&result->comments, &right->comments);
2202 struct element *right, isc_boolean_t right_is_hexa)
2210 sright = stringValue(right);
2218 sright = stringValue(right);
2232 sright = stringValue(right);
2234 sleft = hexaValue(right);