/*
- * ctf-visitor-parent-links.c
+ * SPDX-License-Identifier: MIT
*
- * Common Trace Format Metadata Parent Link Creator.
- *
- * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
+ * Copyright 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * Common Trace Format Metadata Parent Link Creator.
*/
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#include "common/macros.h"
#include "common/list.h"
#include "scanner.h"
-#include "parser.h"
#include "ast.h"
#include "logging.h"
case UNARY_DOTDOTDOT:
break;
default:
- _BT_COMP_LOGE_LINENO(node->lineno,
+ _BT_COMP_LOGE_APPEND_CAUSE_LINENO(node->lineno,
"Unknown expression link type: type=%d\n",
node->u.unary_expression.link);
return -EINVAL;
case UNARY_UNKNOWN:
default:
- _BT_COMP_LOGE_LINENO(node->lineno,
+ _BT_COMP_LOGE_APPEND_CAUSE_LINENO(node->lineno,
"Unknown expression link type: type=%d\n",
node->u.unary_expression.link);
return -EINVAL;
case TYPESPEC_UNKNOWN:
default:
- _BT_COMP_LOGE_LINENO(node->lineno,
+ _BT_COMP_LOGE_APPEND_CAUSE_LINENO(node->lineno,
"Unknown type specifier: type=%d\n",
node->u.field_class_specifier.type);
return -EINVAL;
break;
case TYPEDEC_UNKNOWN:
default:
- _BT_COMP_LOGE_LINENO(node->lineno,
+ _BT_COMP_LOGE_APPEND_CAUSE_LINENO(node->lineno,
"Unknown type declarator: type=%d\n",
node->u.field_class_declarator.type);
return -EINVAL;
case NODE_UNKNOWN:
default:
- _BT_COMP_LOGE_LINENO(node->lineno,
+ _BT_COMP_LOGE_APPEND_CAUSE_LINENO(node->lineno,
"Unknown node type: type=%d\n", node->type);
return -EINVAL;
}