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
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.
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]
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
26 * check.h -- public definitions for check module
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.
33 #ifndef _ESC_COMMON_CHECK_H
34 #define _ESC_COMMON_CHECK_H
36 #pragma ident "%Z%%M% %I% %E% SMI"
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
);
67 #endif /* _ESC_COMMON_CHECK_H */