xref: /titanic_50/usr/src/cmd/abi/spectrans/spec2trace/symtab.h (revision 753d2d2e8e7fd0c9bcf736d9bf2f2faf4d6234cc)
1*753d2d2eSraf /*
2*753d2d2eSraf  * CDDL HEADER START
3*753d2d2eSraf  *
4*753d2d2eSraf  * The contents of this file are subject to the terms of the
5*753d2d2eSraf  * Common Development and Distribution License, Version 1.0 only
6*753d2d2eSraf  * (the "License").  You may not use this file except in compliance
7*753d2d2eSraf  * with the License.
8*753d2d2eSraf  *
9*753d2d2eSraf  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*753d2d2eSraf  * or http://www.opensolaris.org/os/licensing.
11*753d2d2eSraf  * See the License for the specific language governing permissions
12*753d2d2eSraf  * and limitations under the License.
13*753d2d2eSraf  *
14*753d2d2eSraf  * When distributing Covered Code, include this CDDL HEADER in each
15*753d2d2eSraf  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*753d2d2eSraf  * If applicable, add the following below this CDDL HEADER, with the
17*753d2d2eSraf  * fields enclosed by brackets "[]" replaced with your own identifying
18*753d2d2eSraf  * information: Portions Copyright [yyyy] [name of copyright owner]
19*753d2d2eSraf  *
20*753d2d2eSraf  * CDDL HEADER END
21*753d2d2eSraf  */
22*753d2d2eSraf /*
23*753d2d2eSraf  * Copyright (c) 1997-1999 by Sun Microsystems, Inc.
24*753d2d2eSraf  * All rights reserved.
25*753d2d2eSraf  */
26*753d2d2eSraf 
27*753d2d2eSraf #ifndef _SYMTAB_H
28*753d2d2eSraf #define	_SYMTAB_H
29*753d2d2eSraf 
30*753d2d2eSraf #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*753d2d2eSraf 
32*753d2d2eSraf 
33*753d2d2eSraf #ifdef	__cplusplus
34*753d2d2eSraf extern "C" {
35*753d2d2eSraf #endif
36*753d2d2eSraf 
37*753d2d2eSraf typedef struct entry_t ENTRY; /* Forward declaration */
38*753d2d2eSraf 
39*753d2d2eSraf extern void symtab_new_function(const int, const char *);
40*753d2d2eSraf extern void symtab_clear_function(void);
41*753d2d2eSraf extern void symtab_clear_includes(void);
42*753d2d2eSraf extern void symtab_clear_errval(void);
43*753d2d2eSraf extern void symtab_clear_exception(void);
44*753d2d2eSraf 
45*753d2d2eSraf /* Generated by m4 -- character string values */
46*753d2d2eSraf extern void symtab_set_prototype(char *p);
47*753d2d2eSraf extern char *symtab_get_prototype(void);
48*753d2d2eSraf extern void symtab_set_formals(char *);
49*753d2d2eSraf extern char *symtab_get_formals(void);
50*753d2d2eSraf extern void symtab_set_actuals(char *);
51*753d2d2eSraf extern char *symtab_get_actuals(void);
52*753d2d2eSraf extern char *symtab_get_cast(void);
53*753d2d2eSraf extern void symtab_set_cast(char *);
54*753d2d2eSraf extern void symtab_set_filename(char const *);
55*753d2d2eSraf extern char *symtab_get_filename(void);
56*753d2d2eSraf 
57*753d2d2eSraf extern int symtab_get_nonreturn(void);
58*753d2d2eSraf extern void symtab_set_line(int);
59*753d2d2eSraf extern int symtab_get_line(void);
60*753d2d2eSraf extern void symtab_set_skip(int);
61*753d2d2eSraf extern int symtab_get_skip(void);
62*753d2d2eSraf 
63*753d2d2eSraf /* Manual code */
64*753d2d2eSraf extern void symtab_set_function(char *, int, char *, char *, char *, int);
65*753d2d2eSraf extern ENTRY *symtab_get_function(void);
66*753d2d2eSraf 
67*753d2d2eSraf extern void symtab_set_exception(char *, int, char *);
68*753d2d2eSraf extern ENTRY *symtab_get_exception(void);
69*753d2d2eSraf 
70*753d2d2eSraf extern void symtab_set_errval(char *, int, char *, char *, char *, int);
71*753d2d2eSraf extern ENTRY *symtab_get_errval(void);
72*753d2d2eSraf 
73*753d2d2eSraf extern void symtab_add_args(char *, int, char *, char *, char *, int);
74*753d2d2eSraf extern ENTRY *symtab_get_first_arg(void);
75*753d2d2eSraf extern ENTRY *symtab_get_next_arg(void);
76*753d2d2eSraf extern ENTRY *symtab_get_last_arg(void);
77*753d2d2eSraf 
78*753d2d2eSraf extern void symtab_add_varargs(char *, int, char *, char *, char *);
79*753d2d2eSraf extern ENTRY *symtab_get_first_vararg(void);
80*753d2d2eSraf extern ENTRY *symtab_get_next_vararg(void);
81*753d2d2eSraf extern void symtab_print_varargs(void);
82*753d2d2eSraf 
83*753d2d2eSraf extern void symtab_add_globals(char *, int, char *, char *, char *, int);
84*753d2d2eSraf extern ENTRY *symtab_get_first_global(void);
85*753d2d2eSraf extern ENTRY *symtab_get_next_global(void);
86*753d2d2eSraf 
87*753d2d2eSraf extern void symtab_add_print_types(char *, char *);
88*753d2d2eSraf extern char *symtab_get_first_print_type(void);
89*753d2d2eSraf extern char *symtab_get_next_print_type(void);
90*753d2d2eSraf 
91*753d2d2eSraf extern void symtab_add_includes(char *);
92*753d2d2eSraf extern char *symtab_get_first_include(void);
93*753d2d2eSraf extern char *symtab_get_next_include(void);
94*753d2d2eSraf extern void symtab_sort_includes(void);
95*753d2d2eSraf 
96*753d2d2eSraf /* ENTRYs */
97*753d2d2eSraf extern char *name_of(ENTRY *);
98*753d2d2eSraf extern int validity_of(ENTRY *);
99*753d2d2eSraf extern int line_of(ENTRY *);
100*753d2d2eSraf extern char *file_of(ENTRY *);
101*753d2d2eSraf extern char *type_of(ENTRY *);
102*753d2d2eSraf extern char *x_type_of(ENTRY *);
103*753d2d2eSraf extern char *basetype_of(ENTRY *);
104*753d2d2eSraf extern int levels_of(ENTRY *);
105*753d2d2eSraf extern char *inverse_of(ENTRY *);
106*753d2d2eSraf extern char *selector_of(ENTRY *);
107*753d2d2eSraf extern int preuses_of(ENTRY *);
108*753d2d2eSraf extern int postuses_of(ENTRY *);
109*753d2d2eSraf 
110*753d2d2eSraf #ifdef	__cplusplus
111*753d2d2eSraf }
112*753d2d2eSraf #endif
113*753d2d2eSraf 
114*753d2d2eSraf #endif	/* _SYMTAB_H */
115