*/
return (type_compare(a->fields.array, b->fields.array) == 0) ? 0 : -1;
- case GLSL_TYPE_FUNCTION:
case GLSL_TYPE_VOID:
case GLSL_TYPE_ERROR:
default:
int total_score = 0;
for (/* empty */
- ; !node_a->is_tail_sentinal()
+ ; !node_a->is_tail_sentinel()
; node_a = node_a->next, node_b = node_b->next) {
/* If all of the parameters from the other parameter list have been
* exhausted, the lists have different length and, by definition,
* do not match.
*/
- if (node_b->is_tail_sentinal())
+ if (node_b->is_tail_sentinel())
return -1;
assert(0);
return -1;
+ case ir_var_const_in:
case ir_var_in:
score = type_compare(param->type, actual->type);
break;
*/
score = (type_compare(actual->type, param->type) == 0) ? 0 : -1;
break;
+
+ default:
+ assert(false);
}
if (score < 0)
* exhausted, the lists have different length and, by definition, do not
* match.
*/
- if (!node_b->is_tail_sentinal())
+ if (!node_b->is_tail_sentinel())
return -1;
return total_score;
const exec_node *node_b = list_b->head;
for (/* empty */
- ; !node_a->is_tail_sentinal() && !node_b->is_tail_sentinal()
+ ; !node_a->is_tail_sentinel() && !node_b->is_tail_sentinel()
; node_a = node_a->next, node_b = node_b->next) {
ir_variable *a = (ir_variable *) node_a;
ir_variable *b = (ir_variable *) node_b;
/* Unless both lists are exhausted, they differ in length and, by
* definition, do not match.
*/
- return (node_a->is_tail_sentinal() == node_b->is_tail_sentinal());
+ return (node_a->is_tail_sentinel() == node_b->is_tail_sentinel());
}
ir_function_signature *