xref: /titanic_50/usr/src/cmd/sgs/libelf/misc/String.h (revision e5dcf7beb7c949f9234713d5818b581ec3825443)
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 /*	Copyright (c) 1988 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #pragma ident	"%Z%%M%	%I%	%E% SMI" 	/* SVr4.0 1.1	*/
27 
28 /*
29  * C++ Demangler Source Code
30  * @(#)master	1.5
31  * 7/27/88 13:54:37
32  */
33 #define STRING_START 32
34 #define PTR(S) ((S)->data + (S)->sg.start)
35 
36 typedef struct {
37 	int start,end,max;
38 } StringGuts;
39 
40 typedef struct {
41 	StringGuts sg;
42 	char data[1];
43 } String;
44 
45 extern String *prep_String();
46 extern String *nprep_String();
47 extern String *app_String();
48 extern String *napp_String();
49 extern String *mk_String();
50 extern void free_String();
51 extern String *set_String();
52 extern String *trunc_String();
53 extern const char *findop();
54