]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/demangle/include/demangle.h
Inital import
[l4.git] / l4 / pkg / demangle / include / demangle.h
1 #ifndef L4_DEMANGLE
2 #define L4_DEMANGLE
3
4 #include <l4/sys/compiler.h>
5
6 /* Options passed to cplus_demangle (in 2nd parameter). */
7
8 #define DMGL_NO_OPTS     0              /* For readability... */
9 #define DMGL_PARAMS      (1 << 0)       /* Include function args */
10 #define DMGL_ANSI        (1 << 1)       /* Include const, volatile, etc */
11 #define DMGL_JAVA        (1 << 2)       /* Demangle as Java rather than C++. */
12 #define DMGL_VERBOSE     (1 << 3)       /* Include implementation details.  */
13 #define DMGL_TYPES       (1 << 4)       /* Also try to demangle type encodings.  */
14
15 #define DMGL_AUTO        (1 << 8)
16 #define DMGL_GNU         (1 << 9)
17 #define DMGL_LUCID       (1 << 10)
18 #define DMGL_ARM         (1 << 11)
19 #define DMGL_HP          (1 << 12)       /* For the HP aCC compiler;
20                                             same as ARM except for
21                                             template arguments, etc. */
22 #define DMGL_EDG         (1 << 13)
23 #define DMGL_GNU_V3      (1 << 14)
24 #define DMGL_GNAT        (1 << 15)
25
26 EXTERN_C_BEGIN
27
28 extern char *cplus_demangle (const char *mangled, int options);
29
30 EXTERN_C_END
31
32 #endif