1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 * 26 * check.h -- public definitions for check module 27 * 28 * the checking functions are called by the tree_X() functions 29 * in tree.c. this header file exports the checking functions 30 * from check.c so that tree.c can see them. nobody else uses them. 31 */ 32 33#ifndef _ESC_COMMON_CHECK_H 34#define _ESC_COMMON_CHECK_H 35 36#pragma ident "%Z%%M% %I% %E% SMI" 37 38#ifdef __cplusplus 39extern "C" { 40#endif 41 42void check_init(void); 43void check_fini(void); 44void check_report_combination(struct node *np); 45void check_arrow(struct node *np); 46void check_stmt_required_properties(struct node *stmtnp); 47void check_stmt_allowed_properties(enum nodetype t, 48 struct node *nvpairnp, struct lut *lutp); 49void check_propnames(enum nodetype t, struct node *np, int from, int to); 50void check_propscope(struct node *np); 51void check_proplists(enum nodetype t, struct node *np); 52void check_upset_engine(struct node *lhs, struct node *rhs, void *arg); 53void check_refcount(struct node *lhs, struct node *rhs, void *arg); 54int check_cycle_level(long long val); 55void check_cycle(struct node *lhs, struct node *rhs, void *arg); 56void check_type_iterator(struct node *np); 57void check_name_iterator(struct node *np); 58void check_func(struct node *np); 59void check_expr(struct node *np); 60void check_event(struct node *np); 61void check_required_props(struct node *lhs, struct node *rhs, void *arg); 62 63#ifdef __cplusplus 64} 65#endif 66 67#endif /* _ESC_COMMON_CHECK_H */ 68