source: trunk/src/gcc/include/demangle.h@ 1005

Last change on this file since 1005 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 5.9 KB
Line 
1/* Defs for interface to demanglers.
2 Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001
3 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20
21#if !defined (DEMANGLE_H)
22#define DEMANGLE_H
23
24#include <ansidecl.h>
25
26/* Options passed to cplus_demangle (in 2nd parameter). */
27
28#define DMGL_NO_OPTS 0 /* For readability... */
29#define DMGL_PARAMS (1 << 0) /* Include function args */
30#define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */
31#define DMGL_JAVA (1 << 2) /* Demangle as Java rather than C++. */
32#define DMGL_VERBOSE (1 << 3) /* Include implementation details. */
33#define DMGL_TYPES (1 << 4) /* Also try to demangle type encodings. */
34
35#define DMGL_AUTO (1 << 8)
36#define DMGL_GNU (1 << 9)
37#define DMGL_LUCID (1 << 10)
38#define DMGL_ARM (1 << 11)
39#define DMGL_HP (1 << 12) /* For the HP aCC compiler;
40 same as ARM except for
41 template arguments, etc. */
42#define DMGL_EDG (1 << 13)
43#define DMGL_GNU_V3 (1 << 14)
44#define DMGL_GNAT (1 << 15)
45
46/* If none of these are set, use 'current_demangling_style' as the default. */
47#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT)
48
49/* Enumeration of possible demangling styles.
50
51 Lucid and ARM styles are still kept logically distinct, even though
52 they now both behave identically. The resulting style is actual the
53 union of both. I.E. either style recognizes both "__pt__" and "__rf__"