21 #define BASE_ENT(c, n) [c - 'A']=n 53 end = str + strlen(str);
55 for (q = str; q != end; q++) {
57 if (rlen == (maxlen - 1))
65 rlen += scnprintf(buf + rlen, maxlen - rlen,
", ");
68 rlen += scnprintf(buf + rlen, maxlen - rlen,
"class ");
84 rlen += scnprintf(buf + rlen, maxlen - rlen,
", ");
85 rlen += scnprintf(buf + rlen, maxlen - rlen,
"%s",
base_types[*q -
'A']);
87 rlen += scnprintf(buf + rlen, maxlen - rlen,
"[]");
95 rlen += scnprintf(buf + rlen, maxlen - rlen,
"void");
97 rlen += scnprintf(buf + rlen, maxlen - rlen,
"[]");
124 rlen += scnprintf(buf + rlen, maxlen - rlen,
".");
133 rlen += scnprintf(buf + rlen, maxlen - rlen,
".");
167 p = strrchr(str,
')');
174 len = strlen(str) * 3 + 1;
static const char * base_types['Z' - 'A'+1]
#define JAVA_DEMANGLE_NORET
static char * __demangle_java_sym(const char *str, const char *end, char *buf, int maxlen, int mode)
char * java_demangle_sym(const char *str, int flags)
static int str(yyscan_t scanner, int token)