case UNARY_ARROWLINK:
/* We only allow -> and . links between children of ctf_expression. */
if (node->parent->type != NODE_CTF_EXPRESSION) {
case UNARY_ARROWLINK:
/* We only allow -> and . links between children of ctf_expression. */
if (node->parent->type != NODE_CTF_EXPRESSION) {
* This includes "", '' and non-quoted identifiers.
*/
if (node->u.unary_expression.type != UNARY_STRING) {
* This includes "", '' and non-quoted identifiers.
*/
if (node->u.unary_expression.type != UNARY_STRING) {
case UNARY_DOTDOTDOT:
/* We only allow ... link between children of enumerator. */
if (node->parent->type != NODE_ENUMERATOR) {
case UNARY_DOTDOTDOT:
/* We only allow ... link between children of enumerator. */
if (node->parent->type != NODE_ENUMERATOR) {
"Unknown expression link type: type=%d",
node->u.unary_expression.link);
return -EINVAL;
"Unknown expression link type: type=%d",
node->u.unary_expression.link);
return -EINVAL;
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
errperm:
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
errperm:
"Semantic error: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EPERM; /* Structure not allowed */
"Semantic error: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EPERM; /* Structure not allowed */
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
bt_list_for_each_entry(iter, &node->u.field_class_declarator.u.nested.length,
siblings) {
if (iter->type != NODE_UNARY_EXPRESSION) {
bt_list_for_each_entry(iter, &node->u.field_class_declarator.u.nested.length,
siblings) {
if (iter->type != NODE_UNARY_EXPRESSION) {
"Unknown field class declarator: type=%d",
node->u.field_class_declarator.type);
return -EINVAL;
"Unknown field class declarator: type=%d",
node->u.field_class_declarator.type);
return -EINVAL;
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
errperm:
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
errperm:
"Semantic error: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EPERM; /* Structure not allowed */
"Semantic error: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EPERM; /* Structure not allowed */
|| (iter->u.unary_expression.type != UNARY_SIGNED_CONSTANT
&& iter->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT)
|| iter->u.unary_expression.link != UNARY_LINK_UNKNOWN) {
|| (iter->u.unary_expression.type != UNARY_SIGNED_CONSTANT
&& iter->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT)
|| iter->u.unary_expression.link != UNARY_LINK_UNKNOWN) {
|| (iter->u.unary_expression.type != UNARY_SIGNED_CONSTANT
&& iter->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT)
|| iter->u.unary_expression.link != UNARY_DOTDOTDOT) {
|| (iter->u.unary_expression.type != UNARY_SIGNED_CONSTANT
&& iter->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT)
|| iter->u.unary_expression.link != UNARY_DOTDOTDOT) {
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
errperm:
"Incoherent parent node's type: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EINVAL; /* Incoherent structure */
errperm:
"Semantic error: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EPERM; /* Structure not allowed */
"Semantic error: node-type=%s, parent-node-type=%s",
node_type(node), node_type(node->parent));
return -EPERM; /* Structure not allowed */