xref: /illumos-gate/usr/src/cmd/sgs/libelf/misc/String.h (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
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  * C++ Demangler Source Code
27  * @(#)master	1.5
28  * 7/27/88 13:54:37
29  */
30 #define STRING_START 32
31 #define PTR(S) ((S)->data + (S)->sg.start)
32 
33 typedef struct {
34 	int start,end,max;
35 } StringGuts;
36 
37 typedef struct {
38 	StringGuts sg;
39 	char data[1];
40 } String;
41 
42 extern String *prep_String();
43 extern String *nprep_String();
44 extern String *app_String();
45 extern String *napp_String();
46 extern String *mk_String();
47 extern void free_String();
48 extern String *set_String();
49 extern String *trunc_String();
50 extern const char *findop();
51