Linux Perf
demangle-java.c File Reference
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include "util.h"
#include "debug.h"
#include "symbol.h"
#include "demangle-java.h"
#include "sane_ctype.h"
Include dependency graph for demangle-java.c:

Go to the source code of this file.

Macros

#define BASE_ENT(c, n)   [c - 'A']=n
 

Enumerations

enum  {
  MODE_PREFIX = 0, MODE_CLASS = 1, MODE_FUNC = 2, MODE_TYPE = 3,
  MODE_CTYPE = 3
}
 

Functions

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)
 

Variables

static const char * base_types ['Z' - 'A'+1]
 

Macro Definition Documentation

◆ BASE_ENT

#define BASE_ENT (   c,
 
)    [c - 'A']=n

Definition at line 21 of file demangle-java.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MODE_PREFIX 
MODE_CLASS 
MODE_FUNC 
MODE_TYPE 
MODE_CTYPE 

Definition at line 13 of file demangle-java.c.

Function Documentation

◆ __demangle_java_sym()

static char* __demangle_java_sym ( const char *  str,
const char *  end,
char *  buf,
int  maxlen,
int  mode 
)
static

Definition at line 45 of file demangle-java.c.

◆ java_demangle_sym()

char* java_demangle_sym ( const char *  str,
int  flags 
)

Definition at line 157 of file demangle-java.c.

Here is the call graph for this function:

Variable Documentation

◆ base_types

const char* base_types[ 'Z' - 'A'+1]
static
Initial value:
= {
BASE_ENT('B', "byte" ),
BASE_ENT('C', "char" ),
BASE_ENT('D', "double" ),
BASE_ENT('F', "float" ),
BASE_ENT('I', "int" ),
BASE_ENT('J', "long" ),
BASE_ENT('S', "short" ),
BASE_ENT('Z', "bool" ),
}
#define BASE_ENT(c, n)
Definition: demangle-java.c:21

Definition at line 22 of file demangle-java.c.