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 39 extern "C" { 40 #endif 41 42 void check_init(void); 43 void check_fini(void); 44 void check_report_combination(struct node *np); 45 void check_arrow(struct node *np); 46 void check_stmt_required_properties(struct node *stmtnp); 47 void check_stmt_allowed_properties(enum nodetype t, 48 struct node *nvpairnp, struct lut *lutp); 49 void check_propnames(enum nodetype t, struct node *np, int from, int to); 50 void check_propscope(struct node *np); 51 void check_proplists(enum nodetype t, struct node *np); 52 void check_upset_engine(struct node *lhs, struct node *rhs, void *arg); 53 void check_refcount(struct node *lhs, struct node *rhs, void *arg); 54 int check_cycle_level(long long val); 55 void check_cycle(struct node *lhs, struct node *rhs, void *arg); 56 void check_type_iterator(struct node *np); 57 void check_name_iterator(struct node *np); 58 void check_func(struct node *np); 59 void check_expr(struct node *np); 60 void check_event(struct node *np); 61 void 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